Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
EventPoll Class Referenceabstract
Inheritance diagram for EventPoll:
[legend]
Collaboration diagram for EventPoll:
[legend]

Public Member Functions

 EventPoll (const std::function< void()> &callback)
 
virtual bool isDead ()
 
virtual void update (float deltaSec)
 
bool isActive () const
 
void setActive (bool active)
 
Handle< EventPoll > & handle ()
 
- Public Member Functions inherited from Scriptable
int scriptKey () const
 
void setScriptKey (int key)
 
bool isScriptLocal () const
 
void setScriptLocal (bool local)
 

Protected Member Functions

void doCallback ()
 
virtual bool poll ()=0
 
virtual void specialOnCallback ()
 

Protected Attributes

std::function< void()> m_callback
 
Handle< EventPollm_handle
 
bool m_active
 
- Protected Attributes inherited from Scriptable
int m_key
 
bool m_local
 

Additional Inherited Members

- Static Public Attributes inherited from Scriptable
static const int INVALID_KEY = -1
 

The documentation for this class was generated from the following files: