Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 742 was 733, checked in by rgrieder, 17 years ago
  • moved BaseObject to core
File size: 884 bytes
RevLine 
[416]1//
2// C++ Interface: GameStateClient
3//
[732]4// Description:
[416]5//
6//
7// Author:  <>, (C) 2007
8//
9// Copyright: See COPYING file that comes with this distribution
10//
11//
[673]12#ifndef _GameStateClient_H__
13#define _GameStateClient_H__
[416]14
15#include "zlib.h"
16#include "Synchronisable.h"
[496]17#include "orxonox/core/CoreIncludes.h"
[733]18#include "orxonox/core/BaseObject.h"
[416]19#include "GameStateManager.h"
20
21namespace network {
22
23class GameStateClient{
24public:
25  GameStateClient();
26  ~GameStateClient();
[620]27  bool pushGameState(GameStateCompressed *compstate);
[416]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);
[436]33  GameState decode(GameStateCompressed x);
[416]34  void removeObject(orxonox::Iterator<Synchronisable> &it);
[732]35
[416]36  GameState reference;
37};
38
39}
40
[673]41#endif /* _GameStateClient_H__ */
Note: See TracBrowser for help on using the repository browser.