#ifndef T2DLL_T2VISITVIP_H #define T2DLL_T2VISITVIP_H #include "../common.h" #include "T2EventItem.h" enum { kVisitVIPStatus0 = 0, kVisitVIPStatus1 = 1, kVisitVIPStatus2 = 2, kVisitVIPStatus3 = 3, kVisitVIPStatus4 = 4, kVisitVIPStatus5 = 5, kVisitVIPStatus6 = 6, }; class AFX_CLASS_EXPORT T2VisitVIP : public T2EventItem { public: 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 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); 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; }; #endif