Package mindustry.maps.generators
Class BaseGenerator
java.lang.Object
mindustry.maps.generators.BaseGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(Tiles tiles, arc.struct.Seq<Tile> cores, Tile spawn, Team team, Sector sector, float difficulty) static BlockgetDifficultyWall(int size, float difficulty) voidstatic booleantryPlace(BaseRegistry.BasePart part, int x, int y, Team team, arc.math.Rand rand) Tries to place a base part at a certain location with a certain team.static booleantryPlace(BaseRegistry.BasePart part, int x, int y, Team team, arc.math.Rand random, arc.func.Intc2 posc) Tries to place a base part at a certain location with a certain team.
-
Constructor Details
-
BaseGenerator
public BaseGenerator()
-
-
Method Details
-
getDifficultyWall
-
generate
-
postGenerate
public void postGenerate() -
tryPlace
public static boolean tryPlace(BaseRegistry.BasePart part, int x, int y, Team team, arc.math.Rand rand) Tries to place a base part at a certain location with a certain team.- Returns:
- success state
-
tryPlace
public static boolean tryPlace(BaseRegistry.BasePart part, int x, int y, Team team, arc.math.Rand random, @Nullable arc.func.Intc2 posc) Tries to place a base part at a certain location with a certain team.- Returns:
- success state
-