Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/network/GameStateClient.h @ 1040

Last change on this file since 1040 was 1021, checked in by bknecht, 17 years ago

merged back that script-branch

File size: 834 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 "NetworkPrereqs.h"
16#include "GameStateManager.h"
17
18namespace network
19{
20  class GameStateClient
21  {
22  public:
23    GameStateClient();
24    ~GameStateClient();
25    bool pushGameState(GameStateCompressed *compstate);
26  private:
27    bool loadSnapshot(GameState *state);
28    GameState *undiff(GameState *a, GameState *b);
29    GameState *decompress(GameStateCompressed *a);
30    GameState *decode(GameState *a, GameStateCompressed *x);
31    GameState *decode(GameStateCompressed *x);
32    void removeObject(orxonox::Iterator<Synchronisable> &it);
33
34    GameState *reference;
35  };
36
37}
38
39#endif /* _GameStateClient_H__ */
Note: See TracBrowser for help on using the repository browser.