Class VirtualAnimal
java.lang.Object
zombie.characters.animals.VirtualAnimal
-
Field Summary
FieldsModifier and TypeFieldDescriptionintbooleanbooleandoubleintintintdoubledoubledoubleintfloatintintintdouble -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAnimalById(int animalID) voidforceEat()voidvoidvoidgetState()floatgetX()floatgetY()floatgetZ()booleanisEating()booleanbooleanbooleanbooleanvoidsetRemoved(boolean bRemoved) voidsetState(VirtualAnimalState state) voidsetX(float x) voidsetY(float y) voidsetZ(float z)
-
Field Details
-
nextRestTime
public double nextRestTime -
nextEatTime
public double nextEatTime -
id
public double id -
migrationGroup
-
speed
public float speed -
timeToEat
public int timeToEat -
timeToSleep
public int timeToSleep -
trackChance
public int trackChance -
poopChance
public int poopChance -
brokenTwigsChance
public int brokenTwigsChance -
herbGrazeChance
public int herbGrazeChance -
furChance
public int furChance -
flatHerbChance
public int flatHerbChance -
wakeTime
public double wakeTime -
eatStartTime
public double eatStartTime -
sleepPeriodStart
-
sleepPeriodEnd
-
eatPeriodStart
-
eatPeriodEnd
-
debugForceSleep
public boolean debugForceSleep -
debugForceEat
public boolean debugForceEat -
zone
-
-
Constructor Details
-
VirtualAnimal
public VirtualAnimal()
-
-
Method Details
-
getX
public float getX() -
setX
public void setX(float x) -
getY
public float getY() -
setY
public void setY(float y) -
getZ
public float getZ() -
setZ
public void setZ(float z) -
setState
-
getState
-
forceRest
public void forceRest() -
forceEat
public void forceEat() -
forceWakeUp
public void forceWakeUp() -
forceStopEat
public void forceStopEat() -
isEating
public boolean isEating() -
isSleeping
public boolean isSleeping() -
isTimeToSleep
public boolean isTimeToSleep() -
isTimeToEat
public boolean isTimeToEat() -
getNextSleepPeriod
-
getEndSleepPeriod
-
getEndEatPeriod
-
getNextEatPeriod
-
setRemoved
public void setRemoved(boolean bRemoved) -
isRemoved
public boolean isRemoved() -
findAnimalById
-