_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
Go to the documentation of this file.
29 #ifndef __UNITMANAGER_H__
30 #define __UNITMANAGER_H__
53 typedef std::vector<CUnit *>::iterator
Iterator;
81 std::vector<CUnit *> units;
82 std::vector<CUnit *> unitSlots;
83 std::list<CUnit *> releasedUnits;
96 #endif // !__UNITMANAGER_H__
CUnit * AllocUnit()
Definition: unit_manager.cpp:82
void ReleaseUnit(CUnit *unit)
Definition: unit_manager.cpp:107
void Add(CUnit *unit)
Definition: unit_manager.cpp:159
lua_State * Lua
Definition: script.cpp:68
Iterator end()
Definition: unit_manager.cpp:144
unsigned int GetUsedSlotCount() const
Definition: unit_manager.cpp:134
void Save(CFile &file) const
Definition: unit_manager.cpp:171
Iterator begin()
Definition: unit_manager.cpp:139
CUnitManager()
Unit manager.
Definition: unit_manager.cpp:54
CUnit & GetSlotUnit(int index) const
Definition: unit_manager.cpp:129
Definition: unit_manager.h:50
bool empty() const
Definition: unit_manager.cpp:149
const std::vector< CUnit * > & GetUnits() const
Definition: unit_manager.h:67
std::vector< CUnit * >::iterator Iterator
Definition: unit_manager.h:53
CUnit * lastCreatedUnit()
Definition: unit_manager.cpp:154
void Init()
Definition: unit_manager.cpp:61
void Load(lua_State *Lua)
Definition: unit_manager.cpp:187
The big unit structure.
Definition: unit.h:135
CUnitManager * UnitManager
Definition: unit_manager.cpp:48
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.