org.dartra.textui
Class PlayDarts

java.lang.Object
  extended byorg.dartra.textui.PlayDarts

public class PlayDarts
extends java.lang.Object

Play a game of darts using the text UI. This class implements a stand-alone launcher for the text UI game runner.

Author:
Erwin Vervaet
See Also:
GameRunner

Field Summary
static java.lang.String DAO_FACTORY_CONFIG_KEY
          Key of the data access object (DAO) factory used for data persistence.
static java.lang.String DATA_SOURCE_CONFIG_KEY
          Key of the data source object used for data persistence.
static java.lang.String GAME_CONFIG_KEY
          Key of the game object that will be played in the configuration map.
 
Constructor Summary
PlayDarts()
           
 
Method Summary
static void main(java.lang.String[] args)
          Fire up the text UI as a stand-alone program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GAME_CONFIG_KEY

public static final java.lang.String GAME_CONFIG_KEY

Key of the game object that will be played in the configuration map.

See Also:
Constant Field Values

DATA_SOURCE_CONFIG_KEY

public static final java.lang.String DATA_SOURCE_CONFIG_KEY

Key of the data source object used for data persistence. This is an optional property. When not present, no persistence is done.

See Also:
Constant Field Values

DAO_FACTORY_CONFIG_KEY

public static final java.lang.String DAO_FACTORY_CONFIG_KEY

Key of the data access object (DAO) factory used for data persistence. This is an optional property. When not present, no persistence is done.

See Also:
Constant Field Values
Constructor Detail

PlayDarts

public PlayDarts()
Method Detail

main

public static void main(java.lang.String[] args)

Fire up the text UI as a stand-alone program.

A single command line argument is supported: the name of the configuration file to use. When not provided, this will default to "playdarts.bsh", read from the launch directory.