Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 25, 2007, 11:06:13 PM (17 years ago)
Author:
scheusso
Message:

added GameStateManager class:

  • gets snapshots of the universe (gamestate) and returns them
  • processes snapshots and loads them to the universe

modified Synchronisable

  • added a function getData(usigned char *data), which puts the data to

the already given pointer (more efficient memory handling for the
GameState class)

  • added a function getSize(), which tells you the total size of the

current gamestate (so that you can allocate enough memory and give it to
getData

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/network/Makefile

    r237 r247  
    2929Synchronisable.o: Synchronisable.cc
    3030        ${CC} -c Synchronisable.cc -g ${INC}
     31GameStateManager.o: GameStateManager.cc
     32        ${CC} -c GameStateManager.cc -g ${INC}
    3133
    3234clean:
Note: See TracChangeset for help on using the changeset viewer.