Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

simulation
Class CFormationManager

Singleton
   |
   +--CFormationManager

   in FormationManager.h
   in FormationManager.cpp

class CFormationManager
extends Singleton


Field Summary
private std::vector< CEntityFormation* > m_formations
          
 
Constructor Summary
CFormationManager()
          
~CFormationManager()
          
 
Method Summary
 bool AddUnit( CEntity* entity, int& form )
          
 CEntityList AddUnitList( CEntityList& entities, int form )
          
 void CreateFormation( CEntityList& entities, CStrW& name )
          
 void DestroyFormation( size_t form )
          
 CEntityFormation* GetFormation( int form )
          
 inline bool IsValidFormation( int index )
          
 bool RemoveUnit( CEntity* entity )
          
 bool RemoveUnitList( CEntityList& entities )
          
 void UpdateIndexes( size_t update )
          
   
Methods inherited from class Singleton
GetSingleton, GetSingletonPtr, IsInitialised
 

Field Detail

m_formations

private std::vector< CEntityFormation* > m_formations;


Constructor Detail

CFormationManager

public CFormationManager();

~CFormationManager

public ~CFormationManager();


Method Detail

AddUnit

public bool AddUnit( CEntity* entity, int& form );

AddUnitList

public CEntityList AddUnitList( CEntityList& entities, int form );

CreateFormation

public void CreateFormation( CEntityList& entities, CStrW& name );

DestroyFormation

public void DestroyFormation( size_t form );

GetFormation

public CEntityFormation* GetFormation( int form );

IsValidFormation

public inline bool IsValidFormation( int index );

RemoveUnit

public bool RemoveUnit( CEntity* entity );

RemoveUnitList

public bool RemoveUnitList( CEntityList& entities );

UpdateIndexes

public void UpdateIndexes( size_t update );

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:14
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD