summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2StairModule.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/T2StairModule.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2StairModule.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/T2DLL/T2StairModule.h b/src/T2DLL/T2StairModule.h
index ae2cac9..4d8c939 100644
--- a/src/T2DLL/T2StairModule.h
+++ b/src/T2DLL/T2StairModule.h
@@ -1,20 +1,27 @@
#pragma once
#include "common.h"
+#include "T2MoverModule.h"
-class T2StairModule {
+enum {
+ kStairDirection0 = 0,
+ kStairDirection1,
+ kStairDirection2
+};
+
+class AFX_EXT_CLASS T2StairModule : public T2MoverModule {
public:
T2StairModule();
virtual ~T2StairModule();
+ virtual void RemoveContents(T2TowerDoc*);
void MoverIDChanged(unsigned int);
- virtual void RemoveContents(T2TowerDoc*);
+
+ void SetModuleRect(const RECT& r) { mModuleRect = r; }
+ void GetModuleRect(RECT& r) { r = mModuleRect; }
+ int GetExtraSize() { return mModuleRect.bottom - mModuleRect.top - 2; }
+
protected:
virtual void LoadSelf(T2Archive&, T2TowerDoc*);
virtual void SaveSelf(T2Archive&);
-public:
- void SetModuleRect(const RECT&) {}
- void GetModuleRect(RECT&) {}
- int GetExtraSize() {}
- T2StairModule(const T2StairModule&) {}
- T2StairModule& operator=(const T2StairModule&) {}
+ CRect mModuleRect;
};