Package org.progettoedids.rooms
Class BlockedRoom
java.lang.Object
org.progettoedids.rooms.Room
org.progettoedids.rooms.BlockedRoom
A subtype of Room that is always locked and that can't be unlocked.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.progettoedids.rooms.Room
addEntity, getCharSymbol, getEntities, getEntities, getEntity, removeEntity
-
Field Details
-
CHAR_SYMBOL
public static final char CHAR_SYMBOL- See Also:
-
-
Constructor Details
-
BlockedRoom
public BlockedRoom()
-
-
Method Details
-
isLocked
public boolean isLocked()Description copied from class:RoomReturns whether the Room is locked or not.A locked Room cannot be crossed by other Entity(ies). Depending on subtype implementation it might be possible the Room can be unlocked in some way.
-