summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2StopInfoArray.h
blob: 904de8a8a47ced989bdd08ec062756ee3fc81d4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include "common.h"
#include "LArray.h"

class AFX_CLASS_EXPORT T2StopInfoArray : private LArray {
public:
	T2StopInfoArray();
	virtual ~T2StopInfoArray();
	void Init(int count);
	void AllClear();
	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;

	static T2StopInfoArray* ReadStopInfoArray(T2Archive& archive);
	static void WriteStopInfoArray(T2StopInfoArray* array, T2Archive& archive);
};