Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FICN_test/src/network/GameStateClient.h @ 753

Last change on this file since 753 was 733, checked in by rgrieder, 17 years ago
  • moved BaseObject to core
File size: 884 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 _GameStateClient_H__
13#define _GameStateClient_H__
14
15#include "zlib.h"
16#include "Synchronisable.h"
17#include "orxonox/core/CoreIncludes.h"
18#include "orxonox/core/BaseObject.h"
19#include "GameStateManager.h"
20
21namespace network {
22
23class GameStateClient{
24public:
25  GameStateClient();
26  ~GameStateClient();
27  bool pushGameState(GameStateCompressed *compstate);
28private:
29  bool loadSnapshot(GameState state);
30  GameState diff(GameState a, GameState b);
31  GameState decompress(GameStateCompressed a);
32  GameState decode(GameState a, GameStateCompressed x);
33  GameState decode(GameStateCompressed x);
34  void removeObject(orxonox::Iterator<Synchronisable> &it);
35
36  GameState reference;
37};
38
39}
40
41#endif /* _GameStateClient_H__ */
Note: See TracBrowser for help on using the repository browser.