Package net.sf.colossus.server
Class GameServerSide.GamePhaseAdvancer
java.lang.Object
net.sf.colossus.server.GameServerSide.GamePhaseAdvancer
- All Implemented Interfaces:
PhaseAdvancer
- Enclosing class:
- GameServerSide
Wrap the complexity of phase advancing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Advance to the next phase, only if the passed oldPhase and playerName are current.void
Advance to the next phase, with no error checking.void
Make the next player being the activePlayer, and set phase to Split.
-
Constructor Details
-
GamePhaseAdvancer
GamePhaseAdvancer()
-
-
Method Details
-
advancePhase
public void advancePhase()Advance to the next phase, only if the passed oldPhase and playerName are current.- Specified by:
advancePhase
in interfacePhaseAdvancer
-
advancePhaseInternal
public void advancePhaseInternal()Advance to the next phase, with no error checking.- Specified by:
advancePhaseInternal
in 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:
advanceTurn
in interfacePhaseAdvancer
-