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