diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
commit | c0c336500955a23e344651e5412c9d9d441ef4ee (patch) | |
tree | 790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2Pool.h | |
parent | 37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff) | |
download | t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip |
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2Pool.h | 57 |
1 files changed, 32 insertions, 25 deletions
diff --git a/src/T2DLL/T2Pool.h b/src/T2DLL/T2Pool.h index edd9020..e91e659 100644 --- a/src/T2DLL/T2Pool.h +++ b/src/T2DLL/T2Pool.h @@ -1,33 +1,40 @@ #pragma once #include "common.h" -class T2Pool { +class AFX_EXT_CLASS T2Pool { public: - T2Pool(T2PoolDef*, T2SeasonParamDef*, T2TemplatePluginList*, T2PeopleArrayList*, int, unsigned int, unsigned int, T2WorldDef*); - T2Pool(T2Archive&, T2PoolDef*, T2SeasonParamDef*, T2TemplatePluginList*, T2PeopleArrayList*, T2WorldDef*); + T2Pool(T2PoolDef* inDef, T2SeasonParamDef* inSeason, T2TemplatePluginList* inPluginList, T2PeopleArrayList* inPeopleList, int inLevel, unsigned int inIndex, unsigned int inSomeNum, T2WorldDef* inWorldDef); + T2Pool(T2Archive& inArchive, T2PoolDef* inDef, T2SeasonParamDef* inSeason, T2TemplatePluginList* inPluginList, T2PeopleArrayList* inPeopleList, T2WorldDef* inWorldDef); 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*); + void GameLevelChanged(int inLevel); + void IncHour(T2DateTime* inDateTime); + BOOL IsChangePopulation(); + BOOL Find(T2TenantMemberDef* inMember, int inEconoType, unsigned int inTransportType, BOOL inCheckOnlyFirstEconoType) const; + BOOL Find(T2TenantMemberTableDef* inTable, int inEconoType, unsigned int inTransportType, BOOL inCheckOnlyFirstEconoType) const; + T2People* Call(T2TenantMemberDef* inTenantMemberDef, int inEconoType, unsigned int inTransportType, unsigned int inSpecialFlag); + void Enter(T2People* inPeople); + void Leave(T2People* inPeople); + void DuplicatePeople(T2PeopleType* inPeopleType); + void RemovePeople(T2People* inPeople); + T2People* BornVIP(int inSilhouetteType, int inEconoType = -1); + void DeadVIP(T2People* inPeople); + void Write(T2Archive& inArchive); + + int GetPopulation() const { return mPopulation; } + 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&); + void DayChanged(); + T2People* RecoverPeople(T2PeopleType* inPeopleType); + void ShrinkPeople(T2People* inPeople, T2PeopleType& outPeopleType); - T2Pool(const T2Pool&) {} - T2Pool& operator=(const T2Pool&) {} - int GetPopulation() const {} + T2PeopleDemandList *mDemandList; + int mLevel; + unsigned int mSpecialFlag; + int _10; + int mPopulation; + int mLostPopulation; + int mPrevPopulation; + T2PoolDef *mPoolDef; + T2TemplatePluginList *mPlugins; + T2PeopleArrayList *mPeopleList; }; |