summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2OuterObjDef.h
blob: e8c132845fecf8355fb3ce0ecd06e739cde3046a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#include "common.h"
#include "T2ToolDef.h"

class AFX_CLASS_EXPORT T2OuterObjDef : public T2ToolDef {
public:
	T2OuterObjDef(DWORD, T2PluginSpecifier&, CResFile*, T2WorldDef*, T2ToolPlugin*);
	virtual ~T2OuterObjDef();
    virtual BOOL IsOutObj() { return true; }
	virtual CURSORTYPE QueryCursor(T2TowerDoc*, POINT, CString&, RECT&, POINT&, int, unsigned int, int);
	virtual void DrawProc(T2HaveOutViewObject*, const RECT&, T2TowerDoc*) const;
    virtual PROCCODE DoDestructProc(T2TowerDoc*, T2HaveOutViewObject*, POINT, RECT&);
    virtual void SetTenantDef(T2TenantDef* def) { mTenantDef = def; }
	virtual AREACHECKCODE AreaCheck(T2TowerDoc*, RECT&, unsigned int, int);
	virtual T2InfoDialog* ShowInfoDialog(T2TowerDoc*, T2OutObj*);
	virtual int GetInfoDialogID(T2TowerDoc*, const T2OutObj*) const;
	virtual T2InfoDialog* ConstructInfoDialog(T2OutObj*);

protected:
    T2TenantDef *mTenantDef;
};