ObjectEvent.h
上传用户:tt_chan
上传日期:2009-12-03
资源大小:4523k
文件大小:1k
- #define ET_DIGOUTZOMBI 1 //粱厚啊 顶颇绊 唱柯 如利
- #define ET_MINE 2 //堡籍捞 概厘登绢 乐澜
- #define ET_PILESTONES 3 //倒公歹扁
- #define ET_HOLYCURTAIN 4 //搬拌
- #define ET_FIRE 5
- #define ET_SCULPEICE 6 //林付空狼 倒柄柳 炼阿
- class CEvent
- {
- public:
- BOOL m_fVisible;
- BOOL m_fActive;
- int m_nCheck;
- CMirMap* m_pMap;
- int m_nX;
- int m_nY;
- int m_nEventType;
- int m_nEventParam;
- DWORD m_dwOpenStartTime;
- DWORD m_dwContinueTime;
- DWORD m_dwCloseTime;
- BOOL m_fClosed;
- int m_nDamage;
- CCharObject* m_pOwnObject;
- DWORD m_dwRunStart;
- DWORD m_dwRunTick;
- void Create(CMirMap* pMap, int nX, int nY, DWORD dwETime, int nType, BOOL fVisible);
- void Close();
- virtual void Run();
- };
- class CFireBurnEvent : public CEvent
- {
- protected:
- DWORD m_dwTickTime;
- public:
- CFireBurnEvent(int nX, int nY, DWORD dwETime, CCharObject* pCharObject, int nDamage)
- {
- Create(nX, nY, dwETime, pCharObject, nDamage);
- }
- void Create(int nX, int nY, DWORD dwETime, CCharObject* pCharObject, int nDamage);
- virtual void Run();
- };
- class CHolyCurtainEvent : public CEvent
- {
- public:
- CHolyCurtainEvent(int nX, int nY, DWORD dwETime, CCharObject* pCharObject)
- {
- CEvent::Create(pCharObject->m_pMap, nX, nY, dwETime, ET_HOLYCURTAIN, TRUE);
- }
- };