diff options
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2EventItem.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/T2DLL/T2EventItem.h b/src/T2DLL/T2EventItem.h new file mode 100644 index 0000000..e166c22 --- /dev/null +++ b/src/T2DLL/T2EventItem.h @@ -0,0 +1,46 @@ +#pragma once +#include "common.h" + +class T2EventItem { +public: + T2EventItem(T2TowerEvent*, CResFile*, int); + T2EventItem(T2TowerEvent*, int, int, int, int, int, int); + T2EventItem(T2EventItem*, int); + virtual ~T2EventItem(); + virtual void Init(T2TowerDoc*); + virtual int Start(T2TowerDoc*); + virtual int ReStart(T2TowerDoc*); + virtual void StopEvent(T2TowerDoc*); + T2WorldDef* GetWorldDef(); + T2TowerDoc* GetTowerDoc() const; + T2TowerEvent* GetTowerEvent(); + int GetLevelBit(); + int IsExclusive(); + int GetCycleDay(); + int GetBeginTime(); + void SetBeginTime(int); + int GetEndTime(); + virtual int IsBeginTime(unsigned int); + virtual int IsBeginDay(int); + int GetStatus(); + void SetStatus(int); + T2EventItem* GetOriginalDef(); +protected: + virtual unsigned int DoDialog(T2TowerDoc*, int, int, int, const char*); + virtual void DoAlert(T2TowerDoc*, CString&, int); +public: + virtual void Write(T2Archive&); + virtual void Read(T2Archive&); + + virtual unsigned long GetID() {} + int GetSubID() {} + virtual void ViewModeChanged(T2TowerDoc*, VIEWMODE) {} + virtual unsigned long OptionProc(unsigned long, void*) {} + virtual int IsXEvent() {} +protected: + virtual unsigned int DialogHook(T2EventDialog*, unsigned int, T2TowerDoc*) {} + virtual void SetupDialog(T2Dialog*) {} +public: + T2EventItem(const T2EventItem&) {} + T2EventItem& operator=(const T2EventItem&) {} +}; |