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/T2PeopleTimeZoneList.h | |
parent | 37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff) | |
download | t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip |
first pass of T2DLL
Diffstat (limited to 'src/T2DLL/T2PeopleTimeZoneList.h')
-rw-r--r-- | src/T2DLL/T2PeopleTimeZoneList.h | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/src/T2DLL/T2PeopleTimeZoneList.h b/src/T2DLL/T2PeopleTimeZoneList.h index 918471b..59a81b7 100644 --- a/src/T2DLL/T2PeopleTimeZoneList.h +++ b/src/T2DLL/T2PeopleTimeZoneList.h @@ -1,30 +1,34 @@ #pragma once #include "common.h" +#include "LArray.h" -class T2PeopleTimeZoneList { +class AFX_EXT_CLASS T2PeopleTimeZoneList : public LArray { public: - T2PeopleTimeZoneList(unsigned int, unsigned int, T2WorldDef*); + T2PeopleTimeZoneList(unsigned int someNum, unsigned int isFixed, T2WorldDef* worldDef); T2PeopleTimeZoneList(T2Archive&, T2WorldDef*); virtual ~T2PeopleTimeZoneList(); -protected: - void Add(T2PeopleTypeArray*); -public: - void Add(T2PeopleType*, T2PoolDefDemandElem*); - void Init(unsigned int, float); - void IncHour(float); -protected: - T2PeopleTypeArray* GetItem(int) const; - T2PeopleTypeArray* CurrentItem() const; -public: - int Find(T2TenantMemberDef*, int, unsigned int, int) const; - int Call(T2TenantMemberDef*, int, unsigned int, T2PeopleType&); + void Add(T2PeopleType* inPeopleType, T2PoolDefDemandElem* inDemandElem); + void Init(unsigned int someNum, float limit); + void IncHour(float limit); + BOOL Find(T2TenantMemberDef* inTenantMemberDef, int inEconoType, unsigned int inTransportType, BOOL inCheckOnlyFirstEconoType) const; + BOOL Call(T2TenantMemberDef* inTenantMemberDef, int inEconoType, unsigned int inTransportType, T2PeopleType& outPeopleType); void DispatchRestore(T2PeopleType&); void DispatchAdd(T2PeopleType*); void Write(T2Archive&); - T2PeopleTimeZoneList(const T2PeopleTimeZoneList&) {} - T2PeopleTimeZoneList& operator=(const T2PeopleTimeZoneList&) {} - int IsFixed() const {} + BOOL IsFixed() const { return mIsFixed;} + protected: - int GetNumOfTimeZone() const {} + void Add(T2PeopleTypeArray* inArray); + T2PeopleTypeArray* GetItem(int index) const; + T2PeopleTypeArray* CurrentItem() const; + + int GetNumOfTimeZone() const { return GetCount(); } + + int _20; + BOOL mIsFixed; + int mHoursPerItem; + int mCurrentItem; + int mCurrentHour; + T2WorldDef *mWorldDef; }; |