rails.game.correct
Class CorrectionAction

java.lang.Object
  extended by rails.game.action.PossibleAction
      extended by rails.game.correct.CorrectionAction
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CashCorrectionAction, CorrectionModeAction, MapCorrectionAction

public abstract class CorrectionAction
extends PossibleAction

Base class for all actions that correct the state of the game.

Author:
freystef
See Also:
Serialized Form

Field Summary
protected  java.lang.String correctionName
           
protected  CorrectionType correctionType
           
static long serialVersionUID
           
 
Fields inherited from class rails.game.action.PossibleAction
acted, gameManager, log, playerIndex, playerName
 
Constructor Summary
CorrectionAction()
           
 
Method Summary
 java.lang.String getCorrectionName()
           
 CorrectionType getCorrectionType()
           
 void setCorrectionType(CorrectionType correctionType)
           
 
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

correctionType

protected transient CorrectionType correctionType

correctionName

protected java.lang.String correctionName

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

CorrectionAction

public CorrectionAction()
Method Detail

getCorrectionType

public CorrectionType getCorrectionType()

getCorrectionName

public java.lang.String getCorrectionName()

setCorrectionType

public void setCorrectionType(CorrectionType correctionType)