rails.game.action
Class PossibleORAction

java.lang.Object
  extended by rails.game.action.PossibleAction
      extended by rails.game.action.PossibleORAction
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BuyBonusToken, BuyPrivate, BuyTrain, DiscardTrain, ExchangeTokens, LayTile, LayToken, OperatingCost, ReachDestinations, SetDividend, TakeLoans, UseSpecialProperty

public abstract class PossibleORAction
extends PossibleAction

PossibleAction is the superclass of all classes that describe an allowed user action (such as laying a tile or dropping a token on a specific hex, buying a train etc.).

Author:
Erik Vos
See Also:
Serialized Form

Field Summary
protected  PublicCompanyI company
           
protected  java.lang.String companyName
           
 
Fields inherited from class rails.game.action.PossibleAction
acted, gameManager, log, playerIndex, playerName, serialVersionUID
 
Constructor Summary
PossibleORAction()
           
 
Method Summary
 PublicCompanyI getCompany()
           
 java.lang.String getCompanyName()
           
 void setCompany(PublicCompanyI company)
          To be used in the client (to enable safety check in the server)
 
Methods inherited from class rails.game.action.PossibleAction
equalsAsAction, equalsAsOption, getCompanyManager, getGameManager, getPlayerIndex, getPlayerName, hasActed, setActed, setPlayerName, toMenu
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

company

protected transient PublicCompanyI company

companyName

protected java.lang.String companyName
Constructor Detail

PossibleORAction

public PossibleORAction()
Method Detail

getCompany

public PublicCompanyI getCompany()

getCompanyName

public java.lang.String getCompanyName()

setCompany

public void setCompany(PublicCompanyI company)
To be used in the client (to enable safety check in the server)