public class Minimap
extends java.lang.Object
Constructor and Description |
---|
Minimap(Camera camera,
int outputX,
int outputY)
Create a minimap.
|
Modifier and Type | Method and Description |
---|---|
void |
buildMinimap(GameView view)
Updates the minimap- Should only be done after changing the map.
|
boolean |
isNeedingRebuild() |
void |
needsRebuild() |
void |
render(GameView view)
Renders the Minimap.
|
void |
setTrackedEnt(java.util.ArrayList<AbstractEntity> trackedEnt) |
boolean |
toggleVisibility()
Toggle between visible and invisible.
|
public Minimap(Camera camera, int outputX, int outputY)
camera
- the camera wich should be represented on the minimapoutputX
- the output-position of the minimap (distance to left)outputY
- the output-position of the minimap (distance from bottom)public void setTrackedEnt(java.util.ArrayList<AbstractEntity> trackedEnt)
trackedEnt
- public void buildMinimap(GameView view)
view
- public void render(GameView view)
view
- the view using this render methodpublic boolean toggleVisibility()
public boolean isNeedingRebuild()
public void needsRebuild()