Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/network/src/network/GameStateClient.h @ 984

Last change on this file since 984 was 984, checked in by dumenim, 16 years ago

some bugfix in GameStateManager.cc, CMakeLists now generates networktest executable, some test functions added

File size: 1.0 KB
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    //#### ADDED FOR TESTING PURPOSE ####
26    GameState* testDecompress( GameStateCompressed* gc );
27    GameState* testUndiff( GameState* g_old, GameState* g_diffed );
28    //#### END TESTING PURPOSE ####
29    bool pushGameState(GameStateCompressed *compstate);
30  private:
31    bool loadSnapshot(GameState *state);
32    GameState *undiff(GameState *a, GameState *b);
33    GameState *decompress(GameStateCompressed *a);
34    GameState *decode(GameState *a, GameStateCompressed *x);
35    GameState *decode(GameStateCompressed *x);
36    void removeObject(orxonox::Iterator<Synchronisable> &it);
37
38    GameState *reference;
39  };
40
41}
42
43#endif /* _GameStateClient_H__ */
Note: See TracBrowser for help on using the repository browser.