Class SpeedBenchConfig
java.lang.Object
com.csse3200.game.entities.configs.benches.BenchConfig
com.csse3200.game.entities.configs.benches.SpeedBenchConfig
-
Field Summary
Fields inherited from class com.csse3200.game.entities.configs.benches.BenchConfig
benchType, price, promptText, texturePath
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.csse3200.game.entities.configs.benches.BenchConfig
getPrice, playUpgradeSound, subtractPrice
-
Constructor Details
-
SpeedBenchConfig
public SpeedBenchConfig()Initialise SpeedBenchConfig
-
-
Method Details
-
upgrade
public void upgrade(boolean playerNear, Entity player, com.badlogic.gdx.scenes.scene2d.ui.Label buyPrompt) Description copied from class:BenchConfig
Triggers the station's upgrade- Specified by:
upgrade
in classBenchConfig
- Parameters:
playerNear
- is the player nearplayer
- the player EntitybuyPrompt
- the buyPrompt for the station
-