Class CombatRoom
java.lang.Object
rooms.Room
rooms.CombatRoom
- Direct Known Subclasses:
BossRoom
A room where the player must defeat all enemies to unlock the door.
The top door remains locked until all enemies in the room are defeated.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCombatRoom(double x, double y, double w, double h, Player player) Constructs a CombatRoom with specified position, size, and player reference. -
Method Summary
Modifier and TypeMethodDescriptionvoidrender(javafx.scene.canvas.GraphicsContext gc) Renders the room and its entities.voidspawnEnemy(Enemy e) Adds an enemy to the room.voidupdate(double dt) Updates the room and its entities.Methods inherited from class rooms.Room
addDoor, addEnemy, drawFog, getBullets, getCharacters, getDoorAtPlayer, getEnemies, getFloorSprite, getHeight, getItems, getLasers, getWidth, isActive, renderEntities, setActive, spawnBullet, spawnItems, spawnLaser, updateEntities
-
Constructor Details
-
CombatRoom
Constructs a CombatRoom with specified position, size, and player reference.- Parameters:
x- top-left x-coordinate of the roomy- top-left y-coordinate of the roomw- width of the roomh- height of the roomplayer- the player in the room
-
-
Method Details
-
spawnEnemy
-
update
-
render
-