FastEcslent::CommandFactory Class Reference

#include <commandFactory.h>

Inheritance diagram for FastEcslent::CommandFactory:

FastEcslent::BuildFactory FastEcslent::BuildStructureFactory FastEcslent::MoveFactory

List of all members.

Public Member Functions

 CommandFactory (RequiredTargetType requiredTargetType, std::string previewMeshName="", EntityType targetEntityType=NENTITYTYPES)
 CommandFactory (const CommandFactory &orig)
virtual ~CommandFactory ()
virtual std::deque< Command * > MakeCommand (Entity *owner, std::pair< int, Ogre::Vector3 > mouseTargets)=0

Public Attributes

RequiredTargetType requiredTarget
EntityType targetEntityType
std::string previewMeshName


Detailed Description

An interface for implementing factory classes to produce different commands

Definition at line 30 of file commandFactory.h.


Constructor & Destructor Documentation

FastEcslent::CommandFactory::CommandFactory ( RequiredTargetType  requiredTargetType,
std::string  previewMeshName = "",
EntityType  targetEntityType = NENTITYTYPES 
) [inline]

Definition at line 32 of file commandFactory.h.

CommandFactory::CommandFactory ( const CommandFactory orig  ) 

Definition at line 14 of file commandFactory.cpp.

CommandFactory::~CommandFactory (  )  [virtual]

Definition at line 17 of file commandFactory.cpp.


Member Function Documentation

virtual std::deque<Command*> FastEcslent::CommandFactory::MakeCommand ( Entity owner,
std::pair< int, Ogre::Vector3 >  mouseTargets 
) [pure virtual]

Interface to a function which produces a new command

Parameters:
owner A pointer the Entity which the new command is being issued to.
Returns:
Command*

Implemented in FastEcslent::BuildFactory, FastEcslent::BuildStructureFactory, and FastEcslent::MoveFactory.

Referenced by FastEcslent::addCommandForEnt().


Member Data Documentation

RequiredTargetType FastEcslent::CommandFactory::requiredTarget

Definition at line 41 of file commandFactory.h.

Referenced by OgreGFX::FEButton::handleKeyEvent(), OgreGFX::FEButton::handleMouseEvent(), and OgreGFX::FEButton::processButtonFirstEvent().

EntityType FastEcslent::CommandFactory::targetEntityType

Definition at line 42 of file commandFactory.h.

Referenced by OgreGFX::FEButton::handleMouseEvent().

std::string FastEcslent::CommandFactory::previewMeshName

Definition at line 43 of file commandFactory.h.

Referenced by OgreGFX::FEButton::processButtonFirstEvent().


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