wyvern.lib.properties
Interface Drinkable

All Known Implementing Classes:
Potion

public interface Drinkable

This interface is for things you can drink, like potions.

Version:
1.0, Apr 28, 1998
Author:
Steve Yegge

Field Summary
static int DEFAULT_DRINK_DELAY
          This is the default amount of game time it takes to drink something, in milliseconds.
 
Method Summary
 void drink(Commandable agent)
          Tells the Drinkable to execute the drink.
 

Field Detail

DEFAULT_DRINK_DELAY

public static final int DEFAULT_DRINK_DELAY
This is the default amount of game time it takes to drink something, in milliseconds. The object can override this by setting an Integer "drink_delay" property on itself.

See Also:
Constant Field Values
Method Detail

drink

public void drink(Commandable agent)
Tells the Drinkable to execute the drink. The Drinkable can issue a message to the drinker, or execute a spell, or anything it likes.