FastEcslent::BuildStructureFactory Class Reference

#include <commandFactory.h>

Inheritance diagram for FastEcslent::BuildStructureFactory:

FastEcslent::CommandFactory

List of all members.

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


Detailed Description

Definition at line 79 of file commandFactory.h.


Constructor & Destructor Documentation

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.

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

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.


Member Function Documentation

std::deque< Command * > BuildStructureFactory::MakeCommand ( Entity owner,
std::pair< int, Ogre::Vector3 >  mouseTargets 
) [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 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.


Member Data Documentation

EntityType FastEcslent::BuildStructureFactory::spawnEnt [private]

Definition at line 101 of file commandFactory.h.

Referenced by MakeCommand().


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