summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2OutObj.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2OutObj.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2OutObj.h47
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;
};