Class Room

Object
Room

public class Room extends Object
Author:
maartenl
  • Constructor Details

    • Room

      public Room(Room room)
  • Method Details

    • getId

      public Long getId()
    • getWest

      public Room getWest()
    • getEast

      public Room getEast()
    • getNorth

      public Room getNorth()
    • getSouth

      public Room getSouth()
    • getUp

      public Room getUp()
    • getDown

      public Room getDown()
    • setWest

      public void setWest(Room newroom)
    • setEast

      public void setEast(Room newroom)
    • setNorth

      public void setNorth(Room newroom)
    • setSouth

      public void setSouth(Room newroom)
    • setUp

      public void setUp(Room newroom)
    • setDown

      public void setDown(Room newroom)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String contents)
    • getPicture

      public String getPicture()
    • setPicture

      public void setPicture(String contents)
    • getTitle

      public String getTitle()
    • getImage

      public String getImage()
    • getAttribute

      public String getAttribute(String name)
    • setAttribute

      public void setAttribute(String name, String value)
    • isAttribute

      public boolean isAttribute(String name)
    • removeAttribute

      public boolean removeAttribute(String name)
    • sendMessage

      public void sendMessage(String targetname, String message)
    • sendMessage

      public void sendMessage(String message)
    • sendMessageExcl

      public void sendMessageExcl(String targetname, String message)
    • getItems

      public Item[] getItems(Long itemdefid)
    • addItem

      public Item addItem(Item item)
      Adds a new item to this room. With new it is understood that the item was created with a call to Items.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

      public void removeItem(Item item)
      Actually destroys an item from this room.
      Parameters:
      item - the new item to destroy.