Package | Description |
---|---|
org.cell2d.space | |
org.cell2d.space.basic | |
org.cell2d.space.map |
Modifier and Type | Interface and Description |
---|---|
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.
|
class |
SpaceState<T extends CellGame,U extends SpaceState<T,U,V>,V extends SpaceThinker<T,U,V>>
A SpaceState is a type of GameState that handles gameplay in a continuous
two-dimensional space.
|
class |
SpaceThinker<T extends CellGame,U extends SpaceState<T,U,V>,V extends SpaceThinker<T,U,V>>
A SpaceThinker is the type of SubThinker that is used by SpaceStates.
|
class |
ThinkerObject<T extends CellGame,U extends SpaceState<T,U,V>,V extends SpaceThinker<T,U,V>>
A ThinkerObject is a MobileObject that mimics a type of SpaceThinker by
permanently assigning to itself a SpaceThinker of that type.
|
class |
Viewport<T extends CellGame,U extends SpaceState<T,U,?>>
A Viewport represents a rectangular region of the screen through which the
space of the SpaceState to which it is assigned can be viewed.
|
Modifier and Type | Method and Description |
---|---|
SpaceState |
Hitbox.getGameState()
Returns the SpaceState of the SpaceObject that is using this Hitbox, or
null if either the SpaceObject is not assigned to a SpaceState or this
Hitbox is not being used by a SpaceObject.
|
SpaceState |
SpaceObject.getGameState()
Returns the SpaceState to which this SpaceObject is assigned, or null if
it is not assigned to one.
|
SpaceState |
SpaceObject.getNewGameState()
Returns the SpaceState to which this SpaceObject is about to be assigned,
but has not yet been due to one or more of the object lists involved
being iterated over.
|
Modifier and Type | Method and Description |
---|---|
void |
SpaceObject.setGameState(SpaceState state)
Sets the SpaceState to which this SpaceObject is assigned.
|
void |
MobileObject.setGameState(SpaceState state,
boolean bringFollowers)
Sets the SpaceState to which this MobileObject is currently assigned.
|
Modifier and Type | Class and Description |
---|---|
class |
BasicSpaceState
A BasicSpaceState is a type of SpaceState that uses BasicSpaceThinkers,
which have no special capabilities, and treats its CellGame as a basic
CellGame.
|
Modifier and Type | Class and Description |
---|---|
class |
TiledArea<T extends CellGame,U extends SpaceState<T,U,?>>
The TiledArea class, along with the TiledConverter class, allow Cell2D
games to incorporate information from files created with the map editor
Tiled.
|