public class Minimap extends Object implements Image
Usage:
Minimap(MapTile)
load()
automaticColor()
or automaticColor(Media)
loadPixelConfig(Media)
prepare()
MapTile
Modifier and Type | Method and Description |
---|---|
void |
automaticColor()
Perform an automatic color minimap resolution.
|
void |
automaticColor(Media config)
Perform an automatic color minimap resolution.
|
void |
dispose() |
int |
getHeight() |
ImageBuffer |
getSurface() |
int |
getWidth() |
double |
getX() |
double |
getY() |
boolean |
isLoaded() |
void |
load()
Load minimap surface from map tile size.
|
void |
loadPixelConfig(Media config)
Set the pixel configuration to use.
|
void |
prepare()
Fill minimap surface with tile color configuration.
|
void |
render(Graphic g) |
void |
setLocation(double x,
double y) |
void |
setLocation(Viewer viewer,
Localizable localizable) |
void |
setOrigin(Origin origin) |
public Minimap(MapTile map)
map
- The map reference.LionEngineException
- If null
argument.public void loadPixelConfig(Media config)
prepare()
to apply configuration.config
- The pixel configuration file.LionEngineException
- If null
argument.public void automaticColor()
prepare()
to apply configuration.public void automaticColor(Media config)
prepare()
to apply configuration.config
- The pixel configuration destination file.LionEngineException
- If null
argument.public void load()
public void prepare()
prepare
in interface Image
LionEngineException
- If surface has not been loaded (load()
may have not been called).public void render(Graphic g)
render
in interface Renderable
public void setLocation(double x, double y)
setLocation
in interface Image
public void setLocation(Viewer viewer, Localizable localizable)
setLocation
in interface Image
public double getX()
getX
in interface Localizable
public double getY()
getY
in interface Localizable
public ImageBuffer getSurface()
getSurface
in interface Image
Copyright © 2017 Byron 3D Games Studio. All rights reserved.