Package mindustry.editor
Class MapEditor
java.lang.Object
mindustry.editor.MapEditor
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
addTileOp
(long data) void
beginEdit
(int width, int height) void
void
boolean
canRedo()
boolean
canUndo()
void
clearOp()
void
drawBlocks
(int x, int y) void
drawBlocks
(int x, int y, boolean square, boolean forceOverlay, Boolf<Tile> tester) void
drawBlocks
(int x, int y, Boolf<Tile> tester) void
drawBlocksReplace
(int x, int y) void
drawCircle
(int x, int y, Cons<Tile> drawer) void
drawSquare
(int x, int y, Cons<Tile> drawer) void
flushOp()
int
height()
boolean
void
void
redo()
void
resize
(int width, int height, int shiftX, int shiftY) tile
(int x, int y) tiles()
void
undo()
void
int
width()
-
Field Details
-
brushSizes
public static final float[] brushSizes -
tags
-
renderer
-
brushSize
public float brushSize -
rotation
public int rotation -
drawBlock
-
drawTeam
-
-
Constructor Details
-
MapEditor
public MapEditor()
-
-
Method Details
-
isLoading
public boolean isLoading() -
beginEdit
public void beginEdit(int width, int height) -
beginEdit
-
beginEdit
-
updateRenderer
public void updateRenderer() -
load
-
createMap
-
tiles
-
tile
-
width
public int width() -
height
public int height() -
drawBlocksReplace
public void drawBlocksReplace(int x, int y) -
drawBlocks
public void drawBlocks(int x, int y) -
drawBlocks
-
drawBlocks
-
addCliffs
public void addCliffs() -
addFloorCliffs
public void addFloorCliffs() -
drawCircle
-
drawSquare
-
resize
public void resize(int width, int height, int shiftX, int shiftY) -
clearOp
public void clearOp() -
undo
public void undo() -
redo
public void redo() -
canUndo
public boolean canUndo() -
canRedo
public boolean canRedo() -
flushOp
public void flushOp() -
addTileOp
public void addTileOp(long data)
-