wyvern.lib.properties
Class TavernMenu.MenuItem

java.lang.Object
  extended bywyvern.lib.properties.TavernMenu.MenuItem
Enclosing class:
TavernMenu

public class TavernMenu.MenuItem
extends java.lang.Object

Encapsulates a single menu entry.


Constructor Summary
TavernMenu.MenuItem()
           
 
Method Summary
 java.lang.String getName()
          Returns the item name.
 int getPrice()
          Returns the price of the item.
 int getType()
          Returns the item type
 int getValue()
          Returns the item food value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TavernMenu.MenuItem

public TavernMenu.MenuItem()
Method Detail

getName

public java.lang.String getName()
Returns the item name.

Returns:
the name of the menu entry, such as "Mug of Ale".

getPrice

public int getPrice()
Returns the price of the item.

Returns:
how much the item costs (in silver)

getType

public int getType()
Returns the item type

Returns:
TavernMenu.FOOD or TavernMenu.DRINK

getValue

public int getValue()
Returns the item food value.

Returns:
the nutritional or alchoholic value