#include <DemoActionEngine.h>
Inheritance diagram for DemoActionEngine
Public Methods | |
DemoActionEngine () | |
~DemoActionEngine () | |
void | restart () |
Reset the ActionEngine. More... | |
void | nextPeriod () |
Progress to the next period. More... | |
WinLockInitType | getWinLockMode () const |
This method is invoked before the draw() method in order to find out, whether the background of the drawing canvas shall be left untouched since the last draw, erased to white, or you don't care. More... | |
void | draw (RectangleType *bounds) const |
Draw the visual appearance of the action onto the canvas. More... | |
void | receiveEvent (const EventType* evtPtr) |
Receive an input event. More... | |
void* | getRestoreStateBuffer () |
Get the restore buffer. More... | |
void | releaseRestoreStateBuffer (void* ) const |
Release the restore buffer. More... | |
void* | getSaveStateBuffer () |
Get the save buffer. More... | |
void | releaseSaveStateBuffer (void* ) const |
Release the save buffer. More... | |
Int16 | getStateBufferSize () const |
Return the size of the buffer which contains the state. More... | |
void | restoreState (void *stateBuffer) |
Set the current state from the restore buffer. More... |
Definition at line 28 of file DemoActionEngine.h.
|
Definition at line 32 of file DemoActionEngine.h. |
|
Definition at line 43 of file DemoActionEngine.h. |
|
Draw the visual appearance of the action onto the canvas.
Reimplemented from ActionEngine. Definition at line 124 of file DemoActionEngine.h. |
|
Get the restore buffer. This buffer will be filled in with the stored state of the ActionEngine and then presented to restoreState. Reimplemented from ActionEngine. Definition at line 143 of file DemoActionEngine.h. |
|
Get the save buffer. The contents of this buffer will be saved away for later restoration. Reimplemented from ActionEngine. Definition at line 153 of file DemoActionEngine.h. |
|
Return the size of the buffer which contains the state. This size is assumed to be the size of the save state buffer and of the restore state buffer. Reimplemented from ActionEngine. Definition at line 163 of file DemoActionEngine.h. |
|
This method is invoked before the draw() method in order to find out, whether the background of the drawing canvas shall be left untouched since the last draw, erased to white, or you don't care. Don't cache this value, since it might change during each period!
Reimplemented from ActionEngine. Definition at line 118 of file DemoActionEngine.h. |
|
Progress to the next period. Update the internal state of your ActionEngine, but DO NOT DRAW ANYTHING!. Only draw in your draw() operation. Reimplemented from ActionEngine. Definition at line 59 of file DemoActionEngine.h. |
|
Receive an input event. The ActionEngine can freely decide whether it wants to react to it, or not. Reimplemented from ActionEngine. Definition at line 131 of file DemoActionEngine.h. |
|
Release the restore buffer. This is invoked when the restore buffer is no longer needed. Reimplemented from ActionEngine. Definition at line 148 of file DemoActionEngine.h. |
|
Release the save buffer. This is invoked when the restore buffer is no longer needed. Reimplemented from ActionEngine. Definition at line 158 of file DemoActionEngine.h. |
|
Reset the ActionEngine.
Reimplemented from ActionEngine. Definition at line 48 of file DemoActionEngine.h. |
|
Set the current state from the restore buffer. The buffer is guaranteed to be identical to the one which was returned by getRestoreStateBuffer(). Reimplemented from ActionEngine. Definition at line 168 of file DemoActionEngine.h. |