Package | Description |
---|---|
cell2d | |
cell2d.space |
Modifier and Type | Class and Description |
---|---|
class |
BasicGameState<T extends CellGame>
A BasicGameState is a type of CellGameState that uses BasicThinkers, which
have no special capabilities.
|
class |
BasicThinker<T extends CellGame>
A BasicThinker is a type of Thinker that is used by BasicGameStates, which
have no special capabilities.
|
class |
CellGameState<T extends CellGame,U extends CellGameState<T,U,V>,V extends Thinker<T,U,V>>
A CellGameState 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 |
Thinker<T extends CellGame,U extends CellGameState<T,U,V>,V extends Thinker<T,U,V>>
A Thinker is a collection of methods that contributes to the mechanics of
the CellGameState to which it is assigned.
|
class |
ThinkerGroup<T extends CellGame,U extends CellGameState<T,U,V>,V extends Thinker<T,U,V>>
A ThinkerGroup is a group of Thinkers that can be iterated over.
|
Modifier and Type | Method and Description |
---|---|
static void |
CellGame.startGame(CellGame game)
Starts a CellGame.
|
Modifier and Type | Class and Description |
---|---|
class |
Area<T extends CellGame>
An Area is a pattern of SpaceObjects that can be generated and loaded by a
SpaceState on demand.
|
class |
CircleHitbox<T extends CellGame>
A CircleHitbox is a circular Hitbox with its origin at its center.
|
class |
CompositeHitbox<T extends CellGame>
A CompositeHitbox is a Hitbox that is composed of other Hitboxes whose
positions, flipped statuses, and angles of rotation are all relative to those
of the CompositeHitbox itself.
|
class |
Hitbox<T extends CellGame>
A Hitbox is a region of space that can be checked for intersection with
other regions.
|
class |
HUD<T extends CellGame>
An HUD (heads-up display) is a SpaceThinker that renders visuals in front
of those of the Viewport or SpaceState to which it is assigned.
|
class |
LineHitbox<T extends CellGame>
A LineHitbox is a Hitbox shaped like a line segment, with one endpoint
being its position and the other being the sum of its position and a vector
called its difference.
|
class |
PointHitbox<T extends CellGame>
A PointHitbox is a Hitbox that consists only of the point that is its
absolute position.
|
class |
PolygonHitbox<T extends CellGame>
A PolygonHitbox is a polygonal Hitbox defined by a List of vertices.
|
class |
RectangleHitbox<T extends CellGame>
A RectangleHitbox is a rectangular Hitbox with sides that remain
orthogonal regardless of its angle of rotation.
|
class |
SpaceLayer<T extends CellGame>
A SpaceLayer is a SpaceThinker that renders visuals either in front of or
behind those of the SpaceObjects in the SpaceState to which it is assigned.
|
class |
SpaceObject<T extends CellGame>
A SpaceObject is a physical object in a SpaceState's space.
|
class |
SpaceState<T extends CellGame>
A SpaceState is a CellGameState that handles gameplay in a continuous
two-dimensional space.
|
class |
SpaceThinker<T extends CellGame>
A SpaceThinker is the type of Thinker that is used by SpaceStates.
|
class |
ThinkerObject<T extends CellGame>
A ThinkerObject is a SpaceObject that acts like a SpaceThinker, possessing
timers, various actions in response to events, and the capacity to act like a
ThinkerGroup, even though it is not technically one.
|
class |
Viewport<T extends CellGame>
A Viewport is a SpaceThinker that 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 |
---|---|
static <T extends CellGame> |
Hitbox.overlap(Hitbox<T> hitbox1,
Hitbox<T> hitbox2)
Returns whether the two specified Hitboxes overlap.
|
static <T extends CellGame> |
SpaceObject.overlap(SpaceObject<T> object1,
SpaceObject<T> object2)
Returns whether the two specified SpaceObjects overlap.
|