Class StoreRoom
java.lang.Object
rooms.Room
rooms.StoreRoom
Represents a store room where the player can purchase items.
This room contains multiple MysteryBox items, each with a fixed cost.
Players can collect these items if they have enough coins.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class rooms.Room
addDoor, addEnemy, drawFog, getBullets, getCharacters, getDoorAtPlayer, getEnemies, getFloorSprite, getHeight, getItems, getLasers, getWidth, isActive, render, renderEntities, setActive, spawnBullet, spawnItems, spawnLaser, update, updateEntities
-
Field Details
-
ITEMCOST
private static final int ITEMCOST- See Also:
-
-
Constructor Details
-
StoreRoom
Constructs a StoreRoom with specified position, size, and player reference.Spawns three MysteryBox items in fixed positions within the room.
- 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
-