Class Quit

java.lang.Object
  extended by Command
      extended by Quit

public class Quit
extends Command

The Quit command of the game. It just ends the game.

Version:
28/1/2015
Author:
Olaf Chitil

Constructor Summary
Quit()
           
 
Method Summary
 String process(GameMain ui, Game game)
          Just tells the game to quit.
 
Methods inherited from class
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Quit

public Quit()
Method Detail

process

public String process(GameMain ui,
                      Game game)
Just tells the game to quit. Pre-condition: game must not be null.

Overrides:
process in class Command
game - The actual game.
Returns:
Message to the player.