Class HangmanApp

java.lang.Object
  extended by HangmanApp

public class HangmanApp
extends java.lang.Object

This is the main class for the solitaire Hangman application. It handles processing the command line parameters, instantiating the User Interface and Game Logic classes, and then passes control to the Game Logic class.

Version:
3/26/10
Author:
jdalbey

Field Summary
private static Board aBoard
          reference to the Board instance
private static HangmanUI appUI
          reference to the UI instance
private static Controller controller
          reference to the Controller instance
private static Game game
          reference to the HangmanLogic instance
 
Constructor Summary
HangmanApp()
           
 
Method Summary
static void main(java.lang.String[] args)
          The entry point for this application.
private static void printUsage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

appUI

private static HangmanUI appUI
reference to the UI instance


aBoard

private static Board aBoard
reference to the Board instance


game

private static Game game
reference to the HangmanLogic instance


controller

private static Controller controller
reference to the Controller instance

Constructor Detail

HangmanApp

public HangmanApp()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
The entry point for this application. Process command line parameters. Display "usage" message if no parameters provided. Create the UI and the game logic and get them started.

Parameters:
args - [ui class] [-t]
Throws:
java.io.IOException

printUsage

private static void printUsage()