mahjong
Class Main

java.lang.Object
  extended by mahjong.Main

public class Main
extends java.lang.Object

Main entry point to the mahjong game. Contains only static methods.


Field Summary
private static java.lang.String BOARDDEFAULT
          Default board layout.
private static java.lang.String BOARDDIR
          Name of board layout directory.
private static java.lang.String boardName
          Name of board layout file.
private static long seed
          Random seed, for repeatability.
private static java.lang.String tileDir
          Mutable directory where the individual tiles are found.
private static java.lang.String TILEDIR
          Directory where the individual tiles are found.
private static java.lang.String TILESET
          Name of actual tileset file.
private static java.lang.String tileSetFile
          Mutable name of tileset file.
 
Constructor Summary
Main()
           
 
Method Summary
static java.lang.String getTileDir()
          Getter for the tile set directory name.
static java.lang.String getTileSetFile()
          Getter for the the tile set file name.
static void help()
          Displays default usage flags.
static void main(java.lang.String[] args)
           
private static void parse(java.lang.String[] args)
          Method to parse argument array and set appropriate values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TILEDIR

private static final java.lang.String TILEDIR
Directory where the individual tiles are found.

See Also:
Constant Field Values

TILESET

private static final java.lang.String TILESET
Name of actual tileset file.

See Also:
Constant Field Values

BOARDDIR

private static final java.lang.String BOARDDIR
Name of board layout directory.

See Also:
Constant Field Values

BOARDDEFAULT

private static final java.lang.String BOARDDEFAULT
Default board layout.

See Also:
Constant Field Values

tileDir

private static java.lang.String tileDir
Mutable directory where the individual tiles are found.


tileSetFile

private static java.lang.String tileSetFile
Mutable name of tileset file.


seed

private static long seed
Random seed, for repeatability.


boardName

private static java.lang.String boardName
Name of board layout file.

Constructor Detail

Main

public Main()
Method Detail

main

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

help

public static void help()
Displays default usage flags.


parse

private static void parse(java.lang.String[] args)
Method to parse argument array and set appropriate values.

Parameters:
args - The argument array given to main.

getTileSetFile

public static java.lang.String getTileSetFile()
Getter for the the tile set file name.

Returns:
The name of the file containing the tile set description.

getTileDir

public static java.lang.String getTileDir()
Getter for the tile set directory name.

Returns:
The directory containing the tiles (ends in directory separator).