From: Erik V. <ev...@us...> - 2009-10-09 20:20:49
|
Update of /cvsroot/rails/18xx/rails/game/specific/_18EU In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv3137/rails/game/specific/_18EU Modified Files: StockRound_18EU.java Log Message: Extended ConfiguableComponentI interface to include final (post XML-parsing) initialisation. Used it to remove several more static methods & calls. Index: StockRound_18EU.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/game/specific/_18EU/StockRound_18EU.java,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** StockRound_18EU.java 7 Oct 2009 19:00:39 -0000 1.25 --- StockRound_18EU.java 9 Oct 2009 20:20:34 -0000 1.26 *************** *** 89,94 **** } else { freeStations = new ArrayList<City>(); ! MapManager map = ! (MapManager) Game.getComponentManager().findComponent("Map"); for (City city : map.getCurrentStations()) { if (city.getSlots() > city.getTokens().size()) { --- 89,93 ---- } else { freeStations = new ArrayList<City>(); ! MapManager map = gameManager.getMapManager(); for (City city : map.getCurrentStations()) { if (city.getSlots() > city.getTokens().size()) { |