Public Member Functions | ||||
const string & | GetCode () const | |||
const string & | GetFileName () const | |||
void | SetScript (const string &sScript) | |||
bool | Equals (const CEventHandler &e) const | |||
bool | Equals (const string &sID) const | |||
bool | IsMouseEvent () const | |||
bool | IsKeyEvent () const | |||
bool | IsEditorEvent () const | |||
bool | IsSystemEvent () const | |||
bool | IsNetworkEvent () const | |||
bool | IsEvent (int nEventType) const | |||
CEventHandler (DWORD nType, const string &sID, const string &sScript) | ||||
CEventHandler (const string &sID, const string &sScript) | ||||
| ||||
Classes | ||||
struct | EditorEvent | |||
world editor events, such as scene selection, etc. More... | ||||
struct | Event | |||
a general event More... | ||||
struct | KeyEvent | |||
simple key events struct More... | ||||
struct | MouseEvent | |||
simple mouse event struct More... | ||||
struct | NetworkEvent | |||
struct | SystemEvent | |||
system events struct More... |
ParaEngine::CEventHandler::CEventHandler | ( | const string & | sID, | |
const string & | sScript | |||
) |
sID,: | if sID begins with "_m" it is treated as a mouse click event, except that if sID begins with "_mm" it is treated as a mouse move event. |
if sID begins with "_md" it is treated as a mouse down event. if sID begins with "_mu" it is treated as a mouse up event. if sID begins with "_k" it is treated as a key down event. if sID begins with "_ku" it is treated as a key up event. if sID begins with "_n" it is treated as a networking event. if sID begins with "_s" it is treated as a system event. if sID begins with "_e" it is treated as a editor event.