diff options
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; }; |