Class BenchConfig

java.lang.Object
com.csse3200.game.entities.configs.benches.BenchConfig
Direct Known Subclasses:
ComputerBenchConfig, HealthBenchConfig, SpeedBenchConfig

public abstract class BenchConfig extends Object
  • Field Details

    • benchType

      public ItemTypes benchType
    • texturePath

      public String texturePath
    • promptText

      public String promptText
    • price

      public int price
  • Constructor Details

    • BenchConfig

      public BenchConfig()
  • Method Details

    • subtractPrice

      public void subtractPrice(Entity player)
      Subtracts the price of the station from the player
      Parameters:
      player - the player
    • getPrice

      public int getPrice()
      Gets the price of the station
      Returns:
      the price of the station
    • playUpgradeSound

      public void playUpgradeSound()
      Plays the upgrade sound
    • upgrade

      public abstract void upgrade(boolean playerNear, Entity player, com.badlogic.gdx.scenes.scene2d.ui.Label buyPrompt)
      Triggers the station's upgrade
      Parameters:
      playerNear - is the player near
      player - the player Entity
      buyPrompt - the buyPrompt for the station