spellcast.game
Interface IGame

All Known Implementing Classes:
Game

public interface IGame

The Spellcast Game.

Version:
$Revision: 1.1 $
Author:
Barrie Treloar

Method Summary
 void addWizard(IWizard w)
          Add a wizard to the system.
 GameLog getGameLog()
          Get the value of gameLog.
 java.util.List<IMonster> getMonsters()
          The IMonsters currently in the arena.
 java.lang.String getName()
          Return the game name.
 Turn getTurn()
          Get the value of turn.
 java.util.List<IWizard> getWizards()
          The IWizards currently in the arena.
 boolean hasFinished()
          Returns whether the game has finished.
 boolean hasStarted()
          Returns whether the game has started.
 void processTurn()
          Process the current turn.
 void removeWizard(IWizard w)
          Remove a wizard from the system.
 void setTurn(Turn theTurn)
          Set the the curent turn for the game.
 

Method Detail

getName

java.lang.String getName()
Return the game name.

Returns:
the game name.

getTurn

Turn getTurn()
Get the value of turn.

Returns:
value of turn.

getGameLog

GameLog getGameLog()
Get the value of gameLog.

Returns:
value of gameLog.

getMonsters

java.util.List<IMonster> getMonsters()
The IMonsters currently in the arena.

Returns:
The IMonsters currently in the arena.

getWizards

java.util.List<IWizard> getWizards()
The IWizards currently in the arena.

Returns:
The IWizards currently in the arena.

setTurn

void setTurn(Turn theTurn)
Set the the curent turn for the game.

Parameters:
theTurn - the curent turn for the game

processTurn

void processTurn()
Process the current turn.


addWizard

void addWizard(IWizard w)
Add a wizard to the system.

Parameters:
w - Wizard to add to the game.

removeWizard

void removeWizard(IWizard w)
Remove a wizard from the system.

Parameters:
w - Wizard to remove from the game.

hasStarted

boolean hasStarted()
Returns whether the game has started. The game has started if the current turn is no longer Turn.BEFORE_GAME.

Returns:
true if the game has started, false otherwise.

hasFinished

boolean hasFinished()
Returns whether the game has finished. The game has finished if the current turn is Turn.AFTER_GAME. A game can be started as well as stopped.

Returns:
true if the game has finished, false otherwise.


Copyright © 2001-2005 Spellcast. All Rights Reserved.