Package com.csse3200.game.areas.map
Class BenchGenerator
java.lang.Object
com.csse3200.game.areas.map.BenchGenerator
Utility class for creating benches
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBenchColumn(int x, int startY, int endY) Creates a column of benchescreateBenchRow(int startX, int endX, int y) Creates a row of benchessingleBench(int x, int y) Creates a single benchsingleBlocker(int x, int y) Creates a single 'blocker' benchsingleShadowBench(int x, int y) Creates a single shadow bench
-
Constructor Details
-
BenchGenerator
public BenchGenerator()
-
-
Method Details
-
createBenchColumn
Creates a column of benches- Parameters:
x- - x coordinatestartY- - start y coordinateendY- - end y coordinate- Returns:
- - returns an ArrayList of the benches created.
-
createBenchRow
Creates a row of benches- Parameters:
startX- - start x coordinateendX- - end x coordinatey- - y coordinate- Returns:
- - returns an ArrayList of the benches created.
-
singleBench
Creates a single bench- Parameters:
x- - x coordinatey- - y coordinate- Returns:
- - returns an ArrayList of the benches created.
-
singleShadowBench
Creates a single shadow bench- Parameters:
x- - x coordinatey- - y coordinate- Returns:
- - returns an ArrayList of the benches created.
-
singleBlocker
Creates a single 'blocker' bench- Parameters:
x- - x coordinatey- - y coordinate- Returns:
- - returns an ArrayList of the benches created.
-