diff options
Diffstat (limited to 'src/T2DLL/T2OutObj.h')
-rw-r--r-- | src/T2DLL/T2OutObj.h | 47 |
1 files changed, 32 insertions, 15 deletions
diff --git a/src/T2DLL/T2OutObj.h b/src/T2DLL/T2OutObj.h index 615895d..a3cb599 100644 --- a/src/T2DLL/T2OutObj.h +++ b/src/T2DLL/T2OutObj.h @@ -1,24 +1,41 @@ #pragma once #include "common.h" +#include "T2HaveOutViewObject.h" -class T2OutObj { +enum { + kOutObjStatus0 = 0, + kOutObjStatus1 +}; + +class AFX_EXT_CLASS T2OutObj : public T2HaveOutViewObject { public: T2OutObj(); virtual ~T2OutObj(); + virtual unsigned int Idle(T2TowerDoc*); + virtual void LoadSelf(T2Archive&, T2TowerDoc*); + virtual void SaveSelf(T2Archive&); + virtual T2InfoDialog* ShowInfoDialog(T2TowerDoc*); + virtual void DrawHitMask(T2TowerDoc*); + + virtual int InitOutObj(T2OuterObjDef* def, const RECT& outObjArea, unsigned int valiation); + virtual void StartBuild(T2TowerDoc*); + virtual PROCCODE Destruct(T2TowerDoc*, RECT&); + virtual PROCCODE DoDestruct(T2TowerDoc*, int, CPoint, CPoint, CRect&); + virtual void GetOutObjArea(RECT&) const; virtual void Draw(T2TowerDoc*, const CRect&); - virtual PROCCODE DoDestruct(T2TowerDoc*, int, CPoint, CPoint, CRect&); - virtual PROCCODE Destruct(T2TowerDoc*, RECT&); - virtual void GetOutObjArea(RECT&) const; - virtual unsigned int Idle(T2TowerDoc*); - virtual int InitOutObj(T2OuterObjDef*, const RECT&, unsigned int); - virtual void LoadSelf(T2Archive&, T2TowerDoc*); - virtual void SaveSelf(T2Archive&); - virtual void StartBuild(T2TowerDoc*); - virtual T2InfoDialog* ShowInfoDialog(T2TowerDoc*); - virtual void DrawHitMask(T2TowerDoc*); - T2ToolDef* GetToolDef() const {} - void SetToolDef(T2ToolDef*) {} - T2OutObj(const T2OutObj&) {} - T2OutObj& operator=(const T2OutObj&) {} + T2ToolDef* GetToolDef() const { return mToolDef; } + void SetToolDef(T2ToolDef* def) { mToolDef = def; } + +protected: + friend class T2OuterObjDef; + friend class T2OutObjArray; + friend class T2OutObjInfoDialog; + + unsigned int mID; + RECT mOutObjArea; + int mToolType; + int _38; + RECT _3C; + int _4C; }; |