Class MapScene
java.lang.Object
studio.magemonkey.codex.mccore.gui.MapScene
Represents a collection of images with positions to keep track
of when drawing to a MapBuffer. This allows for less network
bandwith to be used while still keeping the incredible speed
of MapBuffer. Use this instead of drawing directly to a
MapBuffer to reduce network bandwidth used by map menus.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an object to the scenevoidUpdates the scene, getting the "dirty" boundsvoidclear()Clear the scene before moving onto a new menuRetrieves an object from the scene by key
-
Constructor Details
-
MapScene
public MapScene()
-
-
Method Details
-
add
Adds an object to the scene- Parameters:
key- access key for the objectobj- object to add to the scene
-
get
Retrieves an object from the scene by key- Parameters:
key- access key the object was added with- Returns:
- the scene object
-
clear
public void clear()Clear the scene before moving onto a new menu -
apply
Updates the scene, getting the "dirty" bounds
-