Modifier and Type | Field and Description |
---|---|
static float |
HUNGRY |
static float |
STARVING |
Constructor and Description |
---|
Hunger() |
Modifier and Type | Method and Description |
---|---|
boolean |
act() |
boolean |
attachTo(Char target) |
int |
icon() |
boolean |
isStarving() |
void |
onDeath() |
void |
restoreFromBundle(Bundle bundle) |
void |
satisfy(float energy) |
void |
storeInBundle(Bundle bundle) |
java.lang.String |
toString() |
affect, affect, detach, detach, detach, prolong
add, addDelayed, all, clear, dontPack, findChar, fixTime, freeCell, init, next, occupyCell, process, processReaTime, remove
public static final float HUNGRY
public static final float STARVING
public void storeInBundle(Bundle bundle)
storeInBundle
in interface Bundlable
storeInBundle
in class Actor
public void restoreFromBundle(Bundle bundle)
restoreFromBundle
in interface Bundlable
restoreFromBundle
in class Actor
public void satisfy(float energy)
public boolean isStarving()
public java.lang.String toString()
toString
in class java.lang.Object