|
|||||||||
| 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.
| Field Summary |
|---|
| 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.Environmental |
|---|
description, displayText, expirationDate, image, isGeneric, maxRange, minRange, miscTextFormat, name, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
|---|
getTickStatus, tick |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting |
|---|
affectCharState, affectCharStats, affectPhyStats |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.MsgListener |
|---|
executeMsg, okMessage |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Contingent |
|---|
amDestroyed, destroy, isSavable, setSavable |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, ID, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Modifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Affectable |
|---|
addEffect, addNonUninvokableEffect, basePhyStats, delEffect, effects, fetchEffect, fetchEffect, numEffects, phyStats, recoverPhyStats, setBasePhyStats |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Behavable |
|---|
addBehavior, addScript, behaviors, delBehavior, delScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scripts |
| 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 | ||||||||