summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2UnitInfo.h
blob: 55c629b422814bc3becc18e979a381783b3ba4ff (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
#ifndef T2DLL_T2UNITINFO_H
#define T2DLL_T2UNITINFO_H
#include "../common.h"

class AFX_CLASS_EXPORT T2UnitInfo {
public:
	T2UnitInfo();
	~T2UnitInfo();
	BOOL IsBuildable();
	BOOL IsMoverID(unsigned int tenantID);
	BOOL IsRequestID(unsigned int moverID);
	unsigned int GetTenantID();
	unsigned int GetMoverID();
	unsigned int GetRequestID();
	void FillTenantID(unsigned int tenantID);
	void FillMoverID(unsigned int moverID);
	void InitMask(CResFile& resFile);
	void Read(T2Archive& archive, T2TowerDoc* towerDoc);
	void Write(T2Archive& archive);

protected:
    // encodes buildable flag and a mover OR request ID
    unsigned int mVarA;
    unsigned int mVarB;
};
#endif