#include <command.h>
Public Member Functions | |
PotentialMove (Entity *ent, Target *tgt) | |
virtual bool | done () |
virtual void | init () |
virtual void | tick (double dt) |
virtual void | postProcess () |
virtual Command * | clone () |
PotentialMove (Entity *ent, Target *tgt) | |
virtual bool | done () |
virtual void | init () |
virtual void | tick (double dt) |
virtual void | postProcess () |
PotentialMove (Entity *ent, Target *tgt) | |
virtual bool | done () |
virtual void | init () |
virtual void | tick (double dt) |
virtual void | postProcess () |
PotentialMove (Entity *ent, Target *tgt) | |
virtual bool | done () |
virtual void | init () |
virtual void | tick (double dt) |
virtual void | postProcess () |
PotentialMove (Entity *ent, Target *tgt) | |
virtual bool | done () |
virtual void | init () |
virtual void | tick (double dt) |
virtual void | postProcess () |
Private Member Functions | |
bool | valid (Ogre::Vector3 pos) |
bool | valid (Ogre::Vector3 pos) |
bool | valid (Ogre::Vector3 pos) |
bool | valid (Ogre::Vector3 pos) |
bool | valid (Ogre::Vector3 pos) |
Private Attributes | |
double | A |
double | B |
double | B2 |
double | m |
double | n |
double | RepulsionThresholdDistance |
Definition at line 191 of file command.h.
bool FastEcslent::PotentialMove::valid | ( | Ogre::Vector3 | pos | ) | [inline, private] |
bool FastEcslent::PotentialMove::done | ( | ) | [inline, virtual] |
Implements FastEcslent::Command.
Definition at line 135 of file command.cpp.
References FastEcslent::UnitCommand::entity, FastEcslent::Target::location, FastEcslent::Entity::pos, FastEcslent::UnitCommand::target, and FastEcslent::Entity::turningRadius.
Referenced by tick().
void FastEcslent::PotentialMove::init | ( | ) | [virtual] |
Implements FastEcslent::Command.
Definition at line 140 of file command.cpp.
References FastEcslent::Entity::desiredSpeed, FastEcslent::UnitCommand::entity, FastEcslent::Target::location, FastEcslent::Entity::maxSpeed, FastEcslent::Entity::pos, and FastEcslent::UnitCommand::target.
Referenced by FastEcslent::createPotentialMoveForEnt().
void FastEcslent::PotentialMove::tick | ( | double | dt | ) | [inline, virtual] |
Implements FastEcslent::Command.
Definition at line 146 of file command.cpp.
References A, FastEcslent::Entity::attractivePotential, B, DEBUG, FastEcslent::Entity::desiredHeading, FastEcslent::Entity::desiredSpeed, FastEcslent::DistanceMgr::distance, FastEcslent::Engine::distanceMgr, done(), FastEcslent::Entity::engine, FastEcslent::UnitCommand::entity, FastEcslent::Entity::entityId, FastEcslent::Engine::entityMgr, FastEcslent::EntityMgr::ents, FastEcslent::Entity::heading, FastEcslent::Identity::id, FastEcslent::Target::location, m, FastEcslent::Entity::mass, FastEcslent::Entity::maxSpeed, FastEcslent::Entity::minSpeed, n, FastEcslent::EntityMgr::nEnts, FastEcslent::DistanceMgr::normalizedDistanceVec, FastEcslent::Entity::pos, FastEcslent::Entity::potentialVec, RepulsionThresholdDistance, FastEcslent::UnitCommand::target, and FastEcslent::Entity::vel.
virtual void FastEcslent::PotentialMove::postProcess | ( | ) | [inline, virtual] |
virtual Command* FastEcslent::PotentialMove::clone | ( | ) | [inline, virtual] |
bool FastEcslent::PotentialMove::valid | ( | Ogre::Vector3 | pos | ) | [inline, private] |
virtual bool FastEcslent::PotentialMove::done | ( | ) | [virtual] |
Implements FastEcslent::Command.
virtual void FastEcslent::PotentialMove::init | ( | ) | [virtual] |
Implements FastEcslent::Command.
virtual void FastEcslent::PotentialMove::tick | ( | double | dt | ) | [virtual] |
Implements FastEcslent::Command.
virtual void FastEcslent::PotentialMove::postProcess | ( | ) | [inline, virtual] |
bool FastEcslent::PotentialMove::valid | ( | Ogre::Vector3 | pos | ) | [inline, private] |
virtual bool FastEcslent::PotentialMove::done | ( | ) | [virtual] |
Implements FastEcslent::Command.
virtual void FastEcslent::PotentialMove::init | ( | ) | [virtual] |
Implements FastEcslent::Command.
virtual void FastEcslent::PotentialMove::tick | ( | double | dt | ) | [virtual] |
Implements FastEcslent::Command.
virtual void FastEcslent::PotentialMove::postProcess | ( | ) | [inline, virtual] |
bool FastEcslent::PotentialMove::valid | ( | Ogre::Vector3 | pos | ) | [inline, private] |
virtual bool FastEcslent::PotentialMove::done | ( | ) | [virtual] |
Implements FastEcslent::Command.
virtual void FastEcslent::PotentialMove::init | ( | ) | [virtual] |
Implements FastEcslent::Command.
virtual void FastEcslent::PotentialMove::tick | ( | double | dt | ) | [virtual] |
Implements FastEcslent::Command.
virtual void FastEcslent::PotentialMove::postProcess | ( | ) | [inline, virtual] |
bool FastEcslent::PotentialMove::valid | ( | Ogre::Vector3 | pos | ) | [inline, private] |
virtual bool FastEcslent::PotentialMove::done | ( | ) | [virtual] |
Implements FastEcslent::Command.
virtual void FastEcslent::PotentialMove::init | ( | ) | [virtual] |
Implements FastEcslent::Command.
virtual void FastEcslent::PotentialMove::tick | ( | double | dt | ) | [virtual] |
Implements FastEcslent::Command.
virtual void FastEcslent::PotentialMove::postProcess | ( | ) | [inline, virtual] |
double FastEcslent::PotentialMove::A [private] |
double FastEcslent::PotentialMove::B [private] |
double FastEcslent::PotentialMove::B2 [private] |
double FastEcslent::PotentialMove::m [private] |
double FastEcslent::PotentialMove::n [private] |
double FastEcslent::PotentialMove::RepulsionThresholdDistance [private] |