|
SuperTuxKart
|

Public Member Functions | |
| RewindInfoEvent (int ticks, EventRewinder *event_rewinder, BareNetworkString *buffer, bool is_confirmed) | |
| void | restore () |
| An event is never 'restored', it is only rewound. | |
| virtual bool | isEvent () const |
| If this RewindInfo is an event. More... | |
| virtual void | undo () |
| Called when going back in time to undo any rewind information. More... | |
| virtual void | replay () |
| This is called while going forwards in time again to reach current time. More... | |
| BareNetworkString * | getBuffer () |
| Returns the buffer with the event information in it. | |
Public Member Functions inherited from RewindInfo | |
| RewindInfo (int ticks, bool is_confirmed) | |
| Constructor for a state: it only takes the size, and allocates a buffer for all state info. More... | |
| void | setTicks (int ticks) |
| Adjusts the time of this RewindInfo. More... | |
| int | getTicks () const |
| Returns the time at which this RewindInfo was saved. | |
| void | setConfirmed (bool b) |
| Sets if this RewindInfo is confirmed or not. | |
| bool | isConfirmed () const |
| Returns if this RewindInfo is confirmed. | |
| virtual bool | isState () const |
| If this RewindInfo is an event. More... | |
Private Attributes | |
| EventRewinder * | m_event_rewinder |
| Pointer to the event rewinder responsible for this event. | |
| BareNetworkString * | m_buffer |
| Buffer with the event data. | |
|
inlinevirtual |
|
inlinevirtual |
This is called while going forwards in time again to reach current time.
Calls rewind() in the event rewinder.
Implements RewindInfo.
|
inlinevirtual |
Called when going back in time to undo any rewind information.
It calls undoEvent in the rewinder.
Implements RewindInfo.