summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2Mover.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-07-01 02:43:29 +0100
committerAsh Wolf <ninji@wuffs.org>2023-07-01 02:43:29 +0100
commit5c6a48b2ff362a70416a6a00fda7d06e0f276f2d (patch)
tree62cf542c68d91aa6f7a4e3bfa9eddca4ab352970 /src/T2DLL/T2Mover.h
parentc0c336500955a23e344651e5412c9d9d441ef4ee (diff)
downloadt2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.tar.gz
t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.zip
i am in hell
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2Mover.h64
1 files changed, 51 insertions, 13 deletions
diff --git a/src/T2DLL/T2Mover.h b/src/T2DLL/T2Mover.h
index f4979dd..9a303d9 100644
--- a/src/T2DLL/T2Mover.h
+++ b/src/T2DLL/T2Mover.h
@@ -7,16 +7,20 @@ enum {
kMoverStatus9 = 9
};
-class AFX_EXT_CLASS T2Mover : public T2Equip {
+class AFX_CLASS_EXPORT T2Mover : public T2Equip {
public:
T2Mover();
virtual ~T2Mover();
+
+ void SetShowShaft(BOOL v) { mShowShaft = v; }
+ void StartBuild() { mStatus = kMoverStatus0; }
+ virtual BOOL IsBuildFinish() { return mStatus >= kMoverStatus9; }
+
virtual void SetUsed(BOOL);
virtual BOOL Enter(CLink*) { return false; }
virtual BOOL Leave(CLink*) { return false; }
virtual unsigned int Idle(T2TowerDoc*);
virtual void Draw(T2TowerDoc*, const RECT&);
- virtual BOOL IsBuildFinish() { return mStatus >= kMoverStatus9; }
virtual PROCCODE DoDestruct(T2TowerDoc*, POINT, RECT&);
virtual BOOL Destruct(T2TowerDoc*, CRect&);
virtual T2InfoDialog* ShowInfoDialog(T2TowerDoc*, CPoint);
@@ -58,17 +62,15 @@ public:
void ShowShaft();
void HideShaft();
- void SetShowShaft(BOOL v) { mShowShaft = v; }
- void StartBuild() { mStatus = kMoverStatus0; }
- BOOL IsStair() const { return IsSetAttribute(kMoverAttrIsStair); }
- BOOL IsElevator() const { return IsSetAttribute(kMoverAttrIsElevator); }
- BOOL IsCheckRequest() const { return mCheckRequest; }
- void SetCheckRequest(BOOL v) { mCheckRequest = v; }
- int GetLength() const { return mLength; }
- int GetWaitCount() const { return mWaitCount; }
- T2RequestIDArray* GetReqIDArray() const { return mReqIDArray; }
- T2MoverModuleList* GetModuleList() const { return mModuleList; }
- BOOL IsShaftVisible() const { return mShowShaft; }
+ BOOL IsStair() const;
+ BOOL IsElevator() const;
+ BOOL IsCheckRequest() const;
+ void SetCheckRequest(BOOL v);
+ int GetLength() const;
+ int GetWaitCount() const;
+ T2RequestIDArray* GetReqIDArray() const;
+ T2MoverModuleList* GetModuleList() const;
+ BOOL IsShaftVisible() const;
protected:
virtual void LoadSelf(T2Archive&, T2TowerDoc*);
@@ -84,3 +86,39 @@ protected:
BOOL mShowShaft;
BOOL mCheckRequest;
};
+
+inline BOOL T2Mover::IsStair() const {
+ return IsSetAttribute(kMoverAttrIsStair);
+}
+
+inline BOOL T2Mover::IsElevator() const {
+ return IsSetAttribute(kMoverAttrIsElevator);
+}
+
+inline BOOL T2Mover::IsCheckRequest() const {
+ return mCheckRequest;
+}
+
+inline void T2Mover::SetCheckRequest(BOOL v) {
+ mCheckRequest = v;
+}
+
+inline int T2Mover::GetLength() const {
+ return mLength;
+}
+
+inline int T2Mover::GetWaitCount() const {
+ return mWaitCount;
+}
+
+inline T2RequestIDArray* T2Mover::GetReqIDArray() const {
+ return mReqIDArray;
+}
+
+inline T2MoverModuleList* T2Mover::GetModuleList() const {
+ return mModuleList;
+}
+
+inline BOOL T2Mover::IsShaftVisible() const {
+ return mShowShaft;
+}