|
||||||||||
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._18EU.OperatingRound_18EU
public class OperatingRound_18EU
Implements a basic Operating Round.
A new instance must be created for each new Operating Round. At the end of a round, the current instance should be discarded.
Permanent memory is formed by static attributes.
Field Summary | |
---|---|
protected BooleanState |
hasPullmannAtStart
|
protected TrainTypeI |
pullmannType
|
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_18EU(GameManagerI gameManager)
|
Method Summary | |
---|---|
boolean |
buyTrain(BuyTrain action)
|
protected boolean |
canBuyTrainNow()
In 18EU, a company can (effectively) exchange a Pullmann |
boolean |
checkForExcessTrains()
Special rules for Pullmann trains |
protected void |
initTurn()
|
void |
resume()
Generic stub to resume an interrupted round. |
void |
setBuyableTrains()
Modify possibleActions to follow the Pullmann train trading rules. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected TrainTypeI pullmannType
protected BooleanState hasPullmannAtStart
Constructor Detail |
---|
public OperatingRound_18EU(GameManagerI gameManager)
Method Detail |
---|
protected void initTurn()
initTurn
in class OperatingRound
public void setBuyableTrains()
setBuyableTrains
in class OperatingRound
protected boolean canBuyTrainNow()
canBuyTrainNow
in class OperatingRound
public boolean buyTrain(BuyTrain action)
buyTrain
in class OperatingRound
public boolean checkForExcessTrains()
checkForExcessTrains
in class OperatingRound
public void resume()
Round
resume
in interface RoundI
resume
in class OperatingRound
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |