|
Last change
on this file since 732 was
732,
checked in by nicolasc, 18 years ago
|
- added copyrightnotice to spaceshipsteeringobject
- added OPTION to build networktools
- minor cleanups
|
|
File size:
887 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 "zlib.h" |
|---|
| 16 | #include "Synchronisable.h" |
|---|
| 17 | #include "orxonox/core/CoreIncludes.h" |
|---|
| 18 | #include "orxonox/objects/BaseObject.h" |
|---|
| 19 | #include "GameStateManager.h" |
|---|
| 20 | |
|---|
| 21 | namespace network { |
|---|
| 22 | |
|---|
| 23 | class GameStateClient{ |
|---|
| 24 | public: |
|---|
| 25 | GameStateClient(); |
|---|
| 26 | ~GameStateClient(); |
|---|
| 27 | bool pushGameState(GameStateCompressed *compstate); |
|---|
| 28 | private: |
|---|
| 29 | bool loadSnapshot(GameState state); |
|---|
| 30 | GameState diff(GameState a, GameState b); |
|---|
| 31 | GameState decompress(GameStateCompressed a); |
|---|
| 32 | GameState decode(GameState a, GameStateCompressed x); |
|---|
| 33 | GameState decode(GameStateCompressed x); |
|---|
| 34 | void removeObject(orxonox::Iterator<Synchronisable> &it); |
|---|
| 35 | |
|---|
| 36 | GameState reference; |
|---|
| 37 | }; |
|---|
| 38 | |
|---|
| 39 | } |
|---|
| 40 | |
|---|
| 41 | #endif /* _GameStateClient_H__ */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.