FastEcslent::UnitAI Class Reference

#include <unitAI.h>

Inheritance diagram for FastEcslent::UnitAI:

FastEcslent::UnitAspect FastEcslent::UnitAspect FastEcslent::UnitAspect FastEcslent::UnitAspect FastEcslent::UnitAspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect FastEcslent::Aspect

List of all members.

Public Member Functions

 UnitAI (Entity *ent, UnitAspectType at)
virtual void tick (double dt)
virtual void init ()
void addCommand (Command *cmd)
void setCommand (Command *cmd)
void setCommandList (std::deque< Command * > comds)
 UnitAI (Entity *ent, UnitAspectType at)
virtual void tick (double dt)
virtual void init ()
void addCommand (Command *cmd)
void setCommand (Command *cmd)
void setCommandList (std::deque< Command * > comds)
 UnitAI (Entity *ent, UnitAspectType at)
virtual void tick (double dt)
virtual void init ()
void addCommand (Command *cmd)
void setCommand (Command *cmd)
void setCommandList (std::deque< Command * > comds)
 UnitAI (Entity *ent, UnitAspectType at)
virtual void tick (double dt)
virtual void init ()
void addCommand (Command *cmd)
void setCommand (Command *cmd)
void setCommandList (std::deque< Command * > comds)
 UnitAI (Entity *ent, UnitAspectType at)
virtual void tick (double dt)
virtual void init ()
void addCommand (Command *cmd)
void setCommand (Command *cmd)
void setCommandList (std::deque< Command * > comds)

Public Attributes

std::deque< Command * > commands
ControlType state
std::deque< Command * > commands
std::deque< Command * > commands
std::deque< Command * > commands
std::deque< Command * > commands


Detailed Description

Definition at line 21 of file unitAI.h.


Constructor & Destructor Documentation

FastEcslent::UnitAI::UnitAI ( Entity ent,
UnitAspectType  at 
) [inline]

Definition at line 27 of file unitAI.h.

FastEcslent::UnitAI::UnitAI ( Entity ent,
UnitAspectType  at 
) [inline]

Definition at line 25 of file unitAI.h.

FastEcslent::UnitAI::UnitAI ( Entity ent,
UnitAspectType  at 
) [inline]

Definition at line 25 of file unitAI.h.

FastEcslent::UnitAI::UnitAI ( Entity ent,
UnitAspectType  at 
) [inline]

Definition at line 27 of file unitAI.h.

FastEcslent::UnitAI::UnitAI ( Entity ent,
UnitAspectType  at 
) [inline]

Definition at line 27 of file unitAI.h.


Member Function Documentation

void FastEcslent::UnitAI::tick ( double  dt  )  [inline, virtual]

Reimplemented from FastEcslent::UnitAspect.

Definition at line 14 of file unitAI.cpp.

References commands, FastEcslent::Entity::engine, FastEcslent::UnitAspect::entity, FastEcslent::Entity::entityId, FastEcslent::MANUAL, FastEcslent::NETSLAVE, FastEcslent::Engine::options, Options::player, FastEcslent::Identity::player, Options::side, FastEcslent::Identity::side, and state.

void FastEcslent::UnitAI::init ( void   )  [virtual]

Reimplemented from FastEcslent::UnitAspect.

Definition at line 35 of file unitAI.cpp.

References commands.

Referenced by FastEcslent::Entity::init(), and FastEcslent::Building::init().

void FastEcslent::UnitAI::addCommand ( Command cmd  ) 

Definition at line 42 of file unitAI.cpp.

References commands, and FastEcslent::Command::init().

Referenced by FastEcslent::addMoveForEnt(), FastEcslent::Gas::Gas(), FastEcslent::setGatherForEnt(), and FastEcslent::setPotentialMoveForEnt().

void FastEcslent::UnitAI::setCommand ( Command cmd  ) 

Definition at line 50 of file unitAI.cpp.

References commands, and FastEcslent::Command::init().

Referenced by FastEcslent::setGatherForEnt(), FastEcslent::setMoveForEnt(), FastEcslent::setPotentialMoveForEnt(), and FastEcslent::GameMgr::startMining().

void FastEcslent::UnitAI::setCommandList ( std::deque< Command * >  comds  ) 

Definition at line 59 of file unitAI.cpp.

References commands.

Referenced by FastEcslent::addCommandForEnt().

virtual void FastEcslent::UnitAI::tick ( double  dt  )  [virtual]

Reimplemented from FastEcslent::UnitAspect.

virtual void FastEcslent::UnitAI::init (  )  [virtual]

Reimplemented from FastEcslent::UnitAspect.

void FastEcslent::UnitAI::addCommand ( Command cmd  ) 

void FastEcslent::UnitAI::setCommand ( Command cmd  ) 

void FastEcslent::UnitAI::setCommandList ( std::deque< Command * >  comds  ) 

virtual void FastEcslent::UnitAI::tick ( double  dt  )  [virtual]

Reimplemented from FastEcslent::UnitAspect.

virtual void FastEcslent::UnitAI::init (  )  [virtual]

Reimplemented from FastEcslent::UnitAspect.

void FastEcslent::UnitAI::addCommand ( Command cmd  ) 

void FastEcslent::UnitAI::setCommand ( Command cmd  ) 

void FastEcslent::UnitAI::setCommandList ( std::deque< Command * >  comds  ) 

virtual void FastEcslent::UnitAI::tick ( double  dt  )  [virtual]

Reimplemented from FastEcslent::UnitAspect.

virtual void FastEcslent::UnitAI::init (  )  [virtual]

Reimplemented from FastEcslent::UnitAspect.

void FastEcslent::UnitAI::addCommand ( Command cmd  ) 

void FastEcslent::UnitAI::setCommand ( Command cmd  ) 

void FastEcslent::UnitAI::setCommandList ( std::deque< Command * >  comds  ) 

virtual void FastEcslent::UnitAI::tick ( double  dt  )  [virtual]

Reimplemented from FastEcslent::UnitAspect.

virtual void FastEcslent::UnitAI::init (  )  [virtual]

Reimplemented from FastEcslent::UnitAspect.

void FastEcslent::UnitAI::addCommand ( Command cmd  ) 

void FastEcslent::UnitAI::setCommand ( Command cmd  ) 

void FastEcslent::UnitAI::setCommandList ( std::deque< Command * >  comds  ) 


Member Data Documentation

std::deque<Command*> FastEcslent::UnitAI::commands

Definition at line 23 of file unitAI.h.

Referenced by addCommand(), FastEcslent::addCommandForEnt(), OgreSND::SoundMgr::copySoundState(), init(), setCommand(), setCommandList(), and tick().

ControlType FastEcslent::UnitAI::state

Definition at line 25 of file unitAI.h.

Referenced by FastEcslent::NetThread::createEnt(), FastEcslent::NetThread::propagateCommand(), FastEcslent::NetAspect::squalch(), FastEcslent::NetAspect::squalchOtherClients(), tick(), and FastEcslent::NetAspect::tick().

std::deque<Command*> FastEcslent::UnitAI::commands

Definition at line 23 of file unitAI.h.

std::deque<Command*> FastEcslent::UnitAI::commands

Definition at line 23 of file unitAI.h.

std::deque<Command*> FastEcslent::UnitAI::commands

Definition at line 23 of file unitAI.h.

std::deque<Command*> FastEcslent::UnitAI::commands

Definition at line 23 of file unitAI.h.


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