Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 28, 2008, 11:09:34 PM (16 years ago)
Author:
scheusso
Message:

diffing work now: wohoo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network3/src/network/GameStateManager.h

    r1168 r1199  
    5050{
    5151
    52 #define KEEP_GAMESTATES 20
     52#define KEEP_GAMESTATES 100
    5353
    5454  /**
     
    7878    GameStateCompressed *popGameState(int clientID);
    7979    void ackGameState(int clientID, int gamestateID);
    80     int id;
    8180  private:
    8281    void cleanup(); // "garbage handler"
    83     GameState *getSnapshot(int id);
     82    GameState *getSnapshot();
    8483    GameStateCompressed *encode(GameState *a, GameState *b);
    8584    GameStateCompressed *encode(GameState *a);
    8685    GameState *diff(GameState *a, GameState *b);
    8786    GameStateCompressed *compress_(GameState *a);
    88     bool deleteUnusedGameState(int gamestateID);
     87    bool printGameStates();
    8988
    9089    std::map<int, GameState*> gameStateMap; //map gsID to gamestate*
     
    9291    GameState *reference;
    9392    ClientInformation *head_;
     93    int id_;
    9494  };
    9595
Note: See TracChangeset for help on using the changeset viewer.