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.
gameEnded()
- Called when the game has ended.
gameStarted()
- Called when a new game begins.
gameTick(double)
- Called when the game state has changed.
use(Pawn)
- Called to assign a new pawn to this object
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
gameStarted
public void gameStarted()
Called when a new game begins.
gameTick
public void gameTick(double tick)
Called when the game state has changed.
- Parameters:
tick - how many time units have passed since last call.
gameEnded
public void gameEnded()
Called when the game has ended.
All Packages Class Hierarchy This Package Previous Next Index