Update of /cvsroot/rails/18xx/rails/game/action
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv5928/rails/game/action
Modified Files:
PossibleActions.java
Log Message:
Changed comment
Index: PossibleActions.java
===================================================================
RCS file: /cvsroot/rails/18xx/rails/game/action/PossibleActions.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** PossibleActions.java 1 Jan 2010 18:57:56 -0000 1.15
--- PossibleActions.java 14 Jan 2010 20:57:08 -0000 1.16
***************
*** 14,19 ****
* This class manages the actions that the current user can execute at any point
* in time. Each possible action is represented by an instance of a subclass of
! * PossibleAction. The complete set is stored in a Map per action (subclass)
! * type. <p>This class is implemented as a singleton to prevent multiple
* instances lingering around, as there can only be one set of possible actions
* at any point in time.
--- 14,19 ----
* This class manages the actions that the current user can execute at any point
* in time. Each possible action is represented by an instance of a subclass of
! * PossibleAction. The complete set is stored in aan ArrayList.
! * <p>This class is implemented as a singleton to prevent multiple
* instances lingering around, as there can only be one set of possible actions
* at any point in time.
***************
*** 88,96 ****
// Save is always allowed
! if (checkedAction instanceof GameAction
&& ((GameAction)checkedAction).getMode() == GameAction.SAVE) {
return true;
}
!
// Check if action accurs in the list of possible actions
for (PossibleAction action : possibleActions) {
--- 88,96 ----
// Save is always allowed
! if (checkedAction instanceof GameAction
&& ((GameAction)checkedAction).getMode() == GameAction.SAVE) {
return true;
}
!
// Check if action accurs in the list of possible actions
for (PossibleAction action : possibleActions) {
|