summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2StairModuleList.h
blob: 2edb38d6a8bc4111e48fb518c6ad8296ee590cf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
#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;
};