Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FICN/src/network/GameStateClient.h @ 436

Last change on this file since 436 was 436, checked in by scheusso, 16 years ago

extended gamestatehandling for diffed and not diffed gamestates (initial states, etc)

File size: 855 bytes
Line 
1//
2// C++ Interface: GameStateClient
3//
4// Description:
5//
6//
7// Author:  <>, (C) 2007
8//
9// Copyright: See COPYING file that comes with this distribution
10//
11//
12#ifndef NETWORK_GAMESTATECLIENT_H
13#define NETWORK_GAMESTATECLIENT_H
14
15#include "zlib.h"
16#include "Synchronisable.h"
17#include "orxonox/core/IdentifierIncludes.h"
18#include "GameStateManager.h"
19
20namespace network {
21
22/**
23        @author
24*/
25class GameStateClient{
26public:
27  GameStateClient();
28  ~GameStateClient();
29  bool pushGameState(GameStateCompressed compstate);
30private:
31  bool loadSnapshot(GameState state);
32  GameState diff(GameState a, GameState b);
33  GameState decompress(GameStateCompressed a);
34  GameState decode(GameState a, GameStateCompressed x);
35  GameState decode(GameStateCompressed x);
36  void removeObject(orxonox::Iterator<Synchronisable> &it);
37 
38  GameState reference;
39};
40
41}
42
43#endif
Note: See TracBrowser for help on using the repository browser.