diff options
Diffstat (limited to 'src/T2DLL/T2ElvModuleList.h')
-rw-r--r-- | src/T2DLL/T2ElvModuleList.h | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/src/T2DLL/T2ElvModuleList.h b/src/T2DLL/T2ElvModuleList.h index 894af22..122b335 100644 --- a/src/T2DLL/T2ElvModuleList.h +++ b/src/T2DLL/T2ElvModuleList.h @@ -1,28 +1,27 @@ #pragma once #include "common.h" +#include "T2MoverModuleList.h" -class T2ElvModuleList { +class AFX_EXT_CLASS T2ElvModuleList : public T2MoverModuleList { public: T2ElvModuleList(); virtual ~T2ElvModuleList(); - virtual int Init(T2MoverDef*, const RECT&); - void AddModule(T2TowerDoc*, int, int); + virtual BOOL Init(T2MoverDef* moverDef, const RECT& baseRect); virtual void Destruct(T2TowerDoc*); virtual T2MoverModule* ConstructModule(); -protected: - void CalcBaseQDRect(RECT&); -public: - int DestructModule(T2TowerDoc*, T2Mover*, POINT); - int IsHomePosition(int); - void MoverExpanded(T2Mover*, EEquipPos, int); - virtual void StopAdded(T2TowerDoc*, T2Mover*, int); - virtual void StopRemoved(T2TowerDoc*, T2Mover*, int); - virtual void Read(T2Archive&, T2TowerDoc*); - virtual void Write(T2Archive&); + virtual void StopAdded(T2TowerDoc*, T2Mover*, int); + virtual void StopRemoved(T2TowerDoc*, T2Mover*, int); + virtual void Read(T2Archive&, T2TowerDoc*); + virtual void Write(T2Archive&); + + void AddModule(T2TowerDoc* towerDoc, int count, int position); + int DestructModule(T2TowerDoc* towerDoc, T2Mover* mover, POINT pt); + BOOL IsHomePosition(int position); + void MoverExpanded(T2Mover*, EEquipPos pos, int count); protected: - virtual unsigned long GetMMClassID() {} -public: - T2ElvModuleList(const T2ElvModuleList&) {} - T2ElvModuleList& operator=(const T2ElvModuleList&) {} + virtual DWORD GetMMClassID() { return 'ElML'; } + void CalcBaseQDRect(RECT&); + + RECT mModuleInset; }; |