📄 event.h
字号:
//////////////////////////////////////////////////////////////////////////////// Filename : Event.h// Written by : Reiot// Description : //////////////////////////////////////////////////////////////////////////////#ifndef __EVENT_H__#define __EVENT_H__#include "Types.h"#include "Exception.h"#include "Timeval.h"//////////////////////////////////////////////////////////////////////////////// class Event;// 敲饭捞绢 努贰胶俊 楷包登绢 乐栏哥,// 老沥 矫埃 饶俊 漂沥 咀记阑 秒窍档废 秦霖促.//////////////////////////////////////////////////////////////////////////////class GamePlayer;class Event {public: enum EventClass { EVENT_CLASS_RESURRECT, // 农府贸啊 磷菌阑 版快, 何劝矫虐扁.. EVENT_CLASS_MORPH, // 浇饭捞绢 -> 轨颇捞绢函脚 EVENT_CLASS_RESTORE, // 轨颇捞绢 -> 浇饭捞绢 函脚 EVENT_SAVE, // 林扁利栏肺 农府贸 沥焊甫 历厘窍扁 EVENT_CLASS_REGENERATION, // 轨颇捞绢甫 林扁利栏肺 雀汗秦林扁 EVENT_CLASS_RELOAD_INFO, // DB俊辑 info甫 reload茄促. EVENT_CLASS_TRANSPORT, // Zone捞悼 茄促. EVENT_CLASS_KICK, // 倔付 饶俊 kick茄促. EVENT_CLASS_SYSTEM_MESSAGE, // Incoming俊辑 罐篮 System皋技瘤甫 爱绊 乐促啊 谎妨霖促. EVENT_CLASS_REFRESH_HOLY_LAND_PLAYER, // Holy Land Race Bonus 函拳俊 蝶扼 Holy Land Player Stat 阑 盎脚 EVENT_CLASS_SHUTDOWN, // 荤侩磊甸阑 根顶 沥府窍绊 妓促款 EVENT_CLASS_HEAD_COUNT, // 30盒俊 茄锅究 赣府 谍 肮荐 技厘 EVENT_CLASS_CBILLING, // 吝惫 呼傅. 林扁利栏肺 minus point/minute 菩哦阑 焊辰促. EVENT_CLASS_MAX };public: Event(GamePlayer* pGamePlayer) throw(Error); virtual ~Event() throw(); public: virtual EventClass getEventClass() const throw() = 0; // get event life-cycle // 扁夯利栏肺 葛电 捞亥飘甸篮 1雀侩捞促. virtual bool isTemporary() const throw() { return true; } virtual bool isPermanent() const throw() { return false; } virtual void activate() throw(Error) = 0; Timeval getDeadline() const throw() { return m_Deadline; } void setDeadline(Turn_t delay) throw(); virtual string toString() const throw() = 0;protected: GamePlayer* m_pGamePlayer; // 霸烙 敲饭捞绢 按眉 Timeval m_Deadline; // 角青 矫埃 };#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -