|
SuperTuxKart
|

Public Member Functions | |
| RewindInfoEventFunction (int ticks, std::function< void()> undo_function=[](){}, std::function< void()> replay_function=[](){}, std::function< void()> destroy_function=[](){}) | |
| 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. | |
| virtual void | replay () |
| This is called while going forwards in time again to reach current time. | |
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 | |
| const std::function< void()> | m_undo_function |
| const std::function< void()> | m_replay_function |
| const std::function< void()> | m_destroy_function |
|
inlinevirtual |