My Project
Public Member Functions | List of all members
ParaEngine::IEvent Struct Reference

the event interface More...

#include <IEvent.h>

Inheritance diagram for ParaEngine::IEvent:
ParaEngine::AccelerometerEvent ParaEngine::EditorEvent ParaEngine::Event ParaEngine::KeyEvent ParaEngine::MouseEvent ParaEngine::NetworkEvent ParaEngine::SystemEvent ParaEngine::TouchEvent

Public Member Functions

virtual int GetEventType () const
 get event type
 
virtual string ToScriptCode () const
 build script code and return. More...
 
virtual bool IsAsyncMode () const
 return true, if firing event does not immediately invoke the handler. More...
 
virtual int GetEventID () const
 get event id
 

Detailed Description

the event interface

Member Function Documentation

§ IsAsyncMode()

virtual bool ParaEngine::IEvent::IsAsyncMode ( ) const
inlinevirtual

return true, if firing event does not immediately invoke the handler.

§ ToScriptCode()

virtual string ParaEngine::IEvent::ToScriptCode ( ) const
inlinevirtual

build script code and return.

it does not cache the script code. Use GetScriptCode() instead for performance reason.

Reimplemented in ParaEngine::AccelerometerEvent, ParaEngine::TouchEvent, ParaEngine::NetworkEvent, ParaEngine::EditorEvent, ParaEngine::SystemEvent, ParaEngine::KeyEvent, ParaEngine::MouseEvent, and ParaEngine::Event.


The documentation for this struct was generated from the following file: