rails.game.specific._18AL
Class NamedTrainToken
java.lang.Object
rails.game.Token
rails.game.specific._18AL.NamedTrainToken
- All Implemented Interfaces:
- ConfigurableComponentI, Moveable, TokenI
public class NamedTrainToken
- extends Token
- implements ConfigurableComponentI
Field Summary |
protected static org.apache.log4j.Logger |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
log
protected static org.apache.log4j.Logger log
NamedTrainToken
public NamedTrainToken()
configureFromXML
public void configureFromXML(Tag tag)
throws ConfigurationException
- Description copied from interface:
ConfigurableComponentI
- Instructs the component to configure itself from the provided XML
element.
- Specified by:
configureFromXML
in interface ConfigurableComponentI
- Throws:
ConfigurationException
finishConfiguration
public void finishConfiguration(GameManagerI gameManager)
throws ConfigurationException
- Description copied from interface:
ConfigurableComponentI
- This method is intended to be called for each configurable
component, to perforn any initialisation activities that
require any other components to be initialised first.
This includes creating any required relationships to other
configured components and objects.
This method should be called where necessary after all
XML file parsing has completed, so that all objects that
need to be related to do exist.
- Specified by:
finishConfiguration
in interface ConfigurableComponentI
- Parameters:
gameManager
- The 'parent' configurable component is passed to allow
the 'child' to access any other object without the need to resort to
static calls where possible.
- Throws:
ConfigurationException
getName
public java.lang.String getName()
- Specified by:
getName
in interface Moveable
- Specified by:
getName
in interface TokenI
getLongName
public java.lang.String getLongName()
getValue
public int getValue()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getHexesToPass
public java.util.List<MapHex> getHexesToPass()