- changed name of class "Buffer" to "ReplayBuffer" .. "Buffer" at global scope was not a good idea of mine .. ;)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1268 178a84e3-b1eb-0310-8ba1-8eac791a3b58
* interpolation between sampled frames
* restart game works with replay
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1254 178a84e3-b1eb-0310-8ba1-8eac791a3b58
* no interpolation of ghosts position between sampled frames
* no transparency or something else to distinguish
to see it:
* run a game, rename file replay/test.rph to replay/test1.rph - this file is shown in replay
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1253 178a84e3-b1eb-0310-8ba1-8eac791a3b58
all code related to it must be activated with compiler-switch HAVE_GHOST_REPLAY
folder "replay" added to store the replay-files
there are 2 main classes. ReplayRecorder & ReplayPlayer. both are members of class World. the first is for recording/saving a replay and the latter one for showing the replay/loading/ghost-replay
*recording* a game works already very basic, only karts position-struct is stored and some data about the game (track,karts,player...)
the replay file currently is written to replay-folder in world's destructor to replay/test.rph
and it is loaded into ReplayPlayer in World's constructor
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1243 178a84e3-b1eb-0310-8ba1-8eac791a3b58