public class FillUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> |
fill(MapModel<G,A,R> mapModel,
java.util.Collection<MapSquare<G,A,R>> selection,
InsertionMode<G,A,R> insertionMode,
java.util.List<? extends BaseObject<G,A,R,?>> gameObjects,
int density,
boolean noAdjacent)
Fills a set of squares in a map.
|
static <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> |
floodFill(MapModel<G,A,R> mapModel,
java.awt.Point start,
java.util.List<? extends BaseObject<G,A,R,?>> gameObjects,
InsertionModeSet<G,A,R> insertionModeSet)
Flood-fill the the map, starting at the cursor position.
|
public static <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> void fill(@NotNull MapModel<G,A,R> mapModel, @NotNull java.util.Collection<MapSquare<G,A,R>> selection, @NotNull InsertionMode<G,A,R> insertionMode, @NotNull java.util.List<? extends BaseObject<G,A,R,?>> gameObjects, int density, boolean noAdjacent)
mapModel
- the map to fillselection
- the squares to fillinsertionMode
- the insertion mode to usegameObjects
- the game objects to fill withdensity
- the fill density in percent; -1 to disablenoAdjacent
- whether squares are skipped if an adjacent squares is
not freepublic static <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> void floodFill(@NotNull MapModel<G,A,R> mapModel, @NotNull java.awt.Point start, @NotNull java.util.List<? extends BaseObject<G,A,R,?>> gameObjects, @NotNull InsertionModeSet<G,A,R> insertionModeSet)
mapModel
- the map to fillstart
- the starting locationgameObjects
- the game objects to fill withinsertionModeSet
- the insertion mode set to use