rails.game
Class BaseToken

java.lang.Object
  extended by rails.game.Token
      extended by rails.game.BaseToken
All Implemented Interfaces:
Moveable, TokenI

public class BaseToken
extends Token

A BaseToken object represents a token that a operating public company can place on the map to act as a rail building and train running starting point.

The "Base" qualifier is used (more or less) consistently in this rails.game program as it most closely the function of such a token: to act as a base from which a company can operate. Other names used in various games and discussions are "railhead", "station", "garrison", or just "token".

Author:
Erik Vos

Field Summary
(package private)  PublicCompanyI company
           
 
Fields inherited from class rails.game.Token
description, holder, log, uniqueId
 
Fields inherited from interface rails.game.move.Moveable
AT_END
 
Constructor Summary
BaseToken(PublicCompanyI company)
          Create a BaseToken.
 
Method Summary
 PublicCompanyI getCompany()
           
 java.lang.String getName()
           
 boolean isPlaced()
           
 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

company

PublicCompanyI company
Constructor Detail

BaseToken

public BaseToken(PublicCompanyI company)
Create a BaseToken.

Method Detail

isPlaced

public boolean isPlaced()

getName

public java.lang.String getName()

getCompany

public PublicCompanyI getCompany()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object