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. To render visuals, an HUD must be assigned to a Viewport or SpaceState through its setHUD() method. HUDs are intended to be used to display information about a SpaceState's space, rather than 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.
|
afterMovementActions, getThis
addedActions, frameActions, getActionPriority, getEffectiveTimeFactor, getGameState, getNewActionPriority, getNewGameState, getThinkerState, getThinkerStateDuration, getTimeFactor, getTimerValue, removedActions, setActionPriority, setGameState, setThinkerState, setThinkerStateDuration, setTimeFactor, setTimerValue, timeUnitActions
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