Class WorldMapSymbols
java.lang.Object
zombie.worldMap.symbols.WorldMapSymbols
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float
final float
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(IWorldMapSymbolListener worldMapSymbolListener) void
addSymbol
(WorldMapBaseSymbol worldMapBaseSymbol) addText
(String text, boolean translated, UIFont font, float x, float y, float anchorX, float anchorY, float scale, float r, float g, float b, float a) addTexture
(String symbolID, float x, float y, float r, float g, float b, float a) addTexture
(String symbolID, float x, float y, float anchorX, float anchorY, float scale, float r, float g, float b, float a) addTranslatedText
(String text, UIFont font, float x, float y, float r, float g, float b, float a) addUntranslatedText
(String text, UIFont font, float x, float y, float r, float g, float b, float a) void
clear()
float
boolean
getSymbolByIndex
(int index) int
int
indexOf
(WorldMapBaseSymbol worldMapBaseSymbol) void
void
load
(ByteBuffer input, int WorldVersion) void
removeSymbol
(WorldMapBaseSymbol worldMapBaseSymbol) void
removeSymbolByIndex
(int index) void
render
(UIWorldMap ui) void
save
(ByteBuffer output)
-
Field Details
-
SAVEFILE_VERSION
public static final int SAVEFILE_VERSION- See Also:
-
MIN_VISIBLE_ZOOM
public final float MIN_VISIBLE_ZOOM- See Also:
-
COLLAPSED_RADIUS
public static final float COLLAPSED_RADIUS- See Also:
-
-
Constructor Details
-
WorldMapSymbols
public WorldMapSymbols()
-
-
Method Details
-
addTranslatedText
public WorldMapTextSymbol addTranslatedText(String text, UIFont font, float x, float y, float r, float g, float b, float a) -
addUntranslatedText
public WorldMapTextSymbol addUntranslatedText(String text, UIFont font, float x, float y, float r, float g, float b, float a) -
addText
public WorldMapTextSymbol addText(String text, boolean translated, UIFont font, float x, float y, float anchorX, float anchorY, float scale, float r, float g, float b, float a) -
addTexture
public WorldMapTextureSymbol addTexture(String symbolID, float x, float y, float r, float g, float b, float a) -
addTexture
public WorldMapTextureSymbol addTexture(String symbolID, float x, float y, float anchorX, float anchorY, float scale, float r, float g, float b, float a) -
addSymbol
-
indexOf
-
removeSymbol
-
removeSymbolByIndex
public void removeSymbolByIndex(int index) -
clear
public void clear() -
invalidateLayout
public void invalidateLayout() -
render
-
getSymbolCount
public int getSymbolCount() -
getSymbolByIndex
-
getMiniMapSymbols
public boolean getMiniMapSymbols() -
getLayoutWorldScale
public float getLayoutWorldScale() -
save
- Throws:
IOException
-
load
- Throws:
IOException
-
addListener
-