Class Quit
java.lang.Object
Command
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()
|
Methods inherited from class |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Quit
public Quit()
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.