|
| 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.
|
|
virtual void | undo () |
| Called when going back in time to undo any rewind information.
|
|
virtual void | replay () |
| This is called while going forwards in time again to reach current time.
|
|
BareNetworkString * | getBuffer () |
| Returns the buffer with the event information in it.
|
|
| RewindInfo (int ticks, bool is_confirmed) |
| Constructor for a state: it only takes the size, and allocates a buffer for all state info.
|
|
void | setTicks (int ticks) |
| Adjusts the time of this RewindInfo.
|
|
virtual void | undo ()=0 |
| Called when going back in time to undo any rewind information.
|
|
virtual void | restore ()=0 |
| This is called to restore a state before replaying the events.
|
|
virtual void | replay ()=0 |
| This is called while going forwards in time again to reach current time.
|
|
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 | isEvent () const |
| If this RewindInfo is an event.
|
|
virtual bool | isState () const |
| If this RewindInfo is an event.
|
|
◆ isEvent()
virtual bool RewindInfoEvent::isEvent |
( |
| ) |
const |
|
inlinevirtual |
◆ replay()
virtual void RewindInfoEvent::replay |
( |
| ) |
|
|
inlinevirtual |
This is called while going forwards in time again to reach current time.
Calls rewind() in the event rewinder.
Implements RewindInfo.
◆ restore()
void RewindInfoEvent::restore |
( |
| ) |
|
|
inlinevirtual |
An event is never 'restored', it is only rewound.
Implements RewindInfo.
◆ undo()
virtual void RewindInfoEvent::undo |
( |
| ) |
|
|
inlinevirtual |
Called when going back in time to undo any rewind information.
It calls undoEvent in the rewinder.
Implements RewindInfo.
The documentation for this class was generated from the following files: