Class Game
java.lang.Object
Game
public class Game
- extends java.lang.Object
This class contains the main method used to run the game.
Constructor Summary |
Game()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Game
public Game()
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)