#pragma once #include "common.h" #include "LArray.h" #include "T2EventItem.h" class AFX_CLASS_EXPORT T2XEvent : public T2EventItem { public: T2XEvent(T2TowerEvent* inTowerEvent, CResFile* inResFile, DWORD inID, int inSubID); T2XEvent(T2XEvent* inXEvent, int inSubID); virtual ~T2XEvent(); virtual DWORD GetID(); virtual void Init(CResFile* inResFile); virtual BOOL IsBeginTime(unsigned int inTime); virtual BOOL IsBeginDay(int inDay); virtual BOOL Start(T2TowerDoc* inDoc); virtual int Exec(T2TowerDoc* inDoc); virtual void StopEvent(T2TowerDoc* inDoc); virtual void Write(T2Archive& inArchive); virtual void Read(T2Archive& inArchive); virtual BOOL IsXEvent() { return true; } virtual unsigned int DialogHook(T2EventDialog* inDialog, unsigned int inResult, T2TowerDoc* inDoc); virtual BOOL IsBeginTime(T2TowerDoc* inDoc, unsigned int inTime); virtual BOOL IsBeginDay(T2TowerDoc* inDoc, int inDay); unsigned int GetRefCon(); void SetRefCon(unsigned int inRefCon); void SetDialogItems(int inItem1, int inItem2, int* const inItemArray, int inItem4, CString& inText); protected: DWORD mID; unsigned int mRefCon; int mDlgItem1; int mDlgItem2; LArray mDlgItemArray; int mDlgItem4; CString mDlgText; };