T
- The subclass of CellGame that uses the SpaceStates that can load
this Areapublic abstract class Area<T extends CellGame>
extends java.lang.Object
An Area is a pattern of SpaceObjects that can be generated and loaded by a SpaceState on demand. Areas represent environments that can exist within a SpaceState's space. Areas are loaded about a specified origin point, and the positions of an Area's SpaceObjects are changed upon addition to their new SpaceState to be relative to this origin.
Constructor and Description |
---|
Area() |
Modifier and Type | Method and Description |
---|---|
abstract java.util.Collection<SpaceObject<T>> |
load(T game,
SpaceState<T> state)
Actions for this Area to take in order for the specified SpaceState to
load it.
|
public abstract java.util.Collection<SpaceObject<T>> load(T game, SpaceState<T> state)
game
- The CellGame of the SpaceState that is loading this Areastate
- The SpaceState that is loading this Area