diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
commit | c0c336500955a23e344651e5412c9d9d441ef4ee (patch) | |
tree | 790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2VisitVIP.h | |
parent | 37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff) | |
download | t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip |
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2VisitVIP.h | 56 |
1 files changed, 41 insertions, 15 deletions
diff --git a/src/T2DLL/T2VisitVIP.h b/src/T2DLL/T2VisitVIP.h index 0d97c07..b2510b5 100644 --- a/src/T2DLL/T2VisitVIP.h +++ b/src/T2DLL/T2VisitVIP.h @@ -1,22 +1,48 @@ #pragma once #include "common.h" +#include "T2EventItem.h" -class T2VisitVIP { +enum { + kVisitVIPStatus0 = 0, + kVisitVIPStatus1 = 1, + kVisitVIPStatus2 = 2, + kVisitVIPStatus3 = 3, + kVisitVIPStatus4 = 4, + kVisitVIPStatus5 = 5, + kVisitVIPStatus6 = 6, +}; + +class AFX_EXT_CLASS T2VisitVIP : public T2EventItem { public: - T2VisitVIP(T2TowerEvent*, CResFile*, int); - T2VisitVIP(T2TowerEvent*, int, int, int, int, int, int); + T2VisitVIP(T2TowerEvent* inTowerEvent, CResFile* inResFile, int inSubID); + T2VisitVIP(T2TowerEvent* inTowerEvent, int inSubID, int inLevelBit, BOOL inExclusive, int inCycleDay, int inBeginTime, int inEndTime); virtual ~T2VisitVIP(); - virtual int IsBeginDay(int); - virtual int IsBeginTime(unsigned int); - virtual int Start(T2TowerDoc*); - virtual int Exec(T2TowerDoc*); - void Init(CResFile*); - int DoReception(T2TowerDoc*); - int GetDestinationTennant(unsigned long, T2Tenant*&, CFilePlugin*&, T2PluginSpecifier*&); - virtual void Write(T2Archive&); - virtual void Read(T2Archive&); + virtual DWORD GetID() { return 'ViEv'; } + virtual BOOL Start(T2TowerDoc* inDoc); + virtual int Exec(T2TowerDoc* inDoc); + virtual BOOL IsBeginTime(unsigned int inTime); + virtual BOOL IsBeginDay(int inDay); + virtual void Write(T2Archive& inArchive); + virtual void Read(T2Archive& inArchive); + + void Init(CResFile* inResFile); + BOOL DoReception(T2TowerDoc* inDoc); + BOOL GetDestinationTennant(DWORD inPluginID, T2Tenant*& outTenant, CFilePlugin*& outPlugin, T2PluginSpecifier*& outSpecifier); - virtual unsigned long GetID() {} - T2VisitVIP(const T2VisitVIP&) {} - T2VisitVIP& operator=(const T2VisitVIP&) {} +protected: + int mGrade; + DWORD mTenantPluginID; + int mArrivalTime; + int mArriveAnimResID; + int mSatisfiedSoundID; + int mDissatisfiedSoundID; + int mSilhouetteType; + CString mSatisfiedText; + CString mDissatisfiedText; + unsigned int mVisitFlag; + unsigned int mPeopleID; // who the VIP is + unsigned int mTenantID; + int mDaysBeforeNextVisit; + int mBeginDay; + BOOL mCheckedIn; }; |