[Megameknet-cvs] MegaMekNET/src/server/cyclops CyclopsVisitor.java,1.3,1.4 Cyclops.java,1.4,1.5
Status: Inactive
Brought to you by:
mcwizard
From: Immanuel S. <im...@us...> - 2005-04-09 14:08:41
|
Update of /cvsroot/megameknet/MegaMekNET/src/server/cyclops In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15313/src/server/cyclops Modified Files: CyclopsVisitor.java Cyclops.java Log Message: cyclops pilot.* function Index: CyclopsVisitor.java =================================================================== RCS file: /cvsroot/megameknet/MegaMekNET/src/server/cyclops/CyclopsVisitor.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CyclopsVisitor.java 9 Apr 2005 09:47:44 -0000 1.3 --- CyclopsVisitor.java 9 Apr 2005 14:08:31 -0000 1.4 *************** *** 27,30 **** --- 27,31 ---- import common.Continent; import common.House; + import common.Pilot; import common.Planet; import common.PlanetEnvironment; *************** *** 286,288 **** --- 287,303 ---- return e; } + + + /** + * pilot struct is : + * id, piloting, gunnery, desc + */ + public Object visitPilot(Pilot data) { + HashMap e = new HashMap(); + e.put("id", "id"+data.getId()); + e.put("piloting", new Integer(data.getPiloting())); + e.put("gunnery", new Integer(data.getGunnery())); + e.put("desc", data.getName()); + return e; + } } Index: Cyclops.java =================================================================== RCS file: /cvsroot/megameknet/MegaMekNET/src/server/cyclops/Cyclops.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Cyclops.java 9 Apr 2005 12:56:37 -0000 1.4 --- Cyclops.java 9 Apr 2005 14:08:31 -0000 1.5 *************** *** 82,85 **** --- 82,86 ---- m.put("id", filename); m.put("name", e.getShortName()); + System.out.println(e.getShortName()); m.put("filename", filename); m.put("chassis", e.getChassis()); |