summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2EventItem.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
commit37e364b2c6cc7487a1c888d256a73e5337bb7189 (patch)
treeeaf6e857382eef16c2dd940eb4125536fbe068bd /src/T2DLL/T2EventItem.h
downloadt2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.tar.gz
t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.zip
initial commit
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2EventItem.h46
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&) {}
+};