org.dartra.framework
Interface GameEventListener

All Known Implementing Classes:
GameEventAdapter

public interface GameEventListener

A listener interested in events signaled by a game.

Note that this interface does not extend the java.util.EventListener interface since that interface is not present in J2ME CLDC 1.1 / MIDP 2.0.

Author:
Erwin Vervaet

Method Summary
 void gameEnded(GameEvent ge)
          Called when the game ends.
 void gameEventSignaled(GameEvent ge)
          Called for any game event that occurs.
 void gameStarted(GameEvent ge)
          Called when the game starts.
 void illegalThrow(GameEvent ge)
          Called when the player executed and illegal throw.
 void matchGameChanged(GameEvent ge)
          Called when the current game of a match changes.
 void playerChanged(GameEvent ge)
          Called when the current player of a game changes.
 void scoreChanged(GameEvent ge)
          Called when the score of a game changes.
 

Method Detail

gameStarted

public void gameStarted(GameEvent ge)

Called when the game starts.


gameEnded

public void gameEnded(GameEvent ge)

Called when the game ends.


matchGameChanged

public void matchGameChanged(GameEvent ge)

Called when the current game of a match changes.


playerChanged

public void playerChanged(GameEvent ge)

Called when the current player of a game changes.


scoreChanged

public void scoreChanged(GameEvent ge)

Called when the score of a game changes.


illegalThrow

public void illegalThrow(GameEvent ge)

Called when the player executed and illegal throw.


gameEventSignaled

public void gameEventSignaled(GameEvent ge)

Called for any game event that occurs.