rails.game
Class BaseToken
java.lang.Object
rails.game.Token
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
company
PublicCompanyI company
BaseToken
public BaseToken(PublicCompanyI company)
- Create a BaseToken.
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