From c0c336500955a23e344651e5412c9d9d441ef4ee Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 28 Jun 2023 22:22:32 +0100 Subject: first pass of T2DLL --- src/T2DLL/T2StopInfoArray.h | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'src/T2DLL/T2StopInfoArray.h') 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); }; -- cgit v1.2.3