public class Minimap
extends java.lang.Object
Constructor and Description |
---|
Minimap(Controller controller,
Camera camera,
int outputX,
int outputY)
Create a minimap.
|
Modifier and Type | Method and Description |
---|---|
void |
buildMinimap()
Updates the minimap- Should only be done after changing the map.
|
void |
render(View view)
Renders the Minimap.
|
boolean |
toggleVisibility()
Toggle between visible and invisible.
|
public Minimap(Controller controller, Camera camera, int outputX, int outputY)
controller
- the controller wich should be representedcamera
- 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 buildMinimap()
public void render(View view)
view
- the view using this render methodpublic boolean toggleVisibility()