SwigDirector_StaticObject Class Reference

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

List of all members.

Public Member Functions

virtual bool canInteract () const
virtual bool collidesWith (Annchienta::Entity *other) const
virtual void draw ()
virtual void freeze (bool arg0)
virtual int getDepth ()
virtual Annchienta::EntityType getEntityType () const
virtual Annchienta::MaskgetMask () const
virtual Annchienta::Point getMaskPosition () const
virtual Annchienta::Point getPosition () const
virtual bool isPassable () const
virtual void lookAt (Annchienta::StaticObject *other)
virtual void onInteract ()
virtual void setOnInteractCode (char const *code)
virtual void setOnInteractScript (char const *script)
virtual void setPassable (bool passable)
virtual void setPosition (Annchienta::Point position)
virtual void setSprite (char const *filename)
virtual void setStandAnimation (bool b=false)
virtual bool stepTo (Annchienta::Point arg0)
bool swig_get_inner (const char *name) const
void swig_set_inner (const char *name, bool val) const
 SwigDirector_StaticObject (PyObject *self, char const *name, Annchienta::Surface *surf, Annchienta::Mask *mask)
 SwigDirector_StaticObject (PyObject *self, char const *name, char const *configfile)
virtual void update ()
virtual ~SwigDirector_StaticObject ()

Private Attributes

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


Constructor & Destructor Documentation

SwigDirector_StaticObject::SwigDirector_StaticObject ( PyObject *  self,
char const *  name,
char const *  configfile 
)

SwigDirector_StaticObject::SwigDirector_StaticObject ( PyObject *  self,
char const *  name,
Annchienta::Surface surf,
Annchienta::Mask mask 
)

virtual SwigDirector_StaticObject::~SwigDirector_StaticObject (  )  [virtual]


Member Function Documentation

virtual bool SwigDirector_StaticObject::canInteract (  )  const [virtual]

Returns:
If this object has an interact script or interact code.

Reimplemented from Annchienta::StaticObject.

virtual bool SwigDirector_StaticObject::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_StaticObject::draw (  )  [virtual]

Draws this StaticObject to the screen.

Reimplemented from Annchienta::StaticObject.

virtual void SwigDirector_StaticObject::freeze ( bool  arg0  )  [virtual]

Reimplemented from Annchienta::StaticObject.

virtual int SwigDirector_StaticObject::getDepth (  )  [virtual]

Returns:
The depth this StaticObject should be sorted on.

Reimplemented from Annchienta::StaticObject.

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

Returns:
The EntityType of this StaticObject.

Reimplemented from Annchienta::StaticObject.

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

Returns:
The Mask for this StaticObject.

Reimplemented from Annchienta::StaticObject.

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

Returns:
The position where the Mask of this StaticObject should be placed to calculate collisions.

Reimplemented from Annchienta::StaticObject.

virtual Annchienta::Point SwigDirector_StaticObject::getPosition (  )  const [virtual]

Returns:
The position of this StaticObject.

Reimplemented from Annchienta::StaticObject.

virtual bool SwigDirector_StaticObject::isPassable (  )  const [virtual]

If this object is passable, other objects can "walk through" it.

Returns:
If this object is passable.

Reimplemented from Annchienta::StaticObject.

virtual void SwigDirector_StaticObject::lookAt ( Annchienta::StaticObject other  )  [virtual]

Reimplemented from Annchienta::StaticObject.

virtual void SwigDirector_StaticObject::onInteract (  )  [virtual]

When you call this function, this object's interact script and/or code will be executed if they exist.

Reimplemented from Annchienta::StaticObject.

virtual void SwigDirector_StaticObject::setOnInteractCode ( char const *  code  )  [virtual]

Sets this object's interact code. This code will be executed when the object is interacted with.

Parameters:
code Code to be executed.

Reimplemented from Annchienta::StaticObject.

virtual void SwigDirector_StaticObject::setOnInteractScript ( char const *  script  )  [virtual]

Sets this object's interact script. This script will be executed when the object is interacted with.

Parameters:
script Filename of the script.

Reimplemented from Annchienta::StaticObject.

virtual void SwigDirector_StaticObject::setPassable ( bool  passable  )  [virtual]

If this object is passable, other objects can "walk through" it.

Parameters:
passable If this object should be passable.

Reimplemented from Annchienta::StaticObject.

virtual void SwigDirector_StaticObject::setPosition ( Annchienta::Point  position  )  [virtual]

Sets the position for this StaticObject.

Parameters:
position The new position.

Reimplemented from Annchienta::StaticObject.

virtual void SwigDirector_StaticObject::setSprite ( char const *  filename  )  [virtual]

Should be used with care, because the frame settings stay the same.

Warning:
Make sure the new sprite has the same dimensions and frames.
Parameters:
filename Filename of the new sprite.

Reimplemented from Annchienta::StaticObject.

virtual void SwigDirector_StaticObject::setStandAnimation ( bool  b = false  )  [virtual]

Reimplemented from Annchienta::StaticObject.

virtual bool SwigDirector_StaticObject::stepTo ( Annchienta::Point  arg0  )  [virtual]

Reimplemented from Annchienta::StaticObject.

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

References inner.

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

References inner.

virtual void SwigDirector_StaticObject::update (  )  [virtual]

Updates this Entity. This is called when updating the Map this Entity is in.

Reimplemented from Annchienta::StaticObject.


Member Data Documentation

std::map<std::string, bool> SwigDirector_StaticObject::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