diff options
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2Pool.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/T2DLL/T2Pool.h b/src/T2DLL/T2Pool.h new file mode 100644 index 0000000..edd9020 --- /dev/null +++ b/src/T2DLL/T2Pool.h @@ -0,0 +1,33 @@ +#pragma once +#include "common.h" + +class T2Pool { +public: + T2Pool(T2PoolDef*, T2SeasonParamDef*, T2TemplatePluginList*, T2PeopleArrayList*, int, unsigned int, unsigned int, T2WorldDef*); + T2Pool(T2Archive&, T2PoolDef*, T2SeasonParamDef*, T2TemplatePluginList*, T2PeopleArrayList*, T2WorldDef*); + virtual ~T2Pool(); + void GameLevelChanged(int); + void IncHour(T2DateTime*); +protected: + void DayChanged(); +public: + int IsChangePopulation(); + int Find(T2TenantMemberDef*, int, unsigned int, int) const; + int Find(T2TenantMemberTableDef*, int, unsigned int, int) const; + T2People* Call(T2TenantMemberDef*, int, unsigned int, unsigned int); + void Enter(T2People*); + void Leave(T2People*); +protected: + T2People* RecoverPeople(T2PeopleType*); + void ShrinkPeople(T2People*, T2PeopleType&); +public: + void DuplicatePeople(T2PeopleType*); + void RemovePeople(T2People*); + T2People* BornVIP(int, int); + void DeadVIP(T2People*); + void Write(T2Archive&); + + T2Pool(const T2Pool&) {} + T2Pool& operator=(const T2Pool&) {} + int GetPopulation() const {} +}; |