// // C++ Interface: GameStateClient // // Description: // // // Author: <>, (C) 2007 // // Copyright: See COPYING file that comes with this distribution // // #ifndef _GameStateClient_H__ #define _GameStateClient_H__ #include "zlib.h" #include "Synchronisable.h" #include "orxonox/core/CoreIncludes.h" #include "orxonox/objects/BaseObject.h" #include "GameStateManager.h" namespace network { /** @author */ class GameStateClient{ public: GameStateClient(); ~GameStateClient(); bool pushGameState(GameStateCompressed *compstate); private: bool loadSnapshot(GameState state); GameState diff(GameState a, GameState b); GameState decompress(GameStateCompressed a); GameState decode(GameState a, GameStateCompressed x); GameState decode(GameStateCompressed x); void removeObject(orxonox::Iterator &it); GameState reference; }; } #endif /* _GameStateClient_H__ */