summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2OutObjArrayList.h
blob: fda0a5a7b2a2e6b3b05305628ec051e170445a05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef T2DLL_T2OUTOBJARRAYLIST_H
#define T2DLL_T2OUTOBJARRAYLIST_H
#include "../common.h"
#include "LArray.h"

class AFX_CLASS_EXPORT T2OutObjArrayList : public LArray {
public:
	T2OutObjArrayList();
	virtual ~T2OutObjArrayList();
	void Add(T2OutObjArray* inArray);
	T2OutObjArray* GetItemAt(int inIndex);
	T2OutObj* FindUnusedOutObj();
	void DispatchIdle(T2TowerDoc* inDoc);
	T2OutObj* GetIndOutObj(unsigned int inIndex);
	T2OutObj* GetOutObjByID(unsigned int inOutObjID);
	int CalcMentenanceCost(T2TowerDoc* inDoc) const;
	void Read(T2Archive& inArchive, T2TowerDoc* inDoc);
	void Write(T2Archive& inArchive);
};
#endif