Pyrogenesis trunk
Public Member Functions | Private Attributes | List of all members
CUnitManager Class Reference

#include <UnitManager.h>

Collaboration diagram for CUnitManager:
Collaboration graph
[legend]

Public Member Functions

 CUnitManager ()
 
 ~CUnitManager ()
 
CUnitAddUnit (std::unique_ptr< CUnit > unit)
 
void DeleteUnit (CUnit *unit)
 
CUnitCreateUnit (const CStrW &actorName, const entity_id_t id, const uint32_t seed)
 
void SetObjectManager (CObjectManager &objectManager)
 
void MakeTerrainDirty (ssize_t i0, ssize_t j0, ssize_t i1, ssize_t j1, int dirtyFlags)
 Mark a specific region of the terrain as dirty. More...
 

Private Attributes

std::vector< std::unique_ptr< CUnit > > m_Units
 
CObjectManagerm_ObjectManager
 

Constructor & Destructor Documentation

◆ CUnitManager()

CUnitManager::CUnitManager ( )

◆ ~CUnitManager()

CUnitManager::~CUnitManager ( )
default

Member Function Documentation

◆ AddUnit()

CUnit * CUnitManager::AddUnit ( std::unique_ptr< CUnit unit)

◆ CreateUnit()

CUnit * CUnitManager::CreateUnit ( const CStrW &  actorName,
const entity_id_t  id,
const uint32_t  seed 
)

◆ DeleteUnit()

void CUnitManager::DeleteUnit ( CUnit unit)

◆ MakeTerrainDirty()

void CUnitManager::MakeTerrainDirty ( ssize_t  i0,
ssize_t  j0,
ssize_t  i1,
ssize_t  j1,
int  dirtyFlags 
)

Mark a specific region of the terrain as dirty.

Coordinates are in terrain tiles, lower inclusive, upper exclusive.

◆ SetObjectManager()

void CUnitManager::SetObjectManager ( CObjectManager objectManager)
inline

Member Data Documentation

◆ m_ObjectManager

CObjectManager* CUnitManager::m_ObjectManager
private

◆ m_Units

std::vector<std::unique_ptr<CUnit> > CUnitManager::m_Units
private

The documentation for this class was generated from the following files: