Class CombatTerrainFactory

java.lang.Object
com.csse3200.game.areas.terrain.CombatTerrainFactory

public class CombatTerrainFactory extends Object
Factory for creating game terrains.
  • Constructor Details

    • CombatTerrainFactory

      public CombatTerrainFactory(CameraComponent cameraComponent)
      Create a terrain factory with Orthogonal orientation
      Parameters:
      cameraComponent - Camera to render terrains to. Must be ortographic.
    • CombatTerrainFactory

      public CombatTerrainFactory(CameraComponent cameraComponent, TerrainOrientation orientation)
      Create a terrain factory
      Parameters:
      cameraComponent - Camera to render terrains to. Must be orthographic.
      orientation - orientation to render terrain at
  • Method Details

    • getCameraComponent

      public CameraComponent getCameraComponent()
      Retrieve the component to which the camera is attached
      Returns:
      the camera component
    • createBackgroundTerrainAir

      public TerrainComponent createBackgroundTerrainAir(CombatTerrainFactory.TerrainType terrainType, com.badlogic.gdx.math.GridPoint2 playerPosition, com.badlogic.gdx.math.GridPoint2 screenSize)
    • createBackgroundTerrainLand

      public TerrainComponent createBackgroundTerrainLand(CombatTerrainFactory.TerrainType terrainType, com.badlogic.gdx.math.GridPoint2 playerPosition, com.badlogic.gdx.math.GridPoint2 screenSize)
    • createBackgroundTerrainWater

      public TerrainComponent createBackgroundTerrainWater(CombatTerrainFactory.TerrainType terrainType, com.badlogic.gdx.math.GridPoint2 playerPosition, com.badlogic.gdx.math.GridPoint2 screenSize)