~mchaten/gg/main

« back to all changes in this revision

Viewing changes to main/server/src/net/sf/goodgame/server/game/GameTypeList.java

  • Committer: mchaten
  • Date: 2009-04-26 00:34:57 UTC
  • Revision ID: mchaten@gmail.com-20090426003457-fm2fxazvf5by0tj2
Change GameType.NAME and GameType.ID and GameType.gameTypeList to be private instead of public
Add accessor methods for the aforementioned fields
Change references to the old variables to the accessor method.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    public synchronized void add(GameType gt) {
40
40
        NetworkMessage addMessage = ServerToClientLogic.addGameTypes(gt);
41
41
        super.addData(gt, addMessage);
42
 
        gameTypes.put(gt.ID, gt);
 
42
        gameTypes.put(gt.getId(), gt);
43
43
        super.updateListeners(addMessage);
44
44
    }
45
45