Last change
on this file since 990 was
984,
checked in by dumenim, 17 years ago
|
some bugfix in GameStateManager.cc, CMakeLists now generates networktest executable, some test functions added
|
File size:
1.0 KB
|
Rev | Line | |
---|
[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 | |
---|
[777] | 15 | #include "NetworkPrereqs.h" |
---|
[416] | 16 | #include "GameStateManager.h" |
---|
| 17 | |
---|
[777] | 18 | namespace network |
---|
| 19 | { |
---|
| 20 | class GameStateClient |
---|
| 21 | { |
---|
| 22 | public: |
---|
| 23 | GameStateClient(); |
---|
| 24 | ~GameStateClient(); |
---|
[984] | 25 | //#### ADDED FOR TESTING PURPOSE #### |
---|
| 26 | GameState* testDecompress( GameStateCompressed* gc ); |
---|
| 27 | GameState* testUndiff( GameState* g_old, GameState* g_diffed ); |
---|
| 28 | //#### END TESTING PURPOSE #### |
---|
[777] | 29 | bool pushGameState(GameStateCompressed *compstate); |
---|
| 30 | private: |
---|
[905] | 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); |
---|
[777] | 36 | void removeObject(orxonox::Iterator<Synchronisable> &it); |
---|
[416] | 37 | |
---|
[905] | 38 | GameState *reference; |
---|
[777] | 39 | }; |
---|
[732] | 40 | |
---|
[416] | 41 | } |
---|
| 42 | |
---|
[673] | 43 | #endif /* _GameStateClient_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.