summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2StopInfoArray.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2StopInfoArray.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to 'src/T2DLL/T2StopInfoArray.h')
-rw-r--r--src/T2DLL/T2StopInfoArray.h33
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);
};