Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 433 was 416, checked in by scheusso, 17 years ago

blabla

File size: 812 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  void removeObject(orxonox::Iterator<Synchronisable> &it);
36 
37  GameState reference;
38};
39
40}
41
42#endif
Note: See TracBrowser for help on using the repository browser.