FastEcslent::PotentialMove Class Reference

#include <command.h>

Inheritance diagram for FastEcslent::PotentialMove:

FastEcslent::UnitCommand FastEcslent::UnitCommand FastEcslent::UnitCommand FastEcslent::UnitCommand FastEcslent::UnitCommand FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command

List of all members.

Public Member Functions

 PotentialMove (Entity *ent, Target *tgt)
virtual bool done ()
virtual void init ()
virtual void tick (double dt)
virtual void postProcess ()
virtual Commandclone ()
 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


Detailed Description

Definition at line 191 of file command.h.


Constructor & Destructor Documentation

FastEcslent::PotentialMove::PotentialMove ( Entity ent,
Target tgt 
) [inline]

Definition at line 199 of file command.h.

References A, B, B2, DEBUG, FastEcslent::Target::location, m, n, RepulsionThresholdDistance, and valid().

FastEcslent::PotentialMove::PotentialMove ( Entity ent,
Target tgt 
) [inline]

Definition at line 142 of file command.h.

References A, B, B2, DEBUG, FastEcslent::Target::location, m, n, RepulsionThresholdDistance, and valid().

FastEcslent::PotentialMove::PotentialMove ( Entity ent,
Target tgt 
) [inline]

Definition at line 142 of file command.h.

References A, B, B2, DEBUG, FastEcslent::Target::location, m, n, RepulsionThresholdDistance, and valid().

FastEcslent::PotentialMove::PotentialMove ( Entity ent,
Target tgt 
) [inline]

Definition at line 142 of file command.h.

References A, B, B2, DEBUG, FastEcslent::Target::location, m, n, RepulsionThresholdDistance, and valid().

FastEcslent::PotentialMove::PotentialMove ( Entity ent,
Target tgt 
) [inline]

Definition at line 142 of file command.h.

References A, B, B2, DEBUG, FastEcslent::Target::location, m, n, RepulsionThresholdDistance, and valid().


Member Function Documentation

bool FastEcslent::PotentialMove::valid ( Ogre::Vector3  pos  )  [inline, private]

Definition at line 193 of file command.h.

Referenced by PotentialMove().

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]

Implements FastEcslent::Command.

Definition at line 213 of file command.h.

virtual Command* FastEcslent::PotentialMove::clone (  )  [inline, virtual]

Reimplemented from FastEcslent::Command.

Definition at line 214 of file command.h.

bool FastEcslent::PotentialMove::valid ( Ogre::Vector3  pos  )  [inline, private]

Definition at line 136 of file command.h.

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]

Implements FastEcslent::Command.

Definition at line 156 of file command.h.

bool FastEcslent::PotentialMove::valid ( Ogre::Vector3  pos  )  [inline, private]

Definition at line 136 of file command.h.

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]

Implements FastEcslent::Command.

Definition at line 156 of file command.h.

bool FastEcslent::PotentialMove::valid ( Ogre::Vector3  pos  )  [inline, private]

Definition at line 136 of file command.h.

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]

Implements FastEcslent::Command.

Definition at line 156 of file command.h.

bool FastEcslent::PotentialMove::valid ( Ogre::Vector3  pos  )  [inline, private]

Definition at line 136 of file command.h.

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]

Implements FastEcslent::Command.

Definition at line 156 of file command.h.


Member Data Documentation

double FastEcslent::PotentialMove::A [private]

Definition at line 196 of file command.h.

Referenced by PotentialMove(), and tick().

double FastEcslent::PotentialMove::B [private]

Definition at line 196 of file command.h.

Referenced by PotentialMove(), and tick().

double FastEcslent::PotentialMove::B2 [private]

Definition at line 196 of file command.h.

Referenced by PotentialMove().

double FastEcslent::PotentialMove::m [private]

Definition at line 196 of file command.h.

Referenced by PotentialMove(), and tick().

double FastEcslent::PotentialMove::n [private]

Definition at line 196 of file command.h.

Referenced by PotentialMove(), and tick().

double FastEcslent::PotentialMove::RepulsionThresholdDistance [private]

Definition at line 196 of file command.h.

Referenced by PotentialMove(), and tick().


The documentation for this class was generated from the following files:
Generated on Fri Dec 13 14:54:20 2013 for FastECSLent by  doxygen 1.5.4