From: Stefan F. <ste...@us...> - 2010-04-04 22:03:03
|
Update of /cvsroot/rails/18xx/rails/game/action In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv19412/rails/game/action Modified Files: GameAction.java PossibleActions.java Log Message: Adding the experimental network code. Example graphs are shown under Info on the Map Panel. Index: PossibleActions.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/game/action/PossibleActions.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** PossibleActions.java 14 Jan 2010 20:57:08 -0000 1.16 --- PossibleActions.java 4 Apr 2010 22:02:53 -0000 1.17 *************** *** 89,93 **** // Save is always allowed if (checkedAction instanceof GameAction ! && ((GameAction)checkedAction).getMode() == GameAction.SAVE) { return true; } --- 89,94 ---- // Save is always allowed if (checkedAction instanceof GameAction ! && (((GameAction)checkedAction).getMode() == GameAction.SAVE ! || ((GameAction)checkedAction).getMode() == GameAction.EXPORT)) { return true; } Index: GameAction.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/game/action/GameAction.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** GameAction.java 4 Jun 2008 19:00:29 -0000 1.4 --- GameAction.java 4 Apr 2010 22:02:53 -0000 1.5 *************** *** 10,17 **** public static final int FORCED_UNDO = 3; public static final int REDO = 4; ! public static final int MAX_MODE = 4; private String[] name = ! new String[] { "Save", "Load", "Undo", "Undo!", "Redo" }; // Server-side settings --- 10,18 ---- public static final int FORCED_UNDO = 3; public static final int REDO = 4; ! public static final int EXPORT = 5; ! public static final int MAX_MODE = 5; private String[] name = ! new String[] { "Save", "Load", "Undo", "Undo!", "Redo", "Export" }; // Server-side settings |