summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2StairModuleList.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/T2StairModuleList.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2StairModuleList.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/T2DLL/T2StairModuleList.h b/src/T2DLL/T2StairModuleList.h
index b93b9a5..dca1acc 100644
--- a/src/T2DLL/T2StairModuleList.h
+++ b/src/T2DLL/T2StairModuleList.h
@@ -1,23 +1,22 @@
#pragma once
#include "common.h"
+#include "T2MoverModuleList.h"
-class T2StairModuleList {
+class AFX_EXT_CLASS T2StairModuleList : public T2MoverModuleList {
public:
T2StairModuleList();
virtual ~T2StairModuleList();
- void AddModule(int, const RECT&);
- void AddModule(T2TowerDoc*, const RECT&, int);
-private:
- int GetIndex(int, ERequestUpDown) const;
-public:
- void Union(T2MoverModuleList*, unsigned int);
- virtual T2MoverModule* ConstructModule();
- virtual void Read(T2Archive&, T2TowerDoc*);
- virtual int GetModuleCount() const;
+ virtual T2MoverModule* ConstructModule();
+ virtual void Read(T2Archive&, T2TowerDoc*);
+ virtual int GetModuleCount() const;
+
+ void AddModule(int position, const RECT& rect);
+ void AddModule(T2TowerDoc* towerDoc, const RECT& rect, BOOL insertAtEnd);
+ void Union(T2MoverModuleList* list, unsigned int moverID);
protected:
- virtual unsigned long GetMMClassID() {}
-public:
- T2StairModuleList(const T2StairModuleList&) {}
- T2StairModuleList& operator=(const T2StairModuleList&) {}
+ virtual DWORD GetMMClassID() { return 'StML'; }
+
+private:
+ int GetIndex(int position, ERequestUpDown upDown) const;
};