diff options
Diffstat (limited to 'src/T2DLL/T2StopInfoArray.h')
-rw-r--r-- | src/T2DLL/T2StopInfoArray.h | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/src/T2DLL/T2StopInfoArray.h b/src/T2DLL/T2StopInfoArray.h index d42ef9e..4247f40 100644 --- a/src/T2DLL/T2StopInfoArray.h +++ b/src/T2DLL/T2StopInfoArray.h @@ -1,26 +1,25 @@ #pragma once #include "common.h" +#include "LArray.h" -class T2StopInfoArray { +class AFX_EXT_CLASS T2StopInfoArray : private LArray { public: T2StopInfoArray(); virtual ~T2StopInfoArray(); - void Init(int); + void Init(int count); void AllClear(); - void Expand(EEquipPos, int); - int IsStopPos(int, ERequestUpDown); - int IsOnStopPos(int, ERequestUpDown); - int IsOffStopPos(int, ERequestUpDown); - void SetOnStop(int, ERequestUpDown); - void SetOffStop(int, ERequestUpDown); - void ClearOnStop(int, ERequestUpDown); - void ClearOffStop(int, ERequestUpDown); - char GetStopAt(int, ERequestUpDown); - void SetStopAt(int, ERequestUpDown, char); - int GetIndex(int, ERequestUpDown) const; - static T2StopInfoArray* ReadStopInfoArray(T2Archive&); - static void WriteStopInfoArray(T2StopInfoArray*, T2Archive&); + void Expand(EEquipPos pos, int count); + BOOL IsStopPos(int i, ERequestUpDown upDown); + BOOL IsOnStopPos(int i, ERequestUpDown upDown); + BOOL IsOffStopPos(int i, ERequestUpDown upDown); + void SetOnStop(int i, ERequestUpDown upDown); + void SetOffStop(int i, ERequestUpDown upDown); + void ClearOnStop(int i, ERequestUpDown upDown); + void ClearOffStop(int i, ERequestUpDown upDown); + char GetStopAt(int i, ERequestUpDown upDown); + void SetStopAt(int i, ERequestUpDown upDown, char); + int GetIndex(int i, ERequestUpDown upDown) const; - T2StopInfoArray(const T2StopInfoArray&) {} - T2StopInfoArray& operator=(const T2StopInfoArray&) {} + static T2StopInfoArray* ReadStopInfoArray(T2Archive& archive); + static void WriteStopInfoArray(T2StopInfoArray* array, T2Archive& archive); }; |