Holger's
Java API

Uses of Class
com.antelmann.game.GameRuntimeException

Packages that use GameRuntimeException
com.antelmann.game This package contains packages to support game implementations. 
com.antelmann.game.awari This package contains an implementation of the game Awari. 
com.antelmann.game.puzzle This package contains single-user game implementations representing puzzles. 
 

Uses of GameRuntimeException in com.antelmann.game
 

Subclasses of GameRuntimeException in com.antelmann.game
 class CannotPlayGameException
          An Exception that is thrown if a Player cannot play a given game implementation
 

Methods in com.antelmann.game that throw GameRuntimeException
 double Player.evaluate(GamePlay game, GameMove move, int[] role, int level, long milliseconds)
          evaluate() asks the Player to rate a move in the context of a given game stage relative to its role (if the Player has multiple roles in the game, they will all be found in the role array - giving the Player maximum flexibility) while considering the game level for potential game tree search operations and then using heuristic() to evaluate the leaves of the game tree.
 int AbstractGame.getLastPlayer()
          getLastPlayer() is a convenience function which simply looks up the last move and then returns the playerRole that played it
 double GamePlay.getResult(int playerRole)
          getResult() returns the final outcome for a player, which could be a dollar amount, points gained or anything else
 double AbstractGame.getResult(int playerRole)
          a default implementation for convenience which may suit most games that do not involve betting or any form of measuring how 'big' the win was.
 double Player.heuristic(GamePlay game, GameMove move, int[] role)
          This function - often used as a callback function - evaluates the given move in the context of the given game; it is expected to return quickly.
 boolean AbstractGame.isWinner(int gameRole)
          isWinner() checks whether the given gameRole is in the array retruned by getWinner().
 JGamePlay JGamePlay.setGame(AutoPlay game)
          setGame(AbstractGameBoard board) returns a JGamePlay object that embedds the given AutoPlay game.
 JGamePlay JDefaultGame.setGame(AutoPlay play)
           
 GamePlay GamePlay.spawnChild(GameMove move)
          spawnChild returns a deep copy of an identical game that represents the status of the game after the given move is carried out.
 GamePlay AbstractGame.spawnChild(GameMove move)
          spawnChild() creates a clone of the current game and advances the game by the given GameMove.
 

Uses of GameRuntimeException in com.antelmann.game.awari
 

Methods in com.antelmann.game.awari that throw GameRuntimeException
 double AwariGame.getResult(int playerRole)
          returns the difference in number of pegs once the game is over
 

Uses of GameRuntimeException in com.antelmann.game.puzzle
 

Methods in com.antelmann.game.puzzle that throw GameRuntimeException
 JGamePlay JTilePuzzle.setGame(AutoPlay play)
           
 



(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads