Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 774 was 774, checked in by rgrieder, 16 years ago
  • changed executable from main to orxonox
  • added src/orxonox to the include directories
File size: 868 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 "core/CoreIncludes.h"
18#include "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.