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()booleanisAttribute(String name) booleanremoveAttribute(String name) voidremoveItem(Item item) Actually destroys an item from this room.voidsendMessage(String message) voidsendMessage(String targetname, String message) voidsendMessageExcl(String targetname, String message) voidsetAttribute(String name, String value) voidsetDescription(String contents) voidvoidvoidvoidsetPicture(String contents) voidvoidvoid
-
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.
-