#include <commandFactory.h>

Public Member Functions | |
| BuildStructureFactory (EntityType spawnEnt, std::string previewMeshName="", RequiredTargetType requiredTargetType=TargetPosition, EntityType targetEntityType=NENTITYTYPES) | |
| BuildStructureFactory (const CommandFactory &orig) | |
| virtual | ~BuildStructureFactory () |
| virtual std::deque< Command * > | MakeCommand (Entity *owner, std::pair< int, Ogre::Vector3 > mouseTargets) |
Private Attributes | |
| EntityType | spawnEnt |
Definition at line 79 of file commandFactory.h.
| FastEcslent::BuildStructureFactory::BuildStructureFactory | ( | EntityType | spawnEnt, | |
| std::string | previewMeshName = "", |
|||
| RequiredTargetType | requiredTargetType = TargetPosition, |
|||
| EntityType | targetEntityType = NENTITYTYPES | |||
| ) | [inline] |
Constructor for a Factory which produces commands to build different units.
| spawnEnt | The EntityType that BuildCommands produced from this factory should construct |
Definition at line 87 of file commandFactory.h.
| FastEcslent::BuildStructureFactory::BuildStructureFactory | ( | const CommandFactory & | orig | ) |
| virtual FastEcslent::BuildStructureFactory::~BuildStructureFactory | ( | ) | [inline, virtual] |
Definition at line 91 of file commandFactory.h.
| std::deque< Command * > BuildStructureFactory::MakeCommand | ( | Entity * | owner, | |
| std::pair< int, Ogre::Vector3 > | mouseTargets | |||
| ) | [virtual] |
Function to produce a new BuildCommand for a specified Entity.
| owner | A pointer the Entity which the new command is being issued to. |
Implements FastEcslent::CommandFactory.
Definition at line 20 of file commandFactory.cpp.
References FastEcslent::Entity::builder, FastEcslent::ConstructCommand, FastEcslent::createMoveForEnt(), FastEcslent::createWaitForEnt(), FastEcslent::Entity::engine, FastEcslent::Engine::entityMgr, FastEcslent::EntityMgr::ents, FastEcslent::Builder::minBuildRadius, FastEcslent::Entity::pos, spawnEnt, and FastEcslent::TargetPosition.
1.5.4