summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2EquipDef.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/T2EquipDef.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to 'src/T2DLL/T2EquipDef.h')
-rw-r--r--src/T2DLL/T2EquipDef.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/T2DLL/T2EquipDef.h b/src/T2DLL/T2EquipDef.h
index de66a3c..aed9a66 100644
--- a/src/T2DLL/T2EquipDef.h
+++ b/src/T2DLL/T2EquipDef.h
@@ -2,14 +2,14 @@
#include "common.h"
#include "T2ToolDef.h"
-class T2EquipDef : public T2ToolDef {
+class AFX_EXT_CLASS T2EquipDef : public T2ToolDef {
public:
T2EquipDef(DWORD type, T2PluginSpecifier& specifier, CResFile* resFile, T2WorldDef* worldDef, T2EquipPlugin* plugin);
virtual ~T2EquipDef();
- virtual int InitObject(T2Object*);
- virtual int IsMover() { return IsSetAttribute(2); }
- virtual void LoadExtraData(T2Archive&, T2TowerDoc*, T2HaveOutViewObject*);
- virtual void SaveExtraData(T2Archive&, T2HaveOutViewObject*);
+ virtual BOOL InitObject(T2Object*);
+ virtual BOOL IsMover() { return IsSetAttribute(kToolAttrIsMover); }
+ virtual void LoadExtraData(T2Archive& inArchive, T2TowerDoc*, T2HaveOutViewObject*);
+ virtual void SaveExtraData(T2Archive& inArchive, T2HaveOutViewObject*);
virtual AREACHECKCODE AreaCheck(T2TowerDoc*, RECT&, unsigned int, int);
virtual int ClickProc(T2TowerDoc*, RECT*, unsigned int&);
virtual int GetDestructPartProc(int, POINT, POINT, T2Equip*);
@@ -20,7 +20,7 @@ public:
virtual int FingerToolProc(T2TowerDoc*, T2Equip*, const POINT&, MOUSEEVENT);
virtual void BuildFinish(T2TowerDoc*, T2Equip*);
virtual unsigned long OptionProc(T2TowerDoc*, T2Equip*, void*);
- virtual void DrawPeople(T2TowerDoc*, T2Equip*);
+ virtual void DrawPeople(T2TowerDoc* inDoc, T2Equip* inEquip);
virtual int GetInfoDialogID(T2TowerDoc*, const T2Equip*) const;
virtual T2InfoDialog* ShowInfoDialog(T2TowerDoc*, T2Equip*);
virtual T2InfoDialog* ConstructInfoDialog(T2Equip*);
@@ -35,10 +35,10 @@ public:
int GetInMoney(int);
void GetWords(T2People*, CString&) const;
- int IsSetAttribute(unsigned int a) {
+ BOOL IsSetAttribute(unsigned int a) {
return (mAttribute & a) != 0;
}
- int IsAbleDragMaking() { return IsSetAttribute(0x80); }
+ BOOL IsAbleDragMaking() { return IsSetAttribute(kEquipAttrIsAbleDragMaking); }
int GetNumOfInMoney() const { return mNumOfInMoney; }
int GetEquipType() const { return mToolType; }
void CalcEquipRect(RECT& rect) const {
@@ -53,6 +53,8 @@ public:
protected:
T2WordDefArray* MakeWordDefArray();
+ friend class T2People;
+
int mCapacity;
int mStress;
T2BitImage *m124;