rails.game.action
Class LayToken
java.lang.Object
rails.game.action.PossibleAction
rails.game.action.PossibleORAction
rails.game.action.LayToken
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- LayBaseToken, LayBonusToken
public abstract class LayToken
- extends PossibleORAction
- Author:
- Erik Vos
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
locations
protected transient java.util.List<MapHex> locations
- Where to lay a token (null means anywhere)
locationNames
protected java.lang.String locationNames
specialProperty
protected transient SpecialTokenLay specialProperty
- Special property that will be fulfilled by this token lay. If null, this
is a normal token lay.
specialPropertyId
protected int specialPropertyId
chosenHex
protected transient MapHex chosenHex
- The map hex on which the token is laid
chosenHexName
protected java.lang.String chosenHexName
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
LayToken
public LayToken(java.util.List<MapHex> locations)
- Allow laying a base token on a given location.
LayToken
public LayToken(SpecialTokenLay specialProperty)
LayToken
public LayToken(MapHex hex)
getChosenHex
public MapHex getChosenHex()
- Returns:
- Returns the chosenHex.
setChosenHex
public void setChosenHex(MapHex chosenHex)
- Parameters:
chosenHex
- The chosenHex to set.
getSpecialProperty
public SpecialTokenLay getSpecialProperty()
- Returns:
- Returns the specialProperty.
setSpecialProperty
public void setSpecialProperty(SpecialTokenLay specialProperty)
- Parameters:
specialProperty
- The specialProperty to set.
getLocations
public java.util.List<MapHex> getLocations()
getLocationNameString
public java.lang.String getLocationNameString()