summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2UnitInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/T2DLL/T2UnitInfo.h')
-rw-r--r--src/T2DLL/T2UnitInfo.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/T2DLL/T2UnitInfo.h b/src/T2DLL/T2UnitInfo.h
index 2c0835e..11242f0 100644
--- a/src/T2DLL/T2UnitInfo.h
+++ b/src/T2DLL/T2UnitInfo.h
@@ -1,21 +1,24 @@
#pragma once
#include "common.h"
-class T2UnitInfo {
+class AFX_EXT_CLASS T2UnitInfo {
public:
T2UnitInfo();
~T2UnitInfo();
- int IsBuildable();
- int IsMoverID(unsigned int);
- int IsRequestID(unsigned int);
+ 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);
- void FillMoverID(unsigned int);
- void InitMask(CResFile&);
- void Read(T2Archive&, T2TowerDoc*);
- void Write(T2Archive&);
+ void FillTenantID(unsigned int tenantID);
+ void FillMoverID(unsigned int moverID);
+ void InitMask(CResFile& resFile);
+ void Read(T2Archive& archive, T2TowerDoc* towerDoc);
+ void Write(T2Archive& archive);
- T2UnitInfo& operator=(const T2UnitInfo&) {}
+protected:
+ // encodes buildable flag and a mover OR request ID
+ unsigned int mVarA;
+ unsigned int mVarB;
};