#include <commandFactory.h>
Public Member Functions | |
BuildFactory (EntityType spawnEnt) | |
BuildFactory (const CommandFactory &orig) | |
virtual | ~BuildFactory () |
virtual std::deque< Command * > | MakeCommand (Entity *owner, std::pair< int, Ogre::Vector3 > mouseTargets) |
Private Attributes | |
EntityType | spawnEnt |
Definition at line 49 of file commandFactory.h.
FastEcslent::BuildFactory::BuildFactory | ( | EntityType | spawnEnt | ) | [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 57 of file commandFactory.h.
FastEcslent::BuildFactory::BuildFactory | ( | const CommandFactory & | orig | ) |
virtual FastEcslent::BuildFactory::~BuildFactory | ( | ) | [inline, virtual] |
Definition at line 61 of file commandFactory.h.
virtual std::deque<Command*> FastEcslent::BuildFactory::MakeCommand | ( | Entity * | owner, | |
std::pair< int, Ogre::Vector3 > | mouseTargets | |||
) | [inline, 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 69 of file commandFactory.h.
References FastEcslent::ConstructCommand, and spawnEnt.