rails.game.specific._18AL
Class NamedTrainToken

java.lang.Object
  extended by rails.game.Token
      extended by 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
           
 
Fields inherited from class rails.game.Token
holder, uniqueId
 
Fields inherited from interface rails.game.move.Moveable
AT_END
 
Constructor Summary
NamedTrainToken()
           
 
Method Summary
 void configureFromXML(Tag tag)
          Instructs the component to configure itself from the provided XML element.
 void finishConfiguration(GameManagerI gameManager)
          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.
 java.util.List<MapHex> getHexesToPass()
           
 java.lang.String getLongName()
           
 java.lang.String getName()
           
 int getValue()
           
 java.lang.String toString()
           
 
Methods inherited from class rails.game.Token
equals, getByUniqueId, getHolder, getUniqueId, init, moveTo, setHolder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
Constructor Detail

NamedTrainToken

public NamedTrainToken()
Method Detail

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()