summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2PeopleDemandList.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2PeopleDemandList.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to '')
-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;
};