Class TiledBrush
java.lang.Object
group24.escaperoom.ui.editorTools.EditorTool
group24.escaperoom.ui.editorTools.Brush
group24.escaperoom.ui.editorTools.ItemBrush
group24.escaperoom.ui.editorTools.TiledBrush
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Called when the user presses Escape while this is the active tooldraw(int x, int y) static intgetAdjancencies(Types.IntVector2 position, MapScreen screen, Item item, boolean recurse) getName()voidhandleDrag(float x, float y) booleanhandleTouchDown(float x, float y) voidHandle a touchup eventstatic voidupdateSurroundingTiles(Types.IntVector2 origin, MapScreen map, Item item) static voidupdateTiles(Types.IntVector2 position, MapScreen map, Item item, boolean recurse) Methods inherited from class group24.escaperoom.ui.editorTools.ItemBrush
getItem, isDrawing, matchingItemAt, placeAt, placedItemAt, setItemMethods inherited from class group24.escaperoom.ui.editorTools.EditorTool
getButtonStyle, getEditor
-
Constructor Details
-
TiledBrush
-
-
Method Details
-
handleTouchDown
public boolean handleTouchDown(float x, float y) - Overrides:
handleTouchDownin classItemBrush- Parameters:
x- touchdown coordy- touchdown coord- Returns:
- whether the brush is handling this event
-
handleTouchUp
public void handleTouchUp()Description copied from class:BrushHandle a touchup event- Overrides:
handleTouchUpin classItemBrush
-
handleDrag
public void handleDrag(float x, float y) - Overrides:
handleDragin classItemBrush- Parameters:
x- drag coordy- drag coord
-
updateSurroundingTiles
-
updateTiles
public static void updateTiles(Types.IntVector2 position, MapScreen map, Item item, boolean recurse) -
getAdjancencies
public static int getAdjancencies(Types.IntVector2 position, MapScreen screen, Item item, boolean recurse) -
cancel
public void cancel()Description copied from class:EditorToolCalled when the user presses Escape while this is the active tool -
getName
-
draw
-