summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2StairModule.h
blob: e4be26c6dd12219db071e07dca8e84ee2f18d131 (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
25
26
27
28
29
#ifndef T2DLL_T2STAIRMODULE_H
#define T2DLL_T2STAIRMODULE_H
#include "../common.h"
#include "T2MoverModule.h"

enum {
    kStairDirection0 = 0,
    kStairDirection1, // up?
    kStairDirection2 // down?
};

class AFX_CLASS_EXPORT T2StairModule : public T2MoverModule {
public:
	T2StairModule();
	virtual ~T2StairModule();
    virtual void RemoveContents(T2TowerDoc*);
	void MoverIDChanged(unsigned int);

    void SetModuleRect(const RECT& r) { mModuleRect = r; }
    void GetModuleRect(RECT& r) { r = mModuleRect; }
    int GetExtraSize() { return mModuleRect.bottom - mModuleRect.top - 2; }

protected:
	virtual void LoadSelf(T2Archive&, T2TowerDoc*);
	virtual void SaveSelf(T2Archive&);

    CRect mModuleRect;
};
#endif