|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrails.game.Round
rails.game.OperatingRound
rails.game.specific._1856.OperatingRound_1856
public class OperatingRound_1856
Field Summary |
---|
Fields inherited from class rails.game.Round |
---|
autopasses, bank, canRequestTurn, companyManager, gameManager, guiHints, hasRequestedTurn, ipo, log, mapManager, moveStack, playerManager, pool, possibleActions, scrapHeap, stockMarket, unavailable, wasInterrupted |
Constructor Summary | |
---|---|
OperatingRound_1856(GameManagerI gameManager)
|
Method Summary | |
---|---|
boolean |
buyTrain(BuyTrain action)
|
protected int |
calculateLoanAmount(int numberOfLoans)
|
protected int |
calculateLoanInterest(int numberOfLoans)
|
protected int |
checkForDeductions(SetDividend action)
Default version, to be overridden if need be |
protected int |
executeDeductions(SetDividend action)
Default version, to be overridden if need be |
protected boolean |
finishTurnSpecials()
Stub, may be overridden in subclasses Return value: TRUE = normal turn end; FALSE = return immediately from finishTurn(). |
protected boolean |
gameSpecificNextStep(GameDef.OrStep step)
Stub, can be overridden in subclasses to check for extra steps |
protected void |
prepareRevenueAndDividendAction()
|
protected void |
reachDestination(PublicCompanyI company)
Stub for applying any follow-up actions when a company reaches it destinations. |
void |
resume(java.util.List<PublicCompanyI> mergingCompanies)
|
protected void |
setDestinationActions()
This is currently a stub, as it is unclear if there is a common rule for setting destination reaching options. |
protected void |
setGameSpecificPossibleActions()
Stub, can be overridden by subclasses |
protected boolean |
setNextOperatingCompany(boolean initial)
Implements special rules for first time operating in 1856 |
protected java.lang.String |
validateTakeLoans(TakeLoans action)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OperatingRound_1856(GameManagerI gameManager)
Method Detail |
---|
protected boolean setNextOperatingCompany(boolean initial)
setNextOperatingCompany
in class OperatingRound
protected void prepareRevenueAndDividendAction()
prepareRevenueAndDividendAction
in class OperatingRound
protected int checkForDeductions(SetDividend action)
OperatingRound
checkForDeductions
in class OperatingRound
protected int executeDeductions(SetDividend action)
OperatingRound
executeDeductions
in class OperatingRound
protected void setDestinationActions()
OperatingRound
setDestinationActions
in class OperatingRound
protected void reachDestination(PublicCompanyI company)
OperatingRound
reachDestination
in class OperatingRound
protected void setGameSpecificPossibleActions()
OperatingRound
setGameSpecificPossibleActions
in class OperatingRound
public boolean buyTrain(BuyTrain action)
buyTrain
in class OperatingRound
protected java.lang.String validateTakeLoans(TakeLoans action)
validateTakeLoans
in class OperatingRound
protected int calculateLoanAmount(int numberOfLoans)
calculateLoanAmount
in class OperatingRound
protected int calculateLoanInterest(int numberOfLoans)
protected boolean gameSpecificNextStep(GameDef.OrStep step)
OperatingRound
gameSpecificNextStep
in class OperatingRound
public void resume(java.util.List<PublicCompanyI> mergingCompanies)
protected boolean finishTurnSpecials()
OperatingRound
finishTurnSpecials
in class OperatingRound
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |