summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2PeopleTypeArray.h
blob: f667fc0d511e3157268df5d211eebc87507b9a2e (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
28
29
#ifndef T2DLL_T2PEOPLETYPEARRAY_H
#define T2DLL_T2PEOPLETYPEARRAY_H
#include "../common.h"
#include "LArray.h"

class AFX_CLASS_EXPORT T2PeopleTypeArray : protected LArray {
public:
	T2PeopleTypeArray(unsigned int);
	T2PeopleTypeArray(T2Archive&);
	virtual ~T2PeopleTypeArray();
	void Add(T2PeopleType* type, unsigned int count, int where = 0);
	void Add(T2PeopleType*, T2PoolTimeZoneDef*, unsigned int);
	void AdjustLife();
	void InitSearchLimit(float);
	BOOL Find(T2TenantMemberDef*, int inEconoType, unsigned int inTransportType, BOOL) const;
	BOOL Call(T2TenantMemberDef*, int inEconoType, unsigned int inTransportType, T2PeopleType&);
	void Restore(T2PeopleType&);
	void Write(T2Archive&);
protected:
	void Read(T2Archive&);

	BOOL m20;
	unsigned int m24;
	int m28;
	int m2C;

	friend class T2PoolView;
};
#endif