diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
commit | c0c336500955a23e344651e5412c9d9d441ef4ee (patch) | |
tree | 790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2UnitInfo.h | |
parent | 37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff) | |
download | t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip |
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2UnitInfo.h | 23 |
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; }; |