Class BenchGenerator

java.lang.Object
com.csse3200.game.areas.map.BenchGenerator

public class BenchGenerator extends Object
Utility class for creating benches
  • Constructor Details

    • BenchGenerator

      public BenchGenerator()
  • Method Details

    • createBenchColumn

      public static ArrayList<Bench> createBenchColumn(int x, int startY, int endY)
      Creates a column of benches
      Parameters:
      x - - x coordinate
      startY - - start y coordinate
      endY - - end y coordinate
      Returns:
      - returns an ArrayList of the benches created.
    • createBenchRow

      public static ArrayList<Bench> createBenchRow(int startX, int endX, int y)
      Creates a row of benches
      Parameters:
      startX - - start x coordinate
      endX - - end x coordinate
      y - - y coordinate
      Returns:
      - returns an ArrayList of the benches created.
    • singleBench

      public static ArrayList<Bench> singleBench(int x, int y)
      Creates a single bench
      Parameters:
      x - - x coordinate
      y - - y coordinate
      Returns:
      - returns an ArrayList of the benches created.
    • singleShadowBench

      public static ArrayList<Bench> singleShadowBench(int x, int y)
      Creates a single shadow bench
      Parameters:
      x - - x coordinate
      y - - y coordinate
      Returns:
      - returns an ArrayList of the benches created.
    • singleBlocker

      public static ArrayList<Bench> singleBlocker(int x, int y)
      Creates a single 'blocker' bench
      Parameters:
      x - - x coordinate
      y - - y coordinate
      Returns:
      - returns an ArrayList of the benches created.