summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2TenantArrayList.h
blob: 213f3bc908a41c11128b3e9b06bf7bfdc71e476b (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
26
27
#pragma once
#include "common.h"
#include "LArray.h"

class AFX_CLASS_EXPORT T2TenantArrayList : public LArray {
public:
	T2TenantArrayList();
	virtual ~T2TenantArrayList();
	void Add(T2TenantArray*);
	unsigned int GetItemCount();
	T2TenantArray* GetItemAt(int);
	T2Tenant* GetTenantByID(unsigned int);
	T2Tenant* GetTenantByPID(DWORD);
	T2Tenant* FindUnusedTenant();
	void DispatchIdle(T2TowerDoc*);
	void TenantRemoved(unsigned int);
	void BreakoutEmergency(T2TowerDoc*);
	int CalcMentenanceCost(T2TowerDoc*) const;
	LArray* MakeTenantList(int type);
	LArray* MakeTenantList(BOOL (*func) (const T2Tenant*));
	void Read(T2Archive&, T2TowerDoc*);
	void Write(T2Archive&);
	void RecoverRelatedTenantList(T2RegistedTenantDB*);

protected:
    int mCounter;
};