Class Game

java.lang.Object
  extended by Game

public class Game
extends java.lang.Object

This class contains the main method used to run the game.


Field Summary
static double DEFAULT_FUEL_BURN_RATE
           
static double DEFAULT_INITIAL_FUEL
           
static double DEFAULT_INITIAL_MONEY
           
static int DEFAULT_INVENTORY_SIZE
           
static int MAX_CARGO_AMT
           
static double MAX_CARGO_PRICE
           
static double MAX_COST_FACTOR
           
static int MAX_INVENTORY_SIZE
           
static java.util.Random rand
           
static double ROTATION_FACTOR_DEGREES
           
static java.text.NumberFormat style
           
private static Universe universe
           
static double UNIVERSE_DENSITY
           
static int UNIVERSE_HEIGHT
           
static int UNIVERSE_WIDTH
           
 
Constructor Summary
Game()
           
 
Method Summary
static void advanceTurn()
           
static Universe getUniverse()
          Gets the universe for the game
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_INVENTORY_SIZE

public static final int DEFAULT_INVENTORY_SIZE
See Also:
Constant Field Values

MAX_INVENTORY_SIZE

public static final int MAX_INVENTORY_SIZE
See Also:
Constant Field Values

MAX_CARGO_AMT

public static final int MAX_CARGO_AMT
See Also:
Constant Field Values

MAX_CARGO_PRICE

public static final double MAX_CARGO_PRICE
See Also:
Constant Field Values

DEFAULT_INITIAL_FUEL

public static final double DEFAULT_INITIAL_FUEL
See Also:
Constant Field Values

DEFAULT_FUEL_BURN_RATE

public static final double DEFAULT_FUEL_BURN_RATE
See Also:
Constant Field Values

DEFAULT_INITIAL_MONEY

public static final double DEFAULT_INITIAL_MONEY
See Also:
Constant Field Values

UNIVERSE_HEIGHT

public static final int UNIVERSE_HEIGHT
See Also:
Constant Field Values

UNIVERSE_WIDTH

public static final int UNIVERSE_WIDTH
See Also:
Constant Field Values

UNIVERSE_DENSITY

public static final double UNIVERSE_DENSITY
See Also:
Constant Field Values

MAX_COST_FACTOR

public static final double MAX_COST_FACTOR
See Also:
Constant Field Values

ROTATION_FACTOR_DEGREES

public static final double ROTATION_FACTOR_DEGREES
See Also:
Constant Field Values

rand

public static java.util.Random rand

universe

private static Universe universe

style

public static java.text.NumberFormat style
Constructor Detail

Game

public Game()
Method Detail

getUniverse

public static Universe getUniverse()
Gets the universe for the game

Returns:
the universe for the game

advanceTurn

public static void advanceTurn()

main

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