T
- The type of CellGame that uses the SpaceStates that this
SpaceLayer can be assigned topublic abstract class SpaceLayer<T extends CellGame> extends SpaceThinker<T>
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. SpaceLayers are intended to be used to display objects in the foreground or background of a SpaceState's space.
Constructor and Description |
---|
SpaceLayer() |
Modifier and Type | Method and Description |
---|---|
abstract void |
renderActions(T game,
SpaceState<T> state,
org.newdawn.slick.Graphics g,
long cx,
long cy,
int x,
int y,
int x1,
int y1,
int x2,
int y2)
Actions for this SpaceLayer to take to render its visuals through a
Viewport's camera.
|
beforeMovementActions, getThis
addedActions, addThinkerActions, addThinkerActions, frameActions, getActionPriority, getEffectiveTimeFactor, getGame, getGameState, getNewActionPriority, getNewThinkerGroup, getThinkerGroup, getTimeFactor, getTimerValue, removedActions, removeThinkerActions, removeThinkerActions, setActionPriority, setThinkerGroup, setTimeFactor, setTimerValue, timeUnitActions
addThinker, getNumThinkers, iteratingThroughThinkers, removeAllSubThinkers, removeAllThinkers, removeLineage, removeThinker, thinkerIterator, updateThinkerListActions
public abstract void renderActions(T game, SpaceState<T> state, org.newdawn.slick.Graphics g, long cx, long cy, int x, int y, int x1, int y1, int x2, int y2)
game
- This SpaceLayer's SpaceState's CellGamestate
- This SpaceLayer's SpaceStateg
- The Graphics context to which this SpaceLayer is rendering its
visuals this framecx
- The camera's center x-coordinatecy
- The camera's center y-coordinatex
- The x-coordinate in pixels on the Graphics context that
corresponds to the camera's center x-coordinatey
- The y-coordinate in pixels on the Graphics context that
corresponds to the camera's center y-coordinatex1
- The x-coordinate in pixels of the Viewport's left edge on the
Graphics contexty1
- The y-coordinate in pixels of the Viewport's top edge on the
Graphics contextx2
- The x-coordinate in pixels of the Viewport's right edge on the
Graphics contexty2
- The y-coordinate in pixels of the Viewport's bottom edge on the
Graphics context