summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2Equip.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2Equip.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2Equip.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/T2DLL/T2Equip.h b/src/T2DLL/T2Equip.h
index 7e4c914..1ed1c00 100644
--- a/src/T2DLL/T2Equip.h
+++ b/src/T2DLL/T2Equip.h
@@ -4,7 +4,7 @@
#include "T2HaveOutViewObject.h"
#include "T2RouteCEArray.h"
-class T2Equip : public T2HaveOutViewObject {
+class AFX_EXT_CLASS T2Equip : public T2HaveOutViewObject {
public:
T2Equip();
virtual ~T2Equip();
@@ -24,7 +24,7 @@ public:
mDrawMode = drawMode;
}
virtual void ClearDrawMode() {
- mDrawMode = 0;
+ mDrawMode = DrawMode0;
}
virtual void PlaySound(T2TowerDoc*, int, unsigned int, unsigned int) const;
@@ -38,8 +38,8 @@ public:
unsigned int GetAttribute() const { return mAttribute; }
int IsSetAttribute(unsigned int a) const { return (mAttribute & a) != 0; }
- int IsMover() const { return IsSetAttribute(2); }
- int IsNormalMenteCost() const { return IsSetAttribute(0x100); }
+ int IsMover() const { return IsSetAttribute(kToolAttrIsMover); }
+ int IsNormalMenteCost() const { return IsSetAttribute(kToolAttrNormalMenteCost); }
unsigned int GetEquipID() const { return mEquipID; }
void SetEquipDef(T2EquipDef* equipDef) {
SetToolDef(equipDef);
@@ -60,12 +60,6 @@ public:
int GetPatIndex() const { return mPatIndex; }
void SetPatIndex(int i) { mPatIndex = i; }
-protected:
- virtual void LoadSelf(T2Archive&, T2TowerDoc*);
- virtual void SaveSelf(T2Archive&);
-
- friend class T2EquipDef;
-
unsigned int mEquipID;
RECT mArea;
int mEquipType;
@@ -76,7 +70,11 @@ protected:
int m48;
int mBuildDay;
unsigned int mAttribute;
- T2RouteCEArray *mCEArray;
+ T2CrossEquipArray *mCEArray;
int m58;
int mInMoneyIndex;
+
+protected:
+ virtual void LoadSelf(T2Archive&, T2TowerDoc*);
+ virtual void SaveSelf(T2Archive&);
};