#pragma once #include "common.h" #include "T2EventItem.h" enum { kTerroristStatus0 = 0, kTerroristStatus1 = 1, kTerroristStatus2 = 2, kTerroristStatus3 = 3, }; class AFX_CLASS_EXPORT T2Terrorist : public T2EventItem { public: T2Terrorist(T2TowerEvent* inTowerEvent, CResFile* inResFile, int inSubID); virtual ~T2Terrorist(); virtual BOOL Start(T2TowerDoc* inDoc); virtual int Exec(T2TowerDoc* inDoc); virtual void StopEvent(T2TowerDoc* inDoc); virtual unsigned int DialogHook(T2EventDialog* inDialog, unsigned int inResult, T2TowerDoc* inDoc); virtual DWORD GetID() { return 'TrEv'; } BOOL IsBombHideRoom(unsigned int inTenantID) { return (mBombHideRoomID == inTenantID); } protected: virtual void SetupDialog(T2Dialog* inDialog); void SetupSound(); void DisposeSound(); int mRansomFee; int mDeadline; int mHigherRansomFee; unsigned int mBombHideRoomID; CPoint mBombHidePos; unsigned int mLastMinute; T2FireAttach *mAttach; LArray *mSearcherL; LArray *mSearcherR; };