Package | Description |
---|---|
org.cell2d | |
org.cell2d.basic | |
org.cell2d.space | |
org.cell2d.space.basic | |
org.cell2d.space.map |
Modifier and Type | Interface and Description |
---|---|
interface |
Event<T extends CellGame,U extends GameState<T,U,?>>
An Event represents a sequence of actions that can be taken as part of the
mechanics of a GameState.
|
class |
EventGroup<T extends CellGame,U extends GameState<T,U,?>>
An EventGroup is an ordered group of Events.
|
class |
GameState<T extends CellGame,U extends GameState<T,U,V>,V extends SubThinker<T,U,V>>
A GameState represents one state that a CellGame can be in, such as the
main menu, the options menu, in the middle of a level, etc.
|
class |
SubThinker<T extends CellGame,U extends GameState<T,U,V>,V extends SubThinker<T,U,V>>
A SubThinker is a type of Thinker that contributes to the mechanics of
another Thinker to which it is assigned.
|
class |
Thinker<T extends CellGame,U extends GameState<T,U,V>,V extends SubThinker<T,U,V>>
A Thinker is a collection of methods that contributes to the mechanics of
a GameState to which it is assigned.
|
Modifier and Type | Method and Description |
---|---|
static void |
CellGame.startGame(CellGame game)
Starts a CellGame.
|
Constructor and Description |
---|
BasicState(CellGame game,
int id)
Constructs a BasicState of the specified CellGame with the specified ID.
|
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 |
---|---|
CellGame |
SpaceObject.getGame()
Returns the CellGame of the SpaceState to which this SpaceObject is
assigned, or null if it is not assigned to a SpaceState.
|
Modifier and Type | Method and Description |
---|---|
void |
BasicThinkerObject.addedActions(CellGame game,
BasicSpaceState state)
Actions for this BasicThinkerObject to take immediately after being added
to a new BasicSpaceState.
|
void |
BasicThinkerObject.addSubThinkerActions(CellGame game,
BasicSpaceState state,
BasicSpaceThinker subThinker)
Actions for this BasicThinkerObject to take immediately after adding a
BasicSpaceThinker to itself, before the added BasicSpaceThinker takes its
addedActions().
|
void |
BasicThinkerObject.beforeMovementActions(CellGame game,
BasicSpaceState state)
Actions for this BasicThinkerObject to take once each frame, after all
Thinkers have experienced all of their time units for that frame, but
before its BasicSpaceState moves its assigned MobileObjects.
|
void |
BasicThinkerObject.frameActions(CellGame game,
BasicSpaceState state)
Actions for this BasicThinkerObject to take once each frame after its
BasicSpaceState moves its assigned MobileObjects.
|
void |
BasicThinkerObject.removedActions(CellGame game,
BasicSpaceState state)
Actions for this BasicThinkerObject to take immediately before being
removed from its current BasicSpaceState.
|
void |
BasicThinkerObject.removeSubThinkerActions(CellGame game,
BasicSpaceState state,
BasicSpaceThinker subThinker)
Actions for this BasicThinkerObject to take immediately before removing a
BasicSpaceThinker from itself, after the soon-to-be-removed
BasicSpaceThinker takes its removedActions().
|
Constructor and Description |
---|
BasicSpaceState(CellGame game,
int id,
long cellWidth,
long cellHeight,
SpaceState.DrawMode drawMode)
Constructs a BasicSpaceState of the specified CellGame with the specified
ID.
|
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.
|