xoreos
0.0.5
|
#include <actionexecutor.h>
Static Public Member Functions | |
static void | executeActions (Creature &creature, Area &area, float dt) |
static void | executeMoveToPoint (Creature &creature, Area &area, const Action &action, float dt) |
static void | executeFollowLeader (Creature &creature, Area &area, const Action &action, float dt) |
Static Private Member Functions | |
static bool | moveTo (Creature &creature, Area &area, float x, float y, float range, float dt) |
Move the creature towards a point. More... | |
Definition at line 36 of file actionexecutor.h.
|
static |
Definition at line 41 of file actionexecutor.cpp.
References executeFollowLeader(), executeMoveToPoint(), Engines::KotOR::Action::getType(), Engines::KotOR::kActionFollowLeader, Engines::KotOR::kActionMoveToPoint, Engines::KotOR::Creature::peekAction(), and warning().
Referenced by Engines::KotOR::Area::processCreaturesActions().
|
static |
Definition at line 67 of file actionexecutor.cpp.
References Engines::KotOR::Area::_module, Engines::KotOR::Module::getPC(), Engines::KotOR::Object::getPosition(), and moveTo().
Referenced by executeActions().
|
static |
Definition at line 59 of file actionexecutor.cpp.
References Engines::KotOR::Creature::dequeueAction(), Engines::KotOR::Action::getPoint(), Engines::KotOR::Action::getRange(), and moveTo().
Referenced by executeActions().
|
staticprivate |
Move the creature towards a point.
Returns true if the point is within the specified range, false otherwise.
Definition at line 73 of file actionexecutor.cpp.
References Engines::KotOR::Area::evaluateElevation(), FLT_MIN, Engines::KotOR::Object::getPosition(), Engines::KotOR::Creature::getRunRate(), Engines::KotOR::Creature::getWalkRate(), kWalkDistance, Engines::KotOR::Object::makeLookAt(), Engines::KotOR::Creature::playAnimation(), Engines::KotOR::Creature::playDefaultAnimation(), Engines::KotOR::Creature::setPosition(), and Engines::KotOR::Area::testCollision().
Referenced by executeFollowLeader(), and executeMoveToPoint().