19#ifndef HEADER_DUMMY_REWINDER_HPP
20#define HEADER_DUMMY_REWINDER_HPP
22#include "network/event_rewinder.hpp"
24#include "network/rewinder.hpp"
Describes a chain of 8-bit unsigned integers.
Definition: network_string.hpp:53
void skip(int n)
Skips the specified number of bytes when reading.
Definition: network_string.hpp:195
A dummy Rewinder and EventRewinder class for unit testing and handle undo destruction of projectiles.
Definition: dummy_rewinder.hpp:29
virtual void rewindToEvent(BareNetworkString *s)
Called when an event needs to be replayed.
Definition: dummy_rewinder.hpp:36
virtual void computeError()
Called when a rewind is finished, and is used to compute the error caused by the rewind (which is the...
Definition: dummy_rewinder.hpp:49
virtual void saveTransform()
Called before a rewind.
Definition: dummy_rewinder.hpp:47
virtual void rewind(BareNetworkString *s)
Called when an event needs to be replayed.
Definition: dummy_rewinder.hpp:45
virtual void undo(BareNetworkString *s)
Called when an event needs to be undone.
Definition: dummy_rewinder.hpp:43
BareNetworkString * saveState(std::vector< std::string > *ru)
Provides a copy of the state of the object in one memory buffer.
Definition: dummy_rewinder.hpp:32
virtual void undoState(BareNetworkString *s)
Undo the effects of the given state, but do not rewind to that state (which is done by rewindTo).
Definition: dummy_rewinder.hpp:41
virtual void restoreState(BareNetworkString *s, int count)
Called when a state needs to be replayed.
Definition: dummy_rewinder.hpp:38
virtual void undoEvent(BareNetworkString *s)
Called when an event needs to be undone.
Definition: dummy_rewinder.hpp:34
A simple class that defines an interface to event rewinding: an undo() function when going back in ti...
Definition: event_rewinder.hpp:29
Definition: rewinder.hpp:44
Defines functions to easily manipulate 8-bit network destinated strings.