T
- The type of CellGame that uses the SpaceStates that can load this
AreaU
- The type of SpaceState that can load this Areapublic interface Area<T extends CellGame,U extends SpaceState<T,U,?>>
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.
SpaceObject
,
SpaceState
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<SpaceObject> |
load(T game,
U state)
Actions for this Area to take to in order for the specified SpaceState to
load it.
|
java.lang.Iterable<SpaceObject> load(T game, U state)
game
- The CellGame of the SpaceState that is loading this Areastate
- The SpaceState that is loading this Area