Class BossRoom
java.lang.Object
rooms.Room
rooms.CombatRoom
rooms.BossRoom
Represents a boss room, which is a specialized type of CombatRoom.
This room is intended to contain a boss enemy. It inherits all behavior from CombatRoom, including enemy updates, collision detection, and door locking/unlocking mechanics.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class rooms.CombatRoom
render, spawnEnemy, updateMethods 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
-
BossRoom
Constructs a BossRoom with specified position, size, and player reference.- Parameters:
x- the x-coordinate of the top-left corner of the roomy- the y-coordinate of the top-left corner of the roomw- the width of the roomh- the height of the roomplayer- the player in this room
-