rails.game.correct
Class CorrectionManager

java.lang.Object
  extended by rails.game.correct.CorrectionManager
All Implemented Interfaces:
CorrectionManagerI
Direct Known Subclasses:
CashCorrectionManager, MapCorrectionManager

public abstract class CorrectionManager
extends java.lang.Object
implements CorrectionManagerI


Field Summary
protected  GameManager gameManager
           
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
protected CorrectionManager(GameManager gm, CorrectionType ct)
           
 
Method Summary
 java.util.List<CorrectionAction> createCorrections()
           
 boolean equals(CorrectionManager cm)
           
protected  boolean execute(CorrectionAction action)
           
 boolean executeCorrection(CorrectionAction action)
          calls all executeAction
 CorrectionType getCorrectionType()
           
 boolean isActive()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gameManager

protected GameManager gameManager

log

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

CorrectionManager

protected CorrectionManager(GameManager gm,
                            CorrectionType ct)
Method Detail

getCorrectionType

public CorrectionType getCorrectionType()
Specified by:
getCorrectionType in interface CorrectionManagerI

isActive

public boolean isActive()
Specified by:
isActive in interface CorrectionManagerI

createCorrections

public java.util.List<CorrectionAction> createCorrections()
Specified by:
createCorrections in interface CorrectionManagerI

executeCorrection

public boolean executeCorrection(CorrectionAction action)
calls all executeAction

Specified by:
executeCorrection in interface CorrectionManagerI

execute

protected boolean execute(CorrectionAction action)

equals

public boolean equals(CorrectionManager cm)