All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.loki3.cyber.pawn.GameListener


public interface GameListener
Interface which is notified of game events.


Method Index

 o gameEnded()
Called when the game has ended.
 o gameStarted()
Called when a new game begins.
 o gameTick(double)
Called when the game state has changed.
 o use(Pawn)
Called to assign a new pawn to this object

Method Detail

 o use
public boolean use(Pawn pawn)
          Called to assign a new pawn to this object
Parameters:
pawn - an object to use during this game session
Returns:
true if the class accepts the pawn
 o gameStarted
public void gameStarted()
          Called when a new game begins.
 o gameTick
public void gameTick(double tick)
          Called when the game state has changed.
Parameters:
tick - how many time units have passed since last call.
 o gameEnded
public void gameEnded()
          Called when the game has ended.

All Packages  Class Hierarchy  This Package  Previous  Next  Index