rails.game.specific._18AL
Class AssignNamedTrains
java.lang.Object
rails.game.action.PossibleAction
rails.game.action.PossibleORAction
rails.game.action.UseSpecialProperty
rails.game.specific._18AL.AssignNamedTrains
- All Implemented Interfaces:
- java.io.Serializable
public class AssignNamedTrains
- extends UseSpecialProperty
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
numberOfTrains
int numberOfTrains
numberOfTokens
int numberOfTokens
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
AssignNamedTrains
public AssignNamedTrains(NameTrains namedTrainsSpecialProperty,
java.util.List<TrainI> trains)
equalsAsAction
public boolean equalsAsAction(PossibleAction action)
- Description copied from class:
PossibleAction
- Compare the chosen actions of two action objects.
In other words: the client-set (posterior) attributes must be compared,
in addition to those server-set (prior) attributes that sufficiently identify the action.
This method is used by the server (engine) to check if two action
objects represent the same actual action, as is done when reloading a saved file
(i.e. loading a later stage of the same game).
- Overrides:
equalsAsAction
in class UseSpecialProperty
- Parameters:
action
- Another PossibleAction to compare with.
- Returns:
- True if the compared PossibleAction object has equal selected action values.
toMenu
public java.lang.String toMenu()
- Description copied from class:
PossibleAction
- Default version of an Menu item text. To be overridden where useful.
- Overrides:
toMenu
in class UseSpecialProperty
toString
public java.lang.String toString()
- Overrides:
toString
in class UseSpecialProperty
getTokens
public java.util.List<NamedTrainToken> getTokens()
getNameableTrains
public java.util.List<NameableTrain> getNameableTrains()
getPreTrainPerToken
public java.util.List<NameableTrain> getPreTrainPerToken()
getPostTrainPerToken
public java.util.List<NameableTrain> getPostTrainPerToken()
setPostTrainPerToken
public void setPostTrainPerToken(java.util.List<NameableTrain> postTokensPerTrain)