$treeview $search $mathjax
Stratagus
2.2.6
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ 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>
Public Member Functions | |
unit_manager.cpp - Unit manager. | |
void | Init () |
Unit manager. | |
CUnit * | AllocUnit () |
void | ReleaseUnit (CUnit *unit) |
void | Save (CFile *file) |
void CUnitManager::Init | ( | ) |
Unit manager.
Initial memory allocation for units.
CUnit * CUnitManager::AllocUnit | ( | ) |
Allocate a new unit
void CUnitManager::ReleaseUnit | ( | CUnit * | unit | ) |
Release a unit
unit | Unit to release |
void CUnitManager::Save | ( | CFile * | file | ) |
Save state of unit manager to file.
file | Output file. |