Last change
on this file since 945 was
905,
checked in by scheusso, 17 years ago
|
revided and checked gamestate handling
|
File size:
834 bytes
|
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(); |
---|
| 25 | bool pushGameState(GameStateCompressed *compstate); |
---|
| 26 | private: |
---|
[905] | 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); |
---|
[777] | 32 | void removeObject(orxonox::Iterator<Synchronisable> &it); |
---|
[416] | 33 | |
---|
[905] | 34 | GameState *reference; |
---|
[777] | 35 | }; |
---|
[732] | 36 | |
---|
[416] | 37 | } |
---|
| 38 | |
---|
[673] | 39 | #endif /* _GameStateClient_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.