Class Room
Object
Room
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a new item to this room.getAttribute
(String name) getDown()
getEast()
getId()
getImage()
Item[]
getNorth()
getSouth()
getTitle()
getUp()
getWest()
boolean
isAttribute
(String name) boolean
removeAttribute
(String name) void
removeItem
(Item item) Actually destroys an item from this room.void
sendMessage
(String message) void
sendMessage
(String targetname, String message) void
sendMessageExcl
(String targetname, String message) void
setAttribute
(String name, String value) void
setDescription
(String contents) void
void
void
void
setPicture
(String contents) void
void
void
-
Constructor Details
-
Room
-
-
Method Details
-
getId
-
getWest
-
getEast
-
getNorth
-
getSouth
-
getUp
-
getDown
-
setWest
-
setEast
-
setNorth
-
setSouth
-
setUp
-
setDown
-
getDescription
-
setDescription
-
getPicture
-
setPicture
-
getTitle
-
getImage
-
getAttribute
-
setAttribute
-
isAttribute
-
removeAttribute
-
sendMessage
-
sendMessage
-
sendMessageExcl
-
getItems
-
addItem
Adds a new item to this room. With new it is understood that the item was created with a call toItems.createItem(int)
, and is not yet allocated to a room, person or container.- Parameters:
item
- the new item to add.- Returns:
- the exact same item, or null if unable to comply.
-
removeItem
Actually destroys an item from this room.- Parameters:
item
- the new item to destroy.
-