#include <actor.hpp>

Public Member Functions | |
| Actor (ThingType type) | |
| Constructor. | |
| void | setPosition (const Point &p) |
| Sets the coordinates. | |
| const Point & | getPosition () const |
| Gets the coordinates. | |
| int | getUpdateFlags () const |
| Gets what changed in the actor. | |
| void | raiseUpdateFlags (int n) |
| Sets some changes in the actor. | |
| void | clearUpdateFlags () |
| Clears changes in the actor. | |
| void | setSize (int s) |
| Sets actor bounding circle radius. | |
| int | getSize () const |
| int | getPublicID () const |
| Get public ID. | |
| void | setPublicID (int id) |
| Set public ID. | |
| virtual unsigned char | getWalkMask () const |
| Gets the way the actor blocks pathfinding for other actors. | |
| virtual void | setMap (MapComposite *map) |
| Overridden in order to update the walkmap. | |
Protected Member Functions | |
| virtual Map::BlockType | getBlockType () const |
| Gets the way the actor blocks pathfinding for other actors. | |
Protected Attributes | |
| unsigned short | mActionTime |
| Delay until next action. | |
Keeps track of position, size and what to update clients about.
Definition at line 47 of file actor.hpp.
| void Actor::setPosition | ( | const Point & | p | ) |
Sets the coordinates.
Also updates the walkmap of the map the actor is on.
| p | the coordinates. |
Reimplemented in Character.
Definition at line 28 of file actor.cpp.
References Map::blockTile(), Map::freeTile(), getBlockType(), MapComposite::getMap(), Thing::getMap(), getPosition(), Point::x, and Point::y.
Referenced by Being::move(), and SpawnArea::update().
| const Point& Actor::getPosition | ( | ) | const [inline] |
Gets the coordinates.
Reimplemented in Character.
Definition at line 74 of file actor.hpp.
Referenced by Being::clearDestination(), Monster::died(), MapComposite::getAroundActorIterator(), MapComposite::getAroundBeingIterator(), MapComposite::insert(), Being::move(), Being::performAttack(), GameHandler::processMessage(), MapComposite::remove(), setMap(), setPosition(), Monster::update(), MapComposite::update(), and Monster::~Monster().
| int Actor::getPublicID | ( | ) | const [inline] |
Get public ID.
Definition at line 106 of file actor.hpp.
Referenced by Being::damage(), MapContent::deallocate(), and Being::died().
| void Actor::setPublicID | ( | int | id | ) | [inline] |
Set public ID.
The actor shall not have any public ID yet.
Definition at line 112 of file actor.hpp.
Referenced by MapContent::allocate().
unsigned short Actor::mActionTime [protected] |
Delay until next action.
Definition at line 133 of file actor.hpp.
Referenced by Being::move(), and Character::perform().
1.5.5