com.planet_ink.coffee_mud.core.interfaces
Interface Decayable

All Superinterfaces:
Affectable, Behavable, java.lang.Cloneable, CMModifiable, CMObject, java.lang.Comparable<CMObject>, Environmental, MsgListener, StatsAffecting, Tickable
All Known Subinterfaces:
Drink, Food, Pill, Potion
All Known Implementing Classes:
Cow, GenDrink, GenFood, GenFoodResource, GenFountain, GenLiquidResource, GenMultiPotion, GenPerfume, GenPill, GenPotion, GenSuperPill, GenTub, GenWater, IndoorShallowWater, IndoorUnderWater, IndoorWaterSurface, LifeFountain, OilFlask, Pan, Pot, Ration, SaltWaterSurface, SaltWaterThinSurface, ShallowWater, Spring, StdDrink, StdFood, StdPerfume, StdPill, StdPotion, StdTub, UnderSaltWater, UnderWater, Waterskin, WaterSurface, WaterThinSurface, Wineskin

public interface Decayable
extends Environmental

A Drinkable object containing its own liquid material type, and liquid capacity management.


Field Summary
 
Fields inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable
STATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_EMAIL, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MOB, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SPELL_AFFECT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET, TICKMASK_SOLITARY, TICKS_PER_RLMIN, TIME_MILIS_PER_MUDHOUR, TIME_TICK, TIME_TICK_DOUBLE
 
Method Summary
 long decayTime()
          The time, in milliseconds, when this will rot.
 void setDecayTime(long time)
          Sets the time, in milliseconds, when this will rot.
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental
amDestroyed, description, destroy, displayText, expirationDate, image, isGeneric, maxRange, minRange, miscTextFormat, name, Name, rawImage, sameAs, savable, 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.CMObject
copyOf, ID, initializeClass, newInstance
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Affectable
addEffect, addNonUninvokableEffect, baseEnvStats, delEffect, envStats, fetchEffect, fetchEffect, numEffects, recoverEnvStats, setBaseEnvStats
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting
affectCharState, affectCharStats, affectEnvStats
 
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.CMModifiable
getSaveStatIndex, getStat, getStatCodes, isStat, setStat
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Behavable
addBehavior, addScript, delBehavior, delScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts
 

Method Detail

decayTime

long decayTime()
The time, in milliseconds, when this will rot. 0=never

Returns:
the time in milliseconds when this will rot. 0=never
See Also:
setDecayTime(long)

setDecayTime

void setDecayTime(long time)
Sets the time, in milliseconds, when this will rot. 0=never

Parameters:
time - in milliseconds, when this will rot. 0=never
See Also:
decayTime()