inonit.domain.game.card.hearts.ai
Class Game

java.lang.Object
  |
  +--inonit.domain.game.card.hearts.ai.Game

public class Game
extends java.lang.Object

A game of Hearts. A Game object consists of game-related information and a set of Hands containing information about each hand played in the game.


Method Summary
 Intelligence.Game getConfiguration()
          Returns the Intelligence.Game object associated with this Game.
 Hand getCurrentHand()
          Returns the current Hand.
 Hand[] getPreviousHands()
          Returns the previous Hands played in this Game.
 Rules getRules()
          Returns an object representing the rules of this game.
 int[] getScore()
          Returns the current score of the Game.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConfiguration

public Intelligence.Game getConfiguration()
Returns the Intelligence.Game object associated with this Game.
Returns:
A Intelligence.Game object specifying information about this Game.

getRules

public Rules getRules()
Returns an object representing the rules of this game.
Returns:
A Rules object containing information about the rules of this Game.

getPreviousHands

public Hand[] getPreviousHands()
Returns the previous Hands played in this Game.
Returns:
An array containing Hand objects representing the previous hands played in this game.

getCurrentHand

public Hand getCurrentHand()
Returns the current Hand.
Returns:
the Hand in progress, or null if no Hand is in progress in this Game.

getScore

public int[] getScore()
Returns the current score of the Game.
Returns:
An int[] containing the current game score, with this AbstractIntelligence's score at index 0, the score of the Intelligence to this AbstractIntelligence's left at index 1, and so on.