Last change
on this file since 1929 was
859,
checked in by landauf, 17 years ago
|
more or less a copy of the trunk
|
File size:
820 bytes
|
Rev | Line | |
---|
[859] | 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 | |
---|
| 18 | namespace network |
---|
| 19 | { |
---|
| 20 | class GameStateClient |
---|
| 21 | { |
---|
| 22 | public: |
---|
| 23 | GameStateClient(); |
---|
| 24 | ~GameStateClient(); |
---|
| 25 | bool pushGameState(GameStateCompressed *compstate); |
---|
| 26 | private: |
---|
| 27 | bool loadSnapshot(GameState state); |
---|
| 28 | GameState diff(GameState a, GameState b); |
---|
| 29 | GameState decompress(GameStateCompressed a); |
---|
| 30 | GameState decode(GameState a, GameStateCompressed x); |
---|
| 31 | GameState decode(GameStateCompressed x); |
---|
| 32 | void removeObject(orxonox::Iterator<Synchronisable> &it); |
---|
| 33 | |
---|
| 34 | GameState reference; |
---|
| 35 | }; |
---|
| 36 | |
---|
| 37 | } |
---|
| 38 | |
---|
| 39 | #endif /* _GameStateClient_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.