SwigDirector_Entity Class Reference

Inherits Annchienta::Entity, and Swig::Director.

List of all members.

Public Member Functions

virtual bool collidesWith (Annchienta::Entity *other) const
virtual void draw ()
virtual int getDepth ()
virtual Annchienta::EntityType getEntityType () const
virtual Annchienta::MaskgetMask () const
virtual Annchienta::Point getMaskPosition () const
bool swig_get_inner (const char *name) const
void swig_set_inner (const char *name, bool val) const
 SwigDirector_Entity (PyObject *self, char const *name="none")
virtual void update ()
virtual ~SwigDirector_Entity ()

Private Attributes

std::map< std::string, bool > inner


Constructor & Destructor Documentation

SwigDirector_Entity::SwigDirector_Entity ( PyObject *  self,
char const *  name = "none" 
)

virtual SwigDirector_Entity::~SwigDirector_Entity (  )  [virtual]


Member Function Documentation

virtual bool SwigDirector_Entity::collidesWith ( Annchienta::Entity other  )  const [virtual]

Check if this Entity collides with another Entity.

Returns:
If they collide.

Reimplemented from Annchienta::Entity.

virtual void SwigDirector_Entity::draw (  )  [virtual]

Draws the entity to the screen.

Implements Annchienta::Entity.

virtual int SwigDirector_Entity::getDepth (  )  [virtual]

Returns:
Depth to be used for depthsorting.

Implements Annchienta::Entity.

virtual Annchienta::EntityType SwigDirector_Entity::getEntityType (  )  const [virtual]

Get the type of this Entity.

Returns:
The type of this entity.

Implements Annchienta::Entity.

virtual Annchienta::Mask* SwigDirector_Entity::getMask (  )  const [virtual]

Returns:
The collision mask for this entity.

Implements Annchienta::Entity.

virtual Annchienta::Point SwigDirector_Entity::getMaskPosition (  )  const [virtual]

Use this when you want to know where you should place the Mask for this Entity if you want to check collision with other Entities.

Returns:
A Point describing where the Mask should be placed.

Implements Annchienta::Entity.

bool SwigDirector_Entity::swig_get_inner ( const char *  name  )  const [inline]

References inner.

void SwigDirector_Entity::swig_set_inner ( const char *  name,
bool  val 
) const [inline]

References inner.

virtual void SwigDirector_Entity::update (  )  [virtual]

Updates the entity, eg. update sprite, position, ...

Implements Annchienta::Entity.


Member Data Documentation

std::map<std::string, bool> SwigDirector_Entity::inner [mutable, private]

Referenced by swig_get_inner(), and swig_set_inner().


Generated on Wed Feb 4 16:31:47 2009 for Annchienta by  doxygen 1.5.7.1