com.planet_ink.coffee_mud.core.interfaces
Interface Decayable

All Superinterfaces:
java.lang.Cloneable, CMObject, java.lang.Comparable<CMObject>, Contingent, Environmental, Modifiable, MsgListener, StatsAffecting, Tickable
All Known Subinterfaces:
Drink, Food, Pill, Potion
All Known Implementing Classes:
Apple, Cow, GenCow, GenDrink, GenEmptyDrink, GenFood, GenFoodResource, GenFountain, GenLiquidResource, GenMultiPotion, GenPerfume, GenPill, GenPotion, GenSuperPill, GenTub, GenWater, GoatDoe, IndoorShallowWater, IndoorUnderWater, IndoorWaterSurface, IndoorWaterSurfaceColumn, IndoorWaterThinSurface, LifeFountain, Milkable, OilFlask, Pan, Pot, Ration, SaltWaterSurface, SaltWaterSurfaceColumn, SaltWaterThinSurface, ShallowWater, Spring, StdDrink, StdFood, StdPerfume, StdPill, StdPotion, StdTub, Swamp, UnderSaltWater, UnderWater, Waterskin, WaterSurface, WaterSurfaceColumn, 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_BEAMWEAPON, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET
 
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
description, displayText, expirationDate, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable
getTickStatus, name, 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
 

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()