Class ObstacleFactory

java.lang.Object
com.csse3200.game.entities.factories.ObstacleFactory

public class ObstacleFactory extends Object
Factory to create obstacle entities.

Each obstacle entity type should have a creation method that returns a corresponding entity.

  • Method Details

    • createWall

      public static Entity createWall()
      Creates an invisible physics wall.
      Returns:
      Wall entity of given width and height
    • spawnBorderTile

      public static Entity spawnBorderTile()
    • spawnBorderTileVertical

      public static Entity spawnBorderTileVertical()
    • wall

      public static Entity wall()
    • door

      public static Entity door(String s)