From c0c336500955a23e344651e5412c9d9d441ef4ee Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 28 Jun 2023 22:22:32 +0100 Subject: first pass of T2DLL --- src/T2DLL/T2PeopleDemandList.h | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'src/T2DLL/T2PeopleDemandList.h') diff --git a/src/T2DLL/T2PeopleDemandList.h b/src/T2DLL/T2PeopleDemandList.h index 1e4ceef..e330e85 100644 --- a/src/T2DLL/T2PeopleDemandList.h +++ b/src/T2DLL/T2PeopleDemandList.h @@ -1,26 +1,25 @@ #pragma once #include "common.h" +#include "LArray.h" -class T2PeopleDemandList { +class AFX_EXT_CLASS T2PeopleDemandList : private LArray { public: - T2PeopleDemandList(T2PoolDef*, T2SeasonParamDef*, T2WorldDef*); - T2PeopleDemandList(T2Archive&, T2SeasonParamDef*, T2WorldDef*); + T2PeopleDemandList(T2PoolDef* inPoolDef, T2SeasonParamDef* inSeasonParamDef, T2WorldDef* inWorldDef); + T2PeopleDemandList(T2Archive& inArchive, T2SeasonParamDef* inSeasonParamDef, T2WorldDef* inWorldDef); virtual ~T2PeopleDemandList(); + + void Add(T2PoolGradeDef* gradeDef); + void Init(unsigned int inMonth, unsigned int inSomeNum); + void IncHour(unsigned int inMonth); + BOOL Find(T2TenantMemberDef* inTenantMemberDef, int inEconoType, unsigned int inTransportType, BOOL inCheckOnlyFirstEconoType) const; + BOOL Call(T2TenantMemberDef* inTenantMemberDef, int inEconoType, unsigned int inTransportType, T2PeopleType& outPeopleType) const; + void DispatchRestore(T2PeopleType& peopleType); + void DispatchAdd(T2PeopleType* peopleType); + void Write(T2Archive& archive); + protected: - void Add(T2PeopleTimeZoneList*); -public: - void Add(T2PoolGradeDef*); - void Init(unsigned int, unsigned int); - void IncHour(unsigned int); -protected: + void Add(T2PeopleTimeZoneList* timeZoneList); T2PeopleTimeZoneList* GetItem(int) const; -public: - int Find(T2TenantMemberDef*, int, unsigned int, int) const; - int Call(T2TenantMemberDef*, int, unsigned int, T2PeopleType&) const; - void DispatchRestore(T2PeopleType&); - void DispatchAdd(T2PeopleType*); - void Write(T2Archive&); - T2PeopleDemandList(const T2PeopleDemandList&) {} - T2PeopleDemandList& operator=(const T2PeopleDemandList&) {} + T2SeasonParamDef *mSeasonParamDef; }; -- cgit v1.2.3