From 5c6a48b2ff362a70416a6a00fda7d06e0f276f2d Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sat, 1 Jul 2023 02:43:29 +0100 Subject: i am in hell --- src/T2DLL/T2Mover.h | 64 ++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 51 insertions(+), 13 deletions(-) (limited to 'src/T2DLL/T2Mover.h') 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; +} -- cgit v1.2.3