Package com.csse3200.game.areas
Class SlotMachineArea
java.lang.Object
com.csse3200.game.areas.GameArea
com.csse3200.game.areas.LevelGameArea
com.csse3200.game.areas.SlotMachineArea
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,AreaAPI
,EnemySpawner
Represents a dedicated game area for the slot machine level. Handles loading and unloading of
slot machine-specific assets, sets up the user interface (HUD), and manages display elements
relevant to the slot machine gameplay.
-
Field Summary
Fields inherited from class com.csse3200.game.areas.GameArea
areaEntities, waveManager
-
Constructor Summary
ConstructorsConstructorDescriptionSlotMachineArea
(String levelKey) Creates a new SlotMachineArea with the level key. -
Method Summary
Methods inherited from class com.csse3200.game.areas.LevelGameArea
beginDrag, cancelDrag, checkGameOver, getGrid, getSelectedUnit, getTileSize, getWorldWidth, isCharacterSelected, removeUnit, resize, setGrid, setIsCharacterSelected, setScaling, setSelectedUnit, spawnProjectile, spawnRobot, spawnRobotOnDefence, spawnUnit, stageToWorld, worldToStage
Methods inherited from class com.csse3200.game.areas.GameArea
despawnEntity, getEntities, requestDespawn, setWaveManager, spawnEntity, spawnRobotAtFloat, spawnRobotAtFloat, spawnRobotAtTile, spawnRobotAtTile
-
Constructor Details
-
SlotMachineArea
Creates a new SlotMachineArea with the level key.- Parameters:
levelKey
- The level key for this slot machine area.
-
-
Method Details
-
create
public void create()Initializes the slot machine area by loading assets and adding the HUD.- Overrides:
create
in classLevelGameArea
-
dispose
public void dispose()Unloads slot machine assets and disposes of the area.
-