Tool Class Referenceabstract
#include <Tool.h>
Inheritance diagram for Tool:
![](../class_tool.png)
# Public Member Functions | |
void | constructor () |
Class' constructor. | |
void | setToolState (ToolState toolState) |
virtual void | processUserInput (uint16 pressedKey)=0 |
virtual void | dimmGame () |
Dimm down the game. | |
virtual void | lightUpGame () |
Light up the game. | |
virtual void | update ()=0 |
Update the tool's state. | |
virtual void | show ()=0 |
Show the tool. | |
virtual void | hide ()=0 |
Hide the tool. |
# Protected Attributes | |
ToolState | toolState |
# Additional Inherited Members | |
![]() | |
void | constructor () |
Class' constructor. | |
void | destructor () |
Class' destructor. | |
void | addEventListener (ListenerObject listener, uint16 eventCode) |
void | removeEventListener (ListenerObject listener, uint16 eventCode) |
void | removeEventListeners (uint16 eventCode) |
void | removeAllEventListeners () |
Remove all listener objects. | |
bool | hasActiveEventListeners () |
void | fireEvent (uint16 eventCode) |
void | sendMessageTo (ListenerObject receiver, uint32 message, uint32 delay, uint32 randomDelay) |
void | sendMessageToSelf (uint32 message, uint32 delay, uint32 randomDelay) |
void | discardAllMessages () |
Discard all messages, both to be sent and to be received. | |
void | discardMessages (uint32 message) |
virtual bool | onEvent (ListenerObject eventFirer, uint16 eventCode) |
virtual bool | handleMessage (Telegram telegram) |
![]() | |
VirtualList | events |
List of registered events. | |
int8 | eventFirings |
Counter that keeps track of the number of fired events to prevent race conditions in nested firings. |
# Detailed Description
# Member Function Documentation
# constructor()
# dimmGame()
# hide()
|
pure virtual |
Hide the tool.
Implemented in AnimationInspector, Debug, SoundTest, and StageEditor.
# lightUpGame()
# processUserInput()
|
pure virtual |
Process the provided user pressed key.
- Parameters
-
pressedKey User pressed key
Implemented in AnimationInspector, Debug, SoundTest, and StageEditor.
# setToolState()
void Tool::setToolState | ( | ToolState | toolState | ) |
# show()
|
pure virtual |
Show the tool.
Implemented in AnimationInspector, Debug, SoundTest, and StageEditor.
# update()
|
pure virtual |
Update the tool's state.
Implemented in AnimationInspector, Debug, SoundTest, and StageEditor.
# Member Data Documentation
# toolState
The documentation for this class was generated from the following files: