Class CrystalService
java.lang.Object
com.deco2800.game.entities.factories.CrystalService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
recoverCrystalHealth
(Entity crystal) Recover crystal health at dawn, day, and duskstatic void
Triggers shaking effect of the in-game camerastatic void
triggerCrystal
(String texture) Spawns Crystal outside of Game Area classstatic void
Upgrades the level of the Crystal changes its texture and increases its maximum health
-
Constructor Details
-
CrystalService
public CrystalService()
-
-
Method Details
-
triggerCrystal
Spawns Crystal outside of Game Area class- Parameters:
texture
- path of texture for new Crystal Entity
-
upgradeCrystal
public static void upgradeCrystal()Upgrades the level of the Crystal changes its texture and increases its maximum health -
screenShake
public static void screenShake()Triggers shaking effect of the in-game camera -
recoverCrystalHealth
Recover crystal health at dawn, day, and dusk
-