summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2StairModuleList.h
blob: ceaf8e0a00d9ee036e68ab957ae5360ce84e0a37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef T2DLL_T2STAIRMODULELIST_H
#define T2DLL_T2STAIRMODULELIST_H
#include "../common.h"
#include "T2MoverModuleList.h"

class AFX_CLASS_EXPORT T2StairModuleList : public T2MoverModuleList {
public:
	T2StairModuleList();
	virtual ~T2StairModuleList();
    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 DWORD GetMMClassID() { return 'StML'; }

private:
    int GetIndex(int position, ERequestUpDown upDown) const;
};
#endif