From c0c336500955a23e344651e5412c9d9d441ef4ee Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 28 Jun 2023 22:22:32 +0100 Subject: first pass of T2DLL --- src/T2DLL/T2StairModuleList.h | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'src/T2DLL/T2StairModuleList.h') 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; }; -- cgit v1.2.3