_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
#include <unit_manager.h>
◆ Iterator
◆ CUnitManager()
CUnitManager::CUnitManager |
( |
| ) |
|
◆ Add()
◆ AllocUnit()
CUnit * CUnitManager::AllocUnit |
( |
| ) |
|
Allocate a new unit
- Returns
- New unit
◆ begin()
◆ empty()
bool CUnitManager::empty |
( |
| ) |
const |
◆ end()
◆ GetSlotUnit()
CUnit & CUnitManager::GetSlotUnit |
( |
int |
index | ) |
const |
◆ GetUnits()
const std::vector<CUnit *>& CUnitManager::GetUnits |
( |
| ) |
const |
|
inline |
◆ GetUsedSlotCount()
unsigned int CUnitManager::GetUsedSlotCount |
( |
| ) |
const |
◆ Init()
void CUnitManager::Init |
( |
| ) |
|
Initial memory allocation for units.
◆ lastCreatedUnit()
CUnit * CUnitManager::lastCreatedUnit |
( |
| ) |
|
◆ Load()
void CUnitManager::Load |
( |
lua_State * |
Lua | ) |
|
◆ ReleaseUnit()
void CUnitManager::ReleaseUnit |
( |
CUnit * |
unit | ) |
|
Release a unit
- Parameters
-
◆ Save()
void CUnitManager::Save |
( |
CFile & |
file | ) |
const |
Save state of unit manager to file.
- Parameters
-
The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The