Package | Description |
---|---|
cell2d.space |
Modifier and Type | Method and Description |
---|---|
SpaceState<T> |
Hitbox.getGameState()
Returns the SpaceState of the SpaceObject that is currently 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<T> |
SpaceObject.getGameState()
Returns the SpaceState to which this SpaceObject is currently assigned,
or null if it is assigned to none.
|
SpaceState<T> |
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.
|
SpaceState<T> |
SpaceState.getThis() |
Modifier and Type | Method and Description |
---|---|
void |
ThinkerObject.addedActions(T game,
SpaceState<T> state)
Actions for this ThinkerObject to take immediately after being added to a
new SpaceState.
|
void |
Viewport.addedActions(T game,
SpaceState<T> levelState) |
void |
SpaceThinker.afterMovementActions(T game,
SpaceState<T> state)
Actions for this SpaceThinker to take once every frame, after its
SpaceState moves its assigned ThinkerObjects.
|
void |
SpaceThinkerState.afterMovementActions(T game,
SpaceState<T> state)
Actions for this SpaceThinkerState to take once every frame, immediately
before its SpaceThinker takes its own afterMovementActions().
|
void |
ThinkerObject.afterMovementActions(T game,
SpaceState<T> state)
Actions for this ThinkerObject to take once every frame, after its
SpaceState moves its assigned ThinkerObjects.
|
void |
ThinkerObject.frameActions(T game,
SpaceState<T> state)
Actions for this ThinkerObject to take once every frame, after
SpaceThinkers take their timeUnitActions() but before its SpaceState
takes its own frameActions().
|
abstract java.util.Collection<SpaceObject<T>> |
Area.load(T game,
SpaceState<T> levelState)
Actions for this Area to take in order for the specified SpaceState to
load it.
|
void |
ThinkerObject.removedActions(T game,
SpaceState<T> state)
Actions for this ThinkerObject to take immediately before being removed
from its SpaceState.
|
void |
Viewport.removedActions(T game,
SpaceState<T> levelState) |
abstract void |
HUD.renderActions(T game,
SpaceState<T> state,
org.newdawn.slick.Graphics g,
int x1,
int y1,
int x2,
int y2)
Actions for this HUD to take to render its visuals.
|
abstract void |
SpaceLayer.renderActions(T game,
SpaceState<T> state,
org.newdawn.slick.Graphics g,
long x,
long y,
int x1,
int y1,
int x2,
int y2)
Actions for this SpaceLayer to take to render its visuals through a
Viewport's camera.
|
void |
SpaceObject.setGameState(SpaceState<T> state)
Sets the SpaceState to which this SpaceObject is currently assigned.
|
void |
ThinkerObject.setGameState(SpaceState<T> state,
boolean bringFollowers)
Sets the SpaceState to which this ThinkerObject is currently assigned.
|
void |
ThinkerObject.timeUnitActions(T game,
SpaceState<T> state)
Actions for this ThinkerObject to take once every time unit, after
AnimationInstances update their indices but before SpaceThinkers take
their frameActions().
|
Modifier and Type | Method and Description |
---|---|
int |
ThinkerObject.getTimerValue(TimedEvent<SpaceState<T>> timedEvent)
Returns the current value of this ThinkerObject's timer for the specified
TimedEvent.
|
void |
ThinkerObject.setTimerValue(TimedEvent<SpaceState<T>> timedEvent,
int value)
Sets the value of this ThinkerObject's timer for the specified TimedEvent
to the specified value.
|