summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2ToolDef.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/T2ToolDef.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to 'src/T2DLL/T2ToolDef.h')
-rw-r--r--src/T2DLL/T2ToolDef.h47
1 files changed, 40 insertions, 7 deletions
diff --git a/src/T2DLL/T2ToolDef.h b/src/T2DLL/T2ToolDef.h
index f5cb467..19caf2a 100644
--- a/src/T2DLL/T2ToolDef.h
+++ b/src/T2DLL/T2ToolDef.h
@@ -2,14 +2,42 @@
#include "common.h"
#include "T2TemplatePlugin.h"
-class T2ToolDef : public T2TemplatePlugin {
+enum {
+ kToolAttrIsMover = 2,
+ kEquipAttrIsAbleDragMaking = 0x80,
+ kToolAttrNormalMenteCost = 0x100,
+
+ kMoverAttrIsStair = 0x2000,
+ kMoverAttrIsElevator = 0x8000,
+ kMoverAttrRoutingTable0 = 0x1000000,
+ kMoverAttrRoutingTable1 = 0x2000000,
+ kMoverAttrRoutingTable2 = 0x4000000,
+ kMoverAttrRoutingTable3 = 0x8000000,
+
+ kTenantAttrIsFireproof = 0x1000,
+ kTenantAttrIsFloor = 0x2000,
+ kTenantAttrIsValiableLength = 0x4000,
+ kTenantAttrIsHome = 0x8000,
+ // 10000
+ kTenantAttrIsConcat = 0x20000,
+ kTenantAttr40000 = 0x40000,
+ // 80000
+ // 100000
+ // 200000
+ // 400000
+ kTenantAttrIsPeopleAnime = 0x800000,
+ kTenantAttrIsPeopleAnime2 = 0x1000000,
+ kTenantAttrIsNeedToilet = 0x2000000,
+};
+
+class AFX_EXT_CLASS T2ToolDef : public T2TemplatePlugin {
public:
T2ToolDef(DWORD type, T2PluginSpecifier& specifier, CResFile* resFile, T2WorldDef* worldDef, T2ToolPlugin* plugin);
virtual ~T2ToolDef();
virtual int GetSortKey();
- virtual int IsMover() { return 0; }
- virtual int IsTenant() { return 0; }
- virtual int IsOutObj() { return 0; }
+ virtual BOOL IsMover() { return false; }
+ virtual BOOL IsTenant() { return false; }
+ virtual BOOL IsOutObj() { return false; }
virtual int CalcPayment(T2TowerDoc*, RECT&, unsigned int id) {
return mPrice[id];
}
@@ -49,7 +77,7 @@ public:
unsigned int GetAttribute() const { return mAttribute; }
T2BitImage* GetToolIcon() const { return mToolIcon; }
void GetToolName(CString& outStr, int id) const {
- outStr = *mNames[id];
+ outStr = *mName[id];
}
void GetCategoryName(CString outStr) const {
// BUG: outStr should be &
@@ -66,6 +94,11 @@ public:
CFilePluginList* GetSubPluginList() { return mSubPluginList; }
protected:
+ friend class T2Mover;
+ friend class T2Settlement;
+ friend class T2TemplatePluginList;
+ friend class T2ToolHelpWnd;
+
int mToolType;
int mWidth;
int mHeight;
@@ -91,6 +124,6 @@ protected:
DWORD mSubPluginType;
CFilePluginList *mSubPluginList;
int mSettlement;
- void *m114; // TODO what am i?
- int m118;
+ T2DateTime *mToolQuietUntil;
+ T2DateTime *mCategoryQuietUntil;
};