com.croftsoft.apps.mars.model.seri
Class SeriGame

java.lang.Object
  extended by com.croftsoft.apps.mars.model.seri.SeriGame
All Implemented Interfaces:
Game, GameAccessor, Serializable

public final class SeriGame
extends Object
implements Game, Serializable

A Serializable implementation of Game.

Since:
2003-04-03
Version:
2003-09-10
See Also:
Serialized Form
Author:
David Wallace Croft

Field Summary
static int DEFAULT_AMMO_DUMPS
           
static int DEFAULT_ATTEMPTS_MAX
           
static Color DEFAULT_ENEMY_COLOR
           
static Color DEFAULT_FRIEND_COLOR
           
static double DEFAULT_INITIAL_PLAYER_X
           
static double DEFAULT_INITIAL_PLAYER_Y
           
static double DEFAULT_OBSTACLE_RADIUS_MAX
           
static double DEFAULT_OBSTACLE_RADIUS_MIN
           
static int DEFAULT_OBSTACLES
           
static long DEFAULT_RANDOM_SEED
           
static double DEFAULT_TIME_DELTA_MAX
           
static double DEFAULT_TIME_FACTOR
           
static int DEFAULT_WORLD_HEIGHT
           
static int DEFAULT_WORLD_WIDTH
           
 
Constructor Summary
SeriGame()
           
SeriGame(double timeFactorDefault, long randomSeed, double initialPlayerX, double initialPlayerY, int ammoDumps, int obstacles, int worldWidth, int worldHeight, Color friendColor, Color enemyColor, double timeDeltaMax, int attemptsMax, double obstacleRadiusMax, double obstacleRadiusMin, SeriAmmoDump.Shared seriAmmoDumpShared)
           
 
Method Summary
 int getLevel()
           
 Iterator getPath()
           
 Tank getPlayerTank()
           
 TankAccessor getPlayerTankAccessor()
           
 double getTimeFactorDefault()
           
 Timekeeper getTimekeeper()
           
 WorldAccessor getWorldAccessor()
           
static void main(String[] args)
           
 void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TIME_FACTOR

public static final double DEFAULT_TIME_FACTOR
See Also:
Constant Field Values

DEFAULT_RANDOM_SEED

public static final long DEFAULT_RANDOM_SEED
See Also:
Constant Field Values

DEFAULT_INITIAL_PLAYER_X

public static final double DEFAULT_INITIAL_PLAYER_X
See Also:
Constant Field Values

DEFAULT_INITIAL_PLAYER_Y

public static final double DEFAULT_INITIAL_PLAYER_Y
See Also:
Constant Field Values

DEFAULT_AMMO_DUMPS

public static final int DEFAULT_AMMO_DUMPS
See Also:
Constant Field Values

DEFAULT_OBSTACLES

public static final int DEFAULT_OBSTACLES
See Also:
Constant Field Values

DEFAULT_WORLD_WIDTH

public static final int DEFAULT_WORLD_WIDTH
See Also:
Constant Field Values

DEFAULT_WORLD_HEIGHT

public static final int DEFAULT_WORLD_HEIGHT
See Also:
Constant Field Values

DEFAULT_FRIEND_COLOR

public static final Color DEFAULT_FRIEND_COLOR

DEFAULT_ENEMY_COLOR

public static final Color DEFAULT_ENEMY_COLOR

DEFAULT_TIME_DELTA_MAX

public static final double DEFAULT_TIME_DELTA_MAX
See Also:
Constant Field Values

DEFAULT_ATTEMPTS_MAX

public static final int DEFAULT_ATTEMPTS_MAX
See Also:
Constant Field Values

DEFAULT_OBSTACLE_RADIUS_MAX

public static final double DEFAULT_OBSTACLE_RADIUS_MAX
See Also:
Constant Field Values

DEFAULT_OBSTACLE_RADIUS_MIN

public static final double DEFAULT_OBSTACLE_RADIUS_MIN
See Also:
Constant Field Values
Constructor Detail

SeriGame

public SeriGame(double timeFactorDefault,
                long randomSeed,
                double initialPlayerX,
                double initialPlayerY,
                int ammoDumps,
                int obstacles,
                int worldWidth,
                int worldHeight,
                Color friendColor,
                Color enemyColor,
                double timeDeltaMax,
                int attemptsMax,
                double obstacleRadiusMax,
                double obstacleRadiusMin,
                SeriAmmoDump.Shared seriAmmoDumpShared)

SeriGame

public SeriGame()
Method Detail

main

public static void main(String[] args)

getPath

public Iterator getPath()
Specified by:
getPath in interface GameAccessor

getLevel

public int getLevel()
Specified by:
getLevel in interface GameAccessor

getPlayerTankAccessor

public TankAccessor getPlayerTankAccessor()
Specified by:
getPlayerTankAccessor in interface GameAccessor

getPlayerTank

public Tank getPlayerTank()
Specified by:
getPlayerTank in interface Game

getTimekeeper

public Timekeeper getTimekeeper()
Specified by:
getTimekeeper in interface Game

getWorldAccessor

public WorldAccessor getWorldAccessor()
Specified by:
getWorldAccessor in interface GameAccessor

getTimeFactorDefault

public double getTimeFactorDefault()
Specified by:
getTimeFactorDefault in interface Game

update

public void update()
Specified by:
update in interface Game

CroftSoft Javadoc

CroftSoft Apps Javadoc (2008-09-28 21:15:07)