summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2MoverArrayList.h
blob: 566c5c81dfe08dad9af463a22b488a2e01fb8b29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once
#include "common.h"
#include "LArray.h"

class AFX_CLASS_EXPORT T2MoverArrayList : public LArray {
public:
	T2MoverArrayList();
	virtual ~T2MoverArrayList();
	void Add(T2MoverArray* inArray);
	unsigned int GetItemCount();
	T2MoverArray* GetItemAt(int inIndex);
	T2Mover* GetMoverByID(unsigned int inMoverID);
	T2Mover* FindUnusedMover();
	void DrawMoverAll(T2TowerDoc* inDoc, const RECT& inRect);
	void DispatchIdle(T2TowerDoc* inDoc);
	void Read(T2Archive& inArchive, T2TowerDoc* inDoc);
	void Write(T2Archive& inArchive);
	int CalcMentenanceCost(T2TowerDoc* inDoc) const;
	LArray* MakeMoverList(int inType);
};