SwigDirector_Person Class Reference

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

List of all members.

Public Member Functions

virtual bool canInteract () const
virtual bool collidesWith (Annchienta::Entity *other) const
virtual void collisionWithLayerAreas ()
virtual void draw ()
virtual void freeze (bool value)
virtual int getDepth ()
virtual Annchienta::EntityType getEntityType () const
virtual Annchienta::MaskgetMask () const
virtual Annchienta::Point getMaskPosition () const
virtual Annchienta::Point getPosition () const
virtual float getSpeed () const
virtual bool isFrozen () const
virtual bool isPassable () const
virtual void lookAt (Annchienta::StaticObject *object)
virtual bool move (int x, int y, bool force=false)
virtual void onInteract ()
virtual void setControl (Annchienta::PersonControl *personControl)
virtual void setInputControl ()
virtual void setNullControl ()
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 setSampleControl ()
virtual void setSpeed (float speed)
virtual void setSprite (char const *filename)
virtual void setStandAnimation (bool forceFromHeading=false)
virtual bool stepTo (Annchienta::Point point, bool force=true)
bool swig_get_inner (const char *name) const
void swig_set_inner (const char *name, bool val) const
 SwigDirector_Person (PyObject *self, char const *name, char const *configFile)
virtual void update ()
virtual ~SwigDirector_Person ()

Private Attributes

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


Constructor & Destructor Documentation

SwigDirector_Person::SwigDirector_Person ( PyObject *  self,
char const *  name,
char const *  configFile 
)

virtual SwigDirector_Person::~SwigDirector_Person (  )  [virtual]


Member Function Documentation

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

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

Reimplemented from Annchienta::StaticObject.

virtual bool SwigDirector_Person::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_Person::collisionWithLayerAreas (  )  [virtual]

Checks if this Person collides with any Area in this Layer and executes the associated scipts if needed.

Reimplemented from Annchienta::Person.

virtual void SwigDirector_Person::draw (  )  [virtual]

Draws this StaticObject to the screen.

Reimplemented from Annchienta::StaticObject.

virtual void SwigDirector_Person::freeze ( bool  value  )  [virtual]

Freeze or unfreeze this Person. When a Person is frozen, he will not be able to move, this can be useful in cutscenes.

Parameters:
value True to freeze, false to unfreeze.

Reimplemented from Annchienta::Person.

virtual int SwigDirector_Person::getDepth (  )  [virtual]

Returns:
The depth this StaticObject should be sorted on.

Reimplemented from Annchienta::StaticObject.

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

Returns:
The EntityType for this Person.

Reimplemented from Annchienta::Person.

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

Returns:
The Mask for this StaticObject.

Reimplemented from Annchienta::StaticObject.

virtual Annchienta::Point SwigDirector_Person::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_Person::getPosition (  )  const [virtual]

Returns:
The position of this StaticObject.

Reimplemented from Annchienta::StaticObject.

virtual float SwigDirector_Person::getSpeed (  )  const [virtual]

Returns:
The move speed for this Person.

Reimplemented from Annchienta::Person.

virtual bool SwigDirector_Person::isFrozen (  )  const [virtual]

Returns:
If thie Person is frozen, see freeze().

Reimplemented from Annchienta::Person.

virtual bool SwigDirector_Person::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_Person::lookAt ( Annchienta::StaticObject object  )  [virtual]

Set the "stand{north,east,south,west}" animation, depending where the other object is.

Parameters:
object Object to look at.

Reimplemented from Annchienta::Person.

virtual bool SwigDirector_Person::move ( int  x,
int  y,
bool  force = false 
) [virtual]

Relatively move this Person. This function might not move the Person, for example when there's something in the way. To make sure the Person moves, set the force flag to true. When you set the parameter x to 1, this Person will move a distance over the x axis that is equal to getSpeed().

Parameters:
x Number of steps to move over X axis.
y Number of steps to move over Y axis.
force Ignore all obstructions and move.
Returns:
If the Person was able to move.

Reimplemented from Annchienta::Person.

virtual void SwigDirector_Person::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_Person::setControl ( Annchienta::PersonControl personControl  )  [virtual]

Sets a custom PersonControl inctance for this Person.

Reimplemented from Annchienta::Person.

virtual void SwigDirector_Person::setInputControl (  )  [virtual]

Create an InputPersonControl instance for this Person and let it control this Person.

Reimplemented from Annchienta::Person.

virtual void SwigDirector_Person::setNullControl (  )  [virtual]

Deletes the PersonControl instance associated with this Person. The Person will now halt.

Reimplemented from Annchienta::Person.

virtual void SwigDirector_Person::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_Person::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_Person::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_Person::setPosition ( Annchienta::Point  position  )  [virtual]

Sets the position for this StaticObject.

Parameters:
position The new position.

Reimplemented from Annchienta::StaticObject.

virtual void SwigDirector_Person::setSampleControl (  )  [virtual]

Create an SamplePersonControl instance for this Person and let it control this Person.

Reimplemented from Annchienta::Person.

virtual void SwigDirector_Person::setSpeed ( float  speed  )  [virtual]

The speed of a Person defaults to 1.0

Parameters:
speed The new move speed for this Person.

Reimplemented from Annchienta::Person.

virtual void SwigDirector_Person::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_Person::setStandAnimation ( bool  forceFromHeading = false  )  [virtual]

Set the default standing animation for this Person.

Parameters:
forceFromHeading When set to true, the "stand{north,south,east,west}" will always be used.

Reimplemented from Annchienta::Person.

virtual bool SwigDirector_Person::stepTo ( Annchienta::Point  point,
bool  force = true 
) [virtual]

This function calls move() to move this Person in the direction of the given point. It does nothing when this Person is close enough to the given Point.

Parameters:
point Point to step to.
force See move().
Returns:
If the Person was able to move.

Reimplemented from Annchienta::Person.

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

References inner.

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

References inner.

virtual void SwigDirector_Person::update (  )  [virtual]

Update this Person.

Reimplemented from Annchienta::Person.


Member Data Documentation

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