Untitled
public text v1 · immutablepublic String getLongDescription()
{
// pointless i value for counter
int i = 0;
// pointless initialisation of the string y
String y = "";
// loop through the items list of the current room and output any item found
for (i=0; i < itemList.size();i++)
{
Item x = (Item)itemList.get(i);
y = x.getItem();
}
//return the rooms contents
return description + "\n" + getExitString() + y;
}