[Megameknet-cvs] MegaMekNET/src/client/cmd GO.java,1.7,1.8
Status: Inactive
Brought to you by:
mcwizard
From: Helge R. <mcw...@us...> - 2005-05-11 15:45:20
|
Update of /cvsroot/megameknet/MegaMekNET/src/client/cmd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14307/src/client/cmd Modified Files: GO.java Log Message: adjusted to new MM versions Index: GO.java =================================================================== RCS file: /cvsroot/megameknet/MegaMekNET/src/client/cmd/GO.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** GO.java 7 May 2005 16:42:40 -0000 1.7 --- GO.java 11 May 2005 15:45:02 -0000 1.8 *************** *** 16,19 **** --- 16,22 ---- import java.util.StringTokenizer; + import megamek.common.options.GameOptions; + import megamek.common.options.Option; + import client.MMClient; *************** *** 33,40 **** StringTokenizer st = decode(input); client.getGameOptions().clear(); ! /*while (st.hasMoreElements()){ ! //TODO: Fix! ! //client.getGameOptions().add(new Option(client.getGameOptions(),st.nextToken(),new Boolean(st.nextToken()).booleanValue())); ! }*/ } } --- 36,44 ---- StringTokenizer st = decode(input); client.getGameOptions().clear(); ! while (st.hasMoreElements()) ! { ! String option = st.nextToken(); ! client.getGameOptions().add(new Option(new GameOptions(),option,new Boolean(st.nextToken()).booleanValue())); ! } } } |