net.sf.colossus.server
Class GameServerSide.GamePhaseAdvancer

java.lang.Object
  extended by 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
GameServerSide.GamePhaseAdvancer()
           
 
Method Summary
 void advancePhase()
          Advance to the next phase, only if the passed oldPhase and playerName are current.
 void advancePhaseInternal()
          Advance to the next phase, with no error checking.
 void advanceTurn()
          Make the next player being the activePlayer, and set phase to Split.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameServerSide.GamePhaseAdvancer

GameServerSide.GamePhaseAdvancer()
Method Detail

advancePhase

public void advancePhase()
Advance to the next phase, only if the passed oldPhase and playerName are current.

Specified by:
advancePhase in interface PhaseAdvancer

advancePhaseInternal

public void advancePhaseInternal()
Advance to the next phase, with no error checking.

Specified by:
advancePhaseInternal in interface PhaseAdvancer

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 interface PhaseAdvancer