T
- The type of CellGame that uses the SpaceStates that this HUD can
be assigned topublic abstract class HUD<T extends CellGame> extends SpaceThinker<T>
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. HUDs are intended to be used to display information about a SpaceState's space, as opposed to displaying physical objects in it.
Constructor and Description |
---|
HUD() |
Modifier and Type | Method and Description |
---|---|
abstract void |
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.
|
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, int x1, int y1, int x2, int y2)
game
- This HUD's SpaceState's CellGamestate
- This HUD's SpaceStateg
- The Graphics context to which this HUD is rendering its visuals
this framex1
- The x-coordinate in pixels of this HUD's rendering region's
left edge on the Graphics contexty1
- The y-coordinate in pixels of this HUD's rendering region's
top edge on the Graphics contextx2
- The x-coordinate in pixels of this HUD's rendering region's
right edge on the Graphics contexty2
- The y-coordinate in pixels of this HUD's rendering region's
bottom edge on the Graphics context