summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2MoverModuleList.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/T2DLL/T2MoverModuleList.h')
-rw-r--r--src/T2DLL/T2MoverModuleList.h39
1 files changed, 22 insertions, 17 deletions
diff --git a/src/T2DLL/T2MoverModuleList.h b/src/T2DLL/T2MoverModuleList.h
index de55200..515872a 100644
--- a/src/T2DLL/T2MoverModuleList.h
+++ b/src/T2DLL/T2MoverModuleList.h
@@ -1,29 +1,34 @@
#pragma once
#include "common.h"
+#include "LArray.h"
-class T2MoverModuleList {
+class AFX_EXT_CLASS T2MoverModuleList : public LArray {
public:
T2MoverModuleList();
virtual ~T2MoverModuleList();
- virtual int Init(T2MoverDef*, const RECT&);
- int InsertModuleAt(int, T2MoverModule*);
+ virtual BOOL Init(T2MoverDef* moverDef, const RECT& baseRect);
+ virtual void Destruct(T2TowerDoc* towerDoc);
+ virtual void RemoveModule(T2TowerDoc* towerDoc, T2MoverModule*);
+ virtual void StopAdded(T2TowerDoc* towerDoc, T2Mover*, int);
+ virtual void StopRemoved(T2TowerDoc* towerDoc, T2Mover*, int);
+ virtual int GetModuleCount() const;
+ virtual T2MoverModule* ConstructModule();
+ virtual void Read(T2Archive&, T2TowerDoc* towerDoc);
+ virtual void Write(T2Archive&);
+
+ BOOL InsertModuleAt(int where, T2MoverModule* module);
void AllClear();
- virtual void Destruct(T2TowerDoc*);
- virtual void RemoveModule(T2TowerDoc*, T2MoverModule*);
- virtual void Read(T2Archive&, T2TowerDoc*);
- virtual void Write(T2Archive&);
- virtual T2MoverModule* ConstructModule();
- virtual void StopAdded(T2TowerDoc*, T2Mover*, int);
- virtual void StopRemoved(T2TowerDoc*, T2Mover*, int);
unsigned int GetItemCount();
- static T2MoverModuleList* ReadMMList(T2Archive&, T2TowerDoc*);
+
+ void GetBaseRect(RECT& r) const { r = mBaseRect; }
+
+ static T2MoverModuleList* ReadMMList(T2Archive&, T2TowerDoc* towerDoc);
static void WriteMMList(T2MoverModuleList*, T2Archive&);
- virtual int GetModuleCount() const;
- void GetBaseRect(RECT&) const {}
protected:
- virtual unsigned long GetMMClassID() {}
-public:
- T2MoverModuleList(const T2MoverModuleList&) {}
- T2MoverModuleList& operator=(const T2MoverModuleList&) {}
+ virtual DWORD GetMMClassID() { return '_MML'; }
+
+ int mMaxModule;
+ int mModuleCount;
+ RECT mBaseRect;
};