From c0c336500955a23e344651e5412c9d9d441ef4ee Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 28 Jun 2023 22:22:32 +0100 Subject: first pass of T2DLL --- src/T2DLL/T2OutObj.h | 47 ++++++++++++++++++++++++++++++++--------------- 1 file changed, 32 insertions(+), 15 deletions(-) (limited to 'src/T2DLL/T2OutObj.h') 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; }; -- cgit v1.2.3