summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2UnitInfo.h
blob: df3549bdd835e56a8bd79c6eca9aca31c60d194f (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
#pragma once
#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;
};