FastEcslent::BuildFactory Class Reference

#include <commandFactory.h>

Inheritance diagram for FastEcslent::BuildFactory:

FastEcslent::CommandFactory

List of all members.

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


Detailed Description

Definition at line 49 of file commandFactory.h.


Constructor & Destructor Documentation

FastEcslent::BuildFactory::BuildFactory ( EntityType  spawnEnt  )  [inline]

Constructor for a Factory which produces commands to build different units.

Parameters:
spawnEnt The EntityType that BuildCommands produced from this factory should construct
Returns:
void

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.


Member Function Documentation

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.

Parameters:
owner A pointer the Entity which the new command is being issued to.
Returns:
Command* Pointer to a new BuildCommand assigned to 'owner', to spawn a new unit of type 'spawnEnt'

Implements FastEcslent::CommandFactory.

Definition at line 69 of file commandFactory.h.

References FastEcslent::ConstructCommand, and spawnEnt.


Member Data Documentation

EntityType FastEcslent::BuildFactory::spawnEnt [private]

Definition at line 75 of file commandFactory.h.

Referenced by MakeCommand().


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