|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Drink
A Drinkable object containing its own liquid material type, and liquid capacity management.
| Method Summary | |
|---|---|
int |
amountTakenToFillMe(Drink theSource)
Given the liquid source, the amount of liquid which would need to be taken from the source liquid source to fill up THIS liquid source. |
boolean |
containsDrink()
Whether this liquid container still contains any liquid. |
boolean |
disappearsAfterDrinking()
Settable only internally, this method returns whether this entire object is destroyed immediately after it is drank from -- like a potion. |
int |
liquidHeld()
The total amount of liquid possible to be contained in this liquid container. |
int |
liquidRemaining()
The amount of liquid remaining in this liquid container. |
int |
liquidType()
The material type of the liquid in this container. |
void |
setLiquidHeld(int amount)
Sets the total amount of liquid possible to be contained in this liquid container. |
void |
setLiquidRemaining(int amount)
Sets the amount of liquid remaining in this liquid container. |
void |
setLiquidType(int newLiquidType)
Sets the material type of the liquid in this container. |
void |
setThirstQuenched(int amount)
Set the amount of thirst points quenched every time this item is drank from. |
int |
thirstQuenched()
The amount of thirst points quenched every time this item is drank from. |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Decayable |
|---|
decayTime, setDecayTime |
| Method Detail |
|---|
int thirstQuenched()
CharStateint liquidHeld()
int liquidRemaining()
liquidHeld()int liquidType()
RawMaterialvoid setLiquidType(int newLiquidType)
newLiquidType - the type of liquid contained hereinRawMaterialvoid setThirstQuenched(int amount)
amount - of thirst quenchedCharStatevoid setLiquidHeld(int amount)
amount - total liquid contained herein.void setLiquidRemaining(int amount)
amount - amount of liquid remaining in this liquid container.setLiquidHeld(int)boolean containsDrink()
boolean disappearsAfterDrinking()
int amountTakenToFillMe(Drink theSource)
theSource - the liquid source to fill up from
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||