lab1
Class GameOverException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by lab1.GameOverException
All Implemented Interfaces:
java.io.Serializable

public class GameOverException
extends java.lang.Exception

Thrown by GameModel.doCommand at game termination. The exception contains information about how many points the player got.

See Also:
Serialized Form

Constructor Summary
GameOverException(int score)
          Constructs a new exception with the final score.
 
Method Summary
 int getScore()
          Get the score of the game
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GameOverException

public GameOverException(int score)
Constructs a new exception with the final score.

Parameters:
score - The final score of the game.
Method Detail

getScore

public int getScore()
Get the score of the game