gvprojects.igel.model
Interface IIgelGame.GameEventListener

Enclosing interface:
IIgelGame

public static interface IIgelGame.GameEventListener

Listens for game events

Author:
Zachary Kurmas

Method Summary
 void announceWin(int player)
          Reports that the game has been won
 void messageChanged(java.lang.String newMessage)
          Called when message changes
 void noForwardMove(int row)
          Report that there are no tokens to move in row
 void phaseChanged(Phase newPhase)
          Reports a phase change
 void roll(int newValue)
          Reports a die roll
 

Method Detail

messageChanged

void messageChanged(java.lang.String newMessage)
Called when message changes

Parameters:
newMessage - the new message

roll

void roll(int newValue)
Reports a die roll

Parameters:
newValue - the new value on the die

phaseChanged

void phaseChanged(Phase newPhase)
Reports a phase change

Parameters:
newPhase - the new Phase

announceWin

void announceWin(int player)
Reports that the game has been won

Parameters:
player - the player that won

noForwardMove

void noForwardMove(int row)
Report that there are no tokens to move in row

Parameters:
row - the row specified by the die.