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::Mask * | getMask () 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 |
SwigDirector_Person::SwigDirector_Person | ( | PyObject * | self, | |
char const * | name, | |||
char const * | configFile | |||
) |
virtual SwigDirector_Person::~SwigDirector_Person | ( | ) | [virtual] |
virtual bool SwigDirector_Person::canInteract | ( | ) | const [virtual] |
Reimplemented from Annchienta::StaticObject.
virtual bool SwigDirector_Person::collidesWith | ( | Annchienta::Entity * | other | ) | const [virtual] |
Check if this Entity collides with another Entity.
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.
value | True to freeze, false to unfreeze. |
Reimplemented from Annchienta::Person.
virtual int SwigDirector_Person::getDepth | ( | ) | [virtual] |
Reimplemented from Annchienta::StaticObject.
virtual Annchienta::EntityType SwigDirector_Person::getEntityType | ( | ) | const [virtual] |
virtual Annchienta::Mask* SwigDirector_Person::getMask | ( | ) | const [virtual] |
virtual Annchienta::Point SwigDirector_Person::getMaskPosition | ( | ) | const [virtual] |
Reimplemented from Annchienta::StaticObject.
virtual Annchienta::Point SwigDirector_Person::getPosition | ( | ) | const [virtual] |
virtual float SwigDirector_Person::getSpeed | ( | ) | const [virtual] |
virtual bool SwigDirector_Person::isFrozen | ( | ) | const [virtual] |
virtual bool SwigDirector_Person::isPassable | ( | ) | const [virtual] |
If this object is passable, other objects can "walk through" it.
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.
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().
x | Number of steps to move over X axis. | |
y | Number of steps to move over Y axis. | |
force | Ignore all obstructions and 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.
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.
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.
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.
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
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.
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.
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.
point | Point to step to. | |
force | See 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.
std::map<std::string, bool> SwigDirector_Person::inner [mutable, private] |
Referenced by swig_get_inner(), and swig_set_inner().