summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2ToolDef.h
diff options
context:
space:
mode:
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;
};