summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2PeopleDemandList.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/T2DLL/T2PeopleDemandList.h')
-rw-r--r--src/T2DLL/T2PeopleDemandList.h33
1 files changed, 16 insertions, 17 deletions
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;
};