|
Last change
on this file since 866 was
790,
checked in by nicolasc, 18 years ago
|
|
merged FICN back into trunk
awaiting release.
|
|
File size:
820 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 "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.