#include <ActionEngine.h>
Inheritance diagram for ActionEngine
Public Methods | |
ActionEngine () | |
Construct a new ActionEngine. More... | |
virtual | ~ActionEngine () |
Destroy the ActionEngine. More... | |
virtual void | restart () = 0 |
Reset the ActionEngine. More... | |
virtual void | nextPeriod () = 0 |
Progress to the next period. More... | |
virtual WinLockInitType | getWinLockMode () const = 0 |
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... | |
virtual void | draw (RectangleType *bounds) const = 0 |
Draw the visual appearance of the action onto the canvas. More... | |
Input management | |
virtual void | receiveEvent (const EventType* evtPtr) = 0 |
Receive an input event. More... | |
Save & Restore | |
virtual void* | getSaveStateBuffer () = 0 |
Get the save buffer. More... | |
virtual void | releaseSaveStateBuffer (void *stateBuffer) const = 0 |
Release the save buffer. More... | |
virtual Int16 | getStateBufferSize () const = 0 |
Return the size of the buffer which contains the state. More... | |
virtual void* | getRestoreStateBuffer () = 0 |
Get the restore buffer. More... | |
virtual void | releaseRestoreStateBuffer (void *stateBuffer) const = 0 |
Release the restore buffer. More... | |
virtual void | restoreState (void *stateBuffer) = 0 |
Set the current state from the restore buffer. More... |
It is triggered in regular intervals and has to react by providing a visual representation of the current state.
Definition at line 39 of file ActionEngine.h.
|
Construct a new ActionEngine.
Definition at line 45 of file ActionEngine.h. |
|
Destroy the ActionEngine.
Definition at line 53 of file ActionEngine.h. |
|
Draw the visual appearance of the action onto the canvas.
Reimplemented in DemoActionEngine. |
|
Get the restore buffer. This buffer will be filled in with the stored state of the ActionEngine and then presented to restoreState. Reimplemented in DemoActionEngine. |
|
Get the save buffer. The contents of this buffer will be saved away for later restoration. Reimplemented in DemoActionEngine. Referenced by Presentation::~Presentation(). |
|
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 in DemoActionEngine. Referenced by Presentation::~Presentation(). |
|
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 in DemoActionEngine. |
|
Progress to the next period. Update the internal state of your ActionEngine, but DO NOT DRAW ANYTHING!. Only draw in your draw() operation. Reimplemented in DemoActionEngine. Referenced by Presentation::nextPeriod(). |
|
Receive an input event. The ActionEngine can freely decide whether it wants to react to it, or not. Reimplemented in DemoActionEngine. Referenced by Presentation::receiveEvent(). |
|
Release the restore buffer. This is invoked when the restore buffer is no longer needed. Reimplemented in DemoActionEngine. |
|
Release the save buffer. This is invoked when the restore buffer is no longer needed. Reimplemented in DemoActionEngine. Referenced by Presentation::~Presentation(). |
|
Reset the ActionEngine.
Reimplemented in DemoActionEngine. |
|
Set the current state from the restore buffer. The buffer is guaranteed to be identical to the one which was returned by getRestoreStateBuffer(). Reimplemented in DemoActionEngine. |