|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dualroids.Arena
The game arena that holds all the spatial objects.
Field Summary | |
private Asteroid[] |
asteroids
An array holding all the asteroids |
static double |
HEIGHT
Constant for the height of the arena. |
private long |
levelStarts
The starting time of the level. |
private SpaceShip[] |
spaceShips
An array holding all the spaceships |
static double |
WIDTH
Constant for the width of the arena. |
Constructor Summary | |
Arena(int levelNumber,
long timestamp)
Contructs an Arena including the
SpatialObject s in it for a new level. |
Method Summary | |
Asteroid[] |
getAsteroids()
Return an array holding references to all asteroids. |
long |
getLevelStarts()
Returns the starting time of the level. |
SpaceShip[] |
getSpaceShips()
Return an array holding references to all spaceships. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final double HEIGHT
SpaceArea.WINDOW_HEIGHT
.public static final double WIDTH
SpaceArea.WINDOW_WIDTH
.private final SpaceShip[] spaceShips
private final Asteroid[] asteroids
private final long levelStarts
Constructor Detail |
public Arena(int levelNumber, long timestamp)
Arena
including the
SpatialObject
s in it for a new level.levelNumber
- the level numbertimestamp
- the starting time of the levelMethod Detail |
public final SpaceShip[] getSpaceShips()
public final Asteroid[] getAsteroids()
public final long getLevelStarts()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Dualroids was written by Oskar Ojala, Yrjö Kari-Koskinen and Henri Sivonen