#include <unitAI.h>
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 |
Definition at line 21 of file unitAI.h.
FastEcslent::UnitAI::UnitAI | ( | Entity * | ent, | |
UnitAspectType | at | |||
) | [inline] |
FastEcslent::UnitAI::UnitAI | ( | Entity * | ent, | |
UnitAspectType | at | |||
) | [inline] |
FastEcslent::UnitAI::UnitAI | ( | Entity * | ent, | |
UnitAspectType | at | |||
) | [inline] |
FastEcslent::UnitAI::UnitAI | ( | Entity * | ent, | |
UnitAspectType | at | |||
) | [inline] |
FastEcslent::UnitAI::UnitAI | ( | Entity * | ent, | |
UnitAspectType | at | |||
) | [inline] |
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 | ) |
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().
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 |
std::deque<Command*> FastEcslent::UnitAI::commands |
std::deque<Command*> FastEcslent::UnitAI::commands |
std::deque<Command*> FastEcslent::UnitAI::commands |