Package net.sf.colossus.server
Class GameServerSide.GamePhaseAdvancer
- java.lang.Object
-
- net.sf.colossus.server.GameServerSide.GamePhaseAdvancer
-
- All Implemented Interfaces:
PhaseAdvancer
- Enclosing class:
- GameServerSide
class GameServerSide.GamePhaseAdvancer extends java.lang.Object implements PhaseAdvancer
Wrap the complexity of phase advancing.
-
-
Constructor Summary
Constructors Constructor Description GamePhaseAdvancer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadvancePhase()Advance to the next phase, only if the passed oldPhase and playerName are current.voidadvancePhaseInternal()Advance to the next phase, with no error checking.voidadvanceTurn()Make the next player being the activePlayer, and set phase to Split.
-
-
-
Method Detail
-
advancePhase
public void advancePhase()
Advance to the next phase, only if the passed oldPhase and playerName are current.- Specified by:
advancePhasein interfacePhaseAdvancer
-
advancePhaseInternal
public void advancePhaseInternal()
Advance to the next phase, with no error checking.- Specified by:
advancePhaseInternalin interfacePhaseAdvancer
-
advanceTurn
public void advanceTurn()
Make the next player being the activePlayer, and set phase to Split. If that next player is dead, advance again (recursively).- Specified by:
advanceTurnin interfacePhaseAdvancer
-
-