#ifndef T2DLL_T2REQUESTIDARRAY_H #define T2DLL_T2REQUESTIDARRAY_H #include "../common.h" #include "LArray.h" enum EReqIDArrayPos { ReqIDArrayPos_0 = 0, ReqIDArrayPos_1 = 1, }; class AFX_CLASS_EXPORT T2RequestIDArray : private LArray { public: T2RequestIDArray(); virtual ~T2RequestIDArray(); void Init(const RECT&); unsigned int GetItemCount() const; void AllClear(); void Expand(EReqIDArrayPos, int); void SetRequestIDAt(int, ERequestUpDown, unsigned int); unsigned int GetRequestIDAt(int, ERequestUpDown) const; BOOL IsStopPosition(int) const; void RemoveRequest(T2TowerDoc*, int, ERequestUpDown); void Union(T2RequestIDArray*); void MoverIDChanged(T2FloorInfo*, unsigned int); void StopRemoved(T2TowerDoc*, int); void ModuleRemoved(T2TowerDoc*, unsigned int); static T2RequestIDArray* ReadReqIDArray(T2Archive&); static void WriteReqIDArray(T2RequestIDArray*, T2Archive&); private: int GetIndex(int, ERequestUpDown) const; }; #endif