Changeset 385 for code/branches/FICN/src/network/GameStateManager.h
- Timestamp:
- Dec 5, 2007, 12:05:46 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/network/GameStateManager.h
r346 r385 35 35 * - writing gamestates to universe 36 36 * - diffing gamestates ? 37 * 38 * EN/DECODATION: 39 * a: last Gamestate a client has received 40 * b: new Gamestate 41 * x: diffed and compressed gamestate 42 * x=(a^b) 43 * b=(a^x) 44 * diff(a,diff(a,x))=x (hope this is correct) 37 45 * @author Oliver Scheuss 38 46 */ … … 43 51 GameState getSnapshot(int id); 44 52 bool loadSnapshot(GameState state); 53 GameState encode(GameState a, GameState b); 54 GameState decode(GameState a, GameState x); 45 55 private: 46 56 void removeObject(orxonox::Iterator<Synchronisable> &it); 47 57 GameState diff(GameState a, GameState b); 58 GameState compress(GameState a); 59 GameState decompress(GameState a); 48 60 }; 49 61
Note: See TracChangeset
for help on using the changeset viewer.