 |
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
src/include/unit_manager.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef __UNITMANAGER_H__
00030 #define __UNITMANAGER_H__
00031
00033
00034
00035
00036
00037
00038 #include <list>
00039
00040
00041
00042
00043
00044
00045 class CUnit;
00046 class CFile;
00047
00048
00049 class CUnitManager
00050 {
00051 public:
00052 void Init();
00053 CUnit *AllocUnit();
00054 void ReleaseUnit(CUnit *unit);
00055 void Save(CFile *file);
00056
00057 private:
00058 std::list<CUnit *> ReleasedUnits;
00059 };
00060
00061
00062
00063
00064
00065
00066 extern CUnit *UnitSlots[];
00067 extern unsigned int UnitSlotFree;
00068
00069 extern CUnitManager UnitManager;
00070
00072
00073 #endif // !__UNITMANAGER_H__
(C) Copyright 1998-2011 by The