|
SuperTuxKart
|
A simple class that defines an interface to event rewinding: an undo() function when going back in time, and a replay() function when going forward, replaying the event. More...
#include <event_rewinder.hpp>

Public Member Functions | |
| EventRewinder () | |
| Constructor. More... | |
| virtual | ~EventRewinder () |
| Destructor. | |
| virtual void | undo (BareNetworkString *buffer)=0 |
| Called when an event needs to be undone. More... | |
| virtual void | rewind (BareNetworkString *buffer)=0 |
| Called when an event needs to be replayed. More... | |
A simple class that defines an interface to event rewinding: an undo() function when going back in time, and a replay() function when going forward, replaying the event.
| EventRewinder::EventRewinder | ( | ) |
Constructor.
It will add this object to the list of all rewindable objects in the rewind manager.
|
pure virtual |
Called when an event needs to be replayed.
This is called during rewind, i.e. when going forward in time again.
Implemented in DummyRewinder, and GameProtocol.
|
pure virtual |
Called when an event needs to be undone.
This is called while going backwards for rewinding - all stored events will get an 'undo' call.
Implemented in DummyRewinder, and GameProtocol.