Class IsoAnimal

  • Field Details

    • DISPLAY_EXTRA_VALUES

      public static Boolean DISPLAY_EXTRA_VALUES
    • tempVector2

      public static final Vector2 tempVector2
    • animalID

      public int animalID
    • itemID

      public int itemID
    • spottedChr

      public IsoMovingObject spottedChr
    • attackedBy

      public IsoGameCharacter attackedBy
    • attackedTimer

      public long attackedTimer
    • attachBackToMother

      public int attachBackToMother
    • timeSinceLastUpdate

      public long timeSinceLastUpdate
    • smallEnclosure

      public boolean smallEnclosure
    • adef

      public AnimalDefinitions adef
    • mother

      public IsoAnimal mother
    • motherID

      public int motherID
    • searchRadius

      public int searchRadius
    • eatFromTrough

      public IsoFeedingTrough eatFromTrough
    • eatFromGround

      public IsoWorldInventoryObject eatFromGround
    • drinkFromTrough

      public IsoFeedingTrough drinkFromTrough
    • drinkFromRiver

      public IsoGridSquare drinkFromRiver
    • drinkFromPuddle

      public IsoGridSquare drinkFromPuddle
    • hutch

      public IsoHutch hutch
    • fullGenome

      public HashMap<String,AnimalGene> fullGenome
    • atkTarget

      public IsoGameCharacter atkTarget
    • thumpTarget

      public IsoObject thumpTarget
    • fightingOpponent

      public IsoGameCharacter fightingOpponent
    • soundSourceTarget

      public Object soundSourceTarget
    • stressLevel

      public float stressLevel
    • eggTimerInHutch

      public int eggTimerInHutch
    • nestBox

      public int nestBox
    • playerAcceptanceList

      public HashMap<Short,Float> playerAcceptanceList
    • heldBy

      public IsoPlayer heldBy
    • luredBy

      public IsoPlayer luredBy
    • walkToCharLuring

      public boolean walkToCharLuring
    • geneticDisorder

      public ArrayList<String> geneticDisorder
    • dZone

      public DesignationZoneAnimal dZone
    • previousDZone

      public DesignationZoneAnimal previousDZone
    • connectedDZone

      public ArrayList<DesignationZoneAnimal> connectedDZone
    • movingToFood

      public InventoryItem movingToFood
    • movingToFoodTimer

      public float movingToFoodTimer
    • ignoredTrough

      public ArrayList<IsoFeedingTrough> ignoredTrough
    • attachBackToMotherTimer

      public float attachBackToMotherTimer
    • virtualID

      public double virtualID
    • migrationGroup

      public String migrationGroup
    • wild

      public boolean wild
    • alerted

      public boolean alerted
    • alertedChr

      public IsoMovingObject alertedChr
    • fromMeta

      public boolean fromMeta
    • followingWall

      public boolean followingWall
    • shouldFollowWall

      public boolean shouldFollowWall
    • attachBackToHookX

      public int attachBackToHookX
    • attachBackToHookY

      public int attachBackToHookY
    • attachBackToHookZ

      public int attachBackToHookZ
  • Constructor Details

    • IsoAnimal

      public IsoAnimal(IsoCell isoCell)
    • IsoAnimal

      public IsoAnimal(IsoCell isoCell, int int0, int int1, int int2, String string0, String string1)
    • IsoAnimal

      public IsoAnimal(IsoCell isoCell, int int0, int int1, int int2, String string0, String string1, boolean boolean0)
    • IsoAnimal

      public IsoAnimal(IsoCell isoCell, int int0, int int1, int int2, String string, AnimalBreed animalBreed)
    • IsoAnimal

      public IsoAnimal(IsoCell isoCell, int int0, int int1, int int2, String string, AnimalBreed animalBreed, boolean boolean0)
  • Method Details

    • checkForChickenpocalypse

      public boolean checkForChickenpocalypse()
    • getObjectName

      public String getObjectName()
      Overrides:
      getObjectName in class IsoPlayer
    • getAnimalVisual

      public AnimalVisual getAnimalVisual()
      Specified by:
      getAnimalVisual in interface IAnimalVisual
      Overrides:
      getAnimalVisual in class IsoPlayer
    • addToWorld

      public void addToWorld()
      Overrides:
      addToWorld in class IsoObject
    • GetAnimSetName

      public String GetAnimSetName()
      Specified by:
      GetAnimSetName in interface IAnimatable
      Overrides:
      GetAnimSetName in class IsoPlayer
    • playSoundDebug

      public void playSoundDebug()
    • update

      public void update()
      Overrides:
      update in class IsoPlayer
    • test

      public void test()
    • testCollideWithVehicles

      public boolean testCollideWithVehicles(BaseVehicle baseVehicle)
    • applyDamageFromVehicle

      public void applyDamageFromVehicle(float float0, float float1)
    • Hit

      public float Hit(BaseVehicle var1, float float1, boolean var3, Vector2 vector2)
    • onAnimPlayerCreated

      protected void onAnimPlayerCreated(AnimationPlayer animationPlayer)
      Overrides:
      onAnimPlayerCreated in class IsoPlayer
    • getPetTimer

      public float getPetTimer()
    • getRandomSquareInZone

      public IsoGridSquare getRandomSquareInZone()
    • stopAllMovementNow

      public void stopAllMovementNow()
    • cancelLuring

      public void cancelLuring()
    • updateStress

      public void updateStress()
    • respondToSound

      public void respondToSound()
    • calcDamage

      public float calcDamage()
    • HitByAnimal

      public void HitByAnimal(IsoAnimal isoAnimal0, boolean boolean0)
    • initializeStates

      public void initializeStates()
    • spotted

      public void spotted(IsoMovingObject isoMovingObject, boolean boolean0, float float0)
    • drawRope

      public void drawRope(IsoGameCharacter isoGameCharacter)
    • render

      public void render(float float0, float float1, float float2, ColorInfo colorInfo, boolean boolean0, boolean boolean1, Shader shader)
      Overrides:
      render in class IsoPlayer
    • renderlast

      public void renderlast()
      Overrides:
      renderlast in class IsoPlayer
    • drawDirectionLine

      public void drawDirectionLine(Vector2 vector2, float float1, float float7, float float8, float float9)
      Overrides:
      drawDirectionLine in class IsoGameCharacter
    • renderShadow

      public void renderShadow(float float5, float float6, float float7)
      Overrides:
      renderShadow in class IsoGameCharacter
    • getBehavior

      public BaseAnimalBehavior getBehavior()
    • checkAlphaAndTargetAlpha

      public void checkAlphaAndTargetAlpha(IsoPlayer isoPlayer)
    • shouldDoInventory

      public boolean shouldDoInventory()
      Overrides:
      shouldDoInventory in class IsoPlayer
    • shouldBecomeZombieAfterDeath

      public boolean shouldBecomeZombieAfterDeath()
      Overrides:
      shouldBecomeZombieAfterDeath in class IsoGameCharacter
    • becomeCorpse

      public void becomeCorpse()
      Overrides:
      becomeCorpse in class IsoPlayer
    • OnDeath

      public void OnDeath()
      Overrides:
      OnDeath in class IsoPlayer
    • hitConsequences

      public void hitConsequences(HandWeapon var1, IsoGameCharacter isoGameCharacter, boolean boolean0, float float0, boolean var5)
      Overrides:
      hitConsequences in class IsoPlayer
    • setHealth

      public void setHealth(float float0)
      Specified by:
      setHealth in interface ILuaGameCharacterDamage
      Overrides:
      setHealth in class IsoGameCharacter
    • killed

      public void killed(IsoPlayer isoPlayer)
    • removeFromWorld

      public void removeFromWorld()
      Overrides:
      removeFromWorld in class IsoPlayer
    • getData

      public AnimalData getData()
    • save

      public void save(ByteBuffer byteBuffer, boolean boolean0) throws IOException
      Overrides:
      save in class IsoPlayer
      Throws:
      IOException
    • save

      public void save(ByteBuffer byteBuffer, boolean boolean1, boolean boolean0) throws IOException
      Throws:
      IOException
    • load

      public void load(ByteBuffer byteBuffer, int int0, boolean boolean0) throws IOException
      Overrides:
      load in class IsoPlayer
      Throws:
      IOException
    • init

      public void init(AnimalBreed animalBreed)
    • canGoThere

      public boolean canGoThere(IsoGridSquare isoGridSquare)
    • getAnimalType

      public String getAnimalType()
      Specified by:
      getAnimalType in interface IAnimalVisual
      Overrides:
      getAnimalType in class IsoPlayer
    • getAnimalSize

      public float getAnimalSize()
      Specified by:
      getAnimalSize in interface IAnimalVisual
      Overrides:
      getAnimalSize in class IsoPlayer
    • setAgeDebug

      public void setAgeDebug(int int0)
    • haveEnoughMilkToFeedFrom

      public boolean haveEnoughMilkToFeedFrom()
    • addBaby

      public IsoAnimal addBaby()
    • unloaded

      public void unloaded()
    • updateLastTimeSinceUpdate

      public void updateLastTimeSinceUpdate()
    • debugAgeAway

      public void debugAgeAway(int int0)
    • updateStatsAway

      public void updateStatsAway(int int2)
    • checkKilledByMetaPredator

      public boolean checkKilledByMetaPredator(int int0)
    • isBaby

      public boolean isBaby()
    • shearAnimal

      public boolean shearAnimal(IsoGameCharacter isoGameCharacter, InventoryItem inventoryItem0)
    • getMilkType

      public String getMilkType()
    • addDebugBucketOfMilk

      public InventoryItem addDebugBucketOfMilk(IsoGameCharacter var1)
    • milkAnimal

      public InventoryItem milkAnimal(IsoGameCharacter isoGameCharacter, InventoryItem inventoryItem)
    • setMaxSizeDebug

      public void setMaxSizeDebug()
    • addEgg

      public boolean addEgg(boolean boolean0)
    • createEgg

      public Food createEgg()
    • randomizeAge

      public void randomizeAge()
    • isAnimalMoving

      public boolean isAnimalMoving()
    • isGeriatric

      public boolean isGeriatric()
    • getAgeText

      public String getAgeText(boolean boolean0, int int1)
    • getHealthText

      public String getHealthText(boolean boolean0, int int0)
    • getAppearanceText

      public String getAppearanceText(boolean boolean0)
    • copyFrom

      public void copyFrom(IsoAnimal isoAnimal1)
    • fertilize

      public void fertilize(IsoAnimal isoAnimal0, boolean boolean0)
    • isAnimalEating

      public boolean isAnimalEating()
    • isAnimalAttacking

      public boolean isAnimalAttacking()
    • isAnimalSitting

      public boolean isAnimalSitting()
    • isFemale

      public boolean isFemale()
      Specified by:
      isFemale in interface IHumanVisual
      Specified by:
      isFemale in interface ILuaGameCharacter
      Overrides:
      isFemale in class IsoGameCharacter
    • setFemale

      public void setFemale(boolean boolean0)
      Specified by:
      setFemale in interface ILuaGameCharacter
      Overrides:
      setFemale in class IsoGameCharacter
    • getAttackedBy

      public IsoGameCharacter getAttackedBy()
      Overrides:
      getAttackedBy in class IsoGameCharacter
      Returns:
      the AttackedBy
    • setAttackedBy

      public void setAttackedBy(IsoGameCharacter isoGameCharacter)
      Overrides:
      setAttackedBy in class IsoGameCharacter
    • isInvincible

      public boolean isInvincible()
      Overrides:
      isInvincible in class IsoGameCharacter
    • setIsInvincible

      public void setIsInvincible(boolean boolean0)
    • getCustomName

      public String getCustomName()
    • setCustomName

      public void setCustomName(String string)
    • getHunger

      public float getHunger()
    • getThirst

      public float getThirst()
    • getBabyType

      public String getBabyType()
    • hasUdder

      public boolean hasUdder()
    • getBreed

      public AnimalBreed getBreed()
    • canBeMilked

      public boolean canBeMilked()
    • canBeSheared

      public boolean canBeSheared()
    • getEggsPerDay

      public int getEggsPerDay()
    • getHutch

      public IsoHutch getHutch()
    • setData

      public void setData(AnimalData animalData)
    • hasGeneticDisorder

      public boolean hasGeneticDisorder(String string)
    • getFullName

      public String getFullName()
      Specified by:
      getFullName in interface ILuaGameCharacter
      Overrides:
      getFullName in class IsoGameCharacter
    • getFullGenome

      public HashMap<String,AnimalGene> getFullGenome()
    • getFullGenomeList

      public ArrayList<AnimalGene> getFullGenomeList()
    • getUsedGene

      public AnimalAllele getUsedGene(String string)
    • getAge

      public int getAge()
      Overrides:
      getAge in class IsoGameCharacter
    • canDoAction

      public boolean canDoAction()
    • getMeatRatio

      public float getMeatRatio()
    • getMate

      public String getMate()
    • getAnimalZone

      public AnimalZone getAnimalZone()
    • setAnimalZone

      public void setAnimalZone(AnimalZone animalZone)
    • hasAnimalZone

      public boolean hasAnimalZone()
    • isMoveForwardOnZone

      public boolean isMoveForwardOnZone()
    • setMoveForwardOnZone

      public void setMoveForwardOnZone(boolean boolean0)
    • isExistInTheWorld

      public boolean isExistInTheWorld()
      Overrides:
      isExistInTheWorld in class IsoMovingObject
    • changeStress

      public void changeStress(float float0)
    • getEggGeneMod

      public float getEggGeneMod()
    • setDebugStress

      public void setDebugStress(float float0)
    • setDebugAcceptance

      public void setDebugAcceptance(IsoPlayer isoPlayer, float float0)
    • getAllPossibleFoodFromInv

      public ArrayList<InventoryItem> getAllPossibleFoodFromInv(IsoGameCharacter isoGameCharacter)
    • getEatTypePossibleFromHand

      public ArrayList<String> getEatTypePossibleFromHand()
    • addAcceptance

      public void addAcceptance(IsoPlayer isoPlayer, float float1)
    • feedFromHand

      public void feedFromHand(IsoPlayer isoPlayer, InventoryItem inventoryItem)
    • petTimerDone

      public boolean petTimerDone()
    • petAnimal

      public void petAnimal(IsoPlayer isoPlayer)
    • getStress

      public float getStress()
    • getStressTxt

      public String getStressTxt(boolean boolean0, int int0)
    • fleeTo

      public void fleeTo(IsoGridSquare isoGridSquare)
    • getAcceptanceLevel

      public float getAcceptanceLevel(IsoPlayer isoPlayer)
    • canBeFeedByHand

      public boolean canBeFeedByHand()
    • tryLure

      public void tryLure(IsoPlayer isoPlayer, InventoryItem inventoryItem)
    • getPossibleLuringItems

      public ArrayList<InventoryItem> getPossibleLuringItems(IsoGameCharacter isoGameCharacter)
    • eatFromLured

      public void eatFromLured(IsoPlayer isoPlayer, InventoryItem inventoryItem)
    • getAttachmentWorldPos

      public Position3D getAttachmentWorldPos(String string)
    • carCrash

      public void carCrash(float float0, boolean boolean0)
    • setDir

      public void setDir(IsoDirections isoDirections)
      Specified by:
      setDir in interface ILuaGameCharacter
      Overrides:
      setDir in class IsoGameCharacter
    • getMilkAnimPreset

      public String getMilkAnimPreset()
    • pathToLocation

      public void pathToLocation(int int0, int int1, int int2)
      Specified by:
      pathToLocation in interface ILuaGameCharacter
      Overrides:
      pathToLocation in class IsoGameCharacter
    • pathToTrough

      public void pathToTrough(IsoFeedingTrough isoFeedingTrough)
    • shouldBreakObstaclesDuringPathfinding

      public boolean shouldBreakObstaclesDuringPathfinding()
    • getFeelersize

      public float getFeelersize()
      Overrides:
      getFeelersize in class IsoMovingObject
      Returns:
      the feelersize
    • animalShouldThump

      public boolean animalShouldThump()
    • tryThump

      public boolean tryThump(IsoGridSquare isoGridSquare1)
    • getAnimalTrailerSize

      public float getAnimalTrailerSize()
    • canBePet

      public boolean canBePet()
    • toggleExtraValues

      public static void toggleExtraValues()
    • setExtraValues

      public void setExtraValues(Boolean boolean0)
    • isExtraValues

      public static boolean isExtraValues()
    • debugRandomIdleAnim

      public void debugRandomIdleAnim()
    • debugRandomHappyAnim

      public void debugRandomHappyAnim()
    • getDZone

      public DesignationZoneAnimal getDZone()
    • haveMatingSeason

      public boolean haveMatingSeason()
    • isInMatingSeason

      public boolean isInMatingSeason()
    • getMinAgeForBaby

      public int getMinAgeForBaby()
    • isHeld

      public boolean isHeld()
    • pathFailed

      public void pathFailed()
    • getAnimalSoundState

      public AnimalSoundState getAnimalSoundState(String string)
    • playDeadSound

      public void playDeadSound()
      Overrides:
      playDeadSound in class IsoGameCharacter
    • updateVocalProperties

      public void updateVocalProperties()
      Overrides:
      updateVocalProperties in class IsoPlayer
    • playNextFootstepSound

      public void playNextFootstepSound()
    • onPlayBreedSoundEvent

      public void onPlayBreedSoundEvent(String string)
    • playBreedSound

      public long playBreedSound(String string)
    • playStressedSound

      public void playStressedSound()
    • updateLoopingSounds

      public void updateLoopingSounds()
    • updateRunLoopingSound

      public void updateRunLoopingSound()
    • updateWalkLoopingSound

      public void updateWalkLoopingSound()
    • getMother

      public IsoAnimal getMother()
    • setMother

      public void setMother(IsoAnimal isoAnimal0)
    • canBePicked

      public boolean canBePicked(IsoGameCharacter isoGameCharacter)
    • getAnimalID

      public int getAnimalID()
    • setAnimalID

      public void setAnimalID(int int0)
    • setItemID

      public void setItemID(int int0)
    • getItemID

      public int getItemID()
    • getNextStageAnimalType

      public String getNextStageAnimalType()
    • debugForceEgg

      public void debugForceEgg()
    • isWild

      public boolean isWild()
    • setWild

      public void setWild(boolean boolean0)
    • alertOtherAnimals

      public void alertOtherAnimals(IsoMovingObject var1, boolean boolean0)
    • debugForceSit

      public void debugForceSit()
    • isAlerted

      public boolean isAlerted()
    • setIsAlerted

      public void setIsAlerted(boolean boolean0)
    • shouldFollowWall

      public boolean shouldFollowWall()
    • setShouldFollowWall

      public void setShouldFollowWall(boolean boolean0)
    • readyToBeMilked

      public boolean readyToBeMilked()
    • readyToBeSheared

      public boolean readyToBeSheared()
    • haveHappyAnim

      public boolean haveHappyAnim()
    • canHaveEggs

      public boolean canHaveEggs()
    • needHutch

      public boolean needHutch()
    • canPoop

      public boolean canPoop()
    • getMinClutchSize

      public int getMinClutchSize()
    • getMaxClutchSize

      public int getMaxClutchSize()
    • getCurrentClutchSize

      public int getCurrentClutchSize()
    • attackOtherMales

      public boolean attackOtherMales()
    • shouldAnimalStressAboveGround

      public boolean shouldAnimalStressAboveGround()
    • canClimbStairs

      public boolean canClimbStairs()
    • forceWanderNow

      public void forceWanderNow()
    • canClimbFences

      public boolean canClimbFences()
    • climbOverFence

      public void climbOverFence(IsoDirections isoDirections)
      Specified by:
      climbOverFence in interface ILuaGameCharacter
      Overrides:
      climbOverFence in class IsoGameCharacter
    • needMom

      public boolean needMom()
    • getFertilizedTimeMax

      public int getFertilizedTimeMax()
    • isLocalPlayer

      public boolean isLocalPlayer()
      Overrides:
      isLocalPlayer in class IsoPlayer
    • getThirstBoost

      public float getThirstBoost()
    • getHungerBoost

      public float getHungerBoost()
    • removeBaby

      public void removeBaby(IsoAnimal isoAnimal1)
    • remove

      public void remove()
    • delete

      public void delete()
    • canEatFromTrough

      public InventoryItem canEatFromTrough(IsoFeedingTrough isoFeedingTrough)
    • getThumpDelay

      public float getThumpDelay()
    • getBloodQuantity

      public float getBloodQuantity()
    • getFeatherNumber

      public int getFeatherNumber()
    • getFeatherItem

      public String getFeatherItem()
    • getOwner

      public UdpConnection getOwner()
      Overrides:
      getOwner in class IsoGameCharacter
    • getOwnerPlayer

      public IsoPlayer getOwnerPlayer()
      Overrides:
      getOwnerPlayer in class IsoGameCharacter
    • isHappy

      public boolean isHappy()
    • shouldBeSkeleton

      public boolean shouldBeSkeleton()
    • setShouldBeSkeleton

      public void setShouldBeSkeleton(boolean boolean0)
    • getGeneticDisorder

      public ArrayList<String> getGeneticDisorder()
    • getBabies

      public ArrayList<IsoAnimal> getBabies()
    • useRagdoll

      public boolean useRagdoll()
      Overrides:
      useRagdoll in class IsoGameCharacter
    • getZoneAcceptance

      public float getZoneAcceptance()
    • getPlayerAcceptance

      public float getPlayerAcceptance(IsoPlayer isoPlayer)
    • addAnimalPart

      public static void addAnimalPart(AnimalPart animalPart, IsoPlayer isoPlayer, IsoDeadBody isoDeadBody)
    • modifyMeat

      public static void modifyMeat(Food food, float float1, float float0)
    • shouldStartFollowWall

      public boolean shouldStartFollowWall()
    • getCorpseSize

      public float getCorpseSize()
    • getCorpseLength

      public float getCorpseLength()
    • setOnHook

      public void setOnHook(boolean boolean0)
    • isOnHook

      public boolean isOnHook()
    • getAdef

      public AnimalDefinitions getAdef()
    • getHook

      public IsoButcherHook getHook()
    • setHook

      public void setHook(IsoButcherHook isoButcherHook)
    • getTypeAndBreed

      public String getTypeAndBreed()
    • createAnimalFromCorpse

      public static IsoAnimal createAnimalFromCorpse(IsoDeadBody isoDeadBody)
    • updateLOS

      public void updateLOS()
      Overrides:
      updateLOS in class IsoPlayer
    • canBePutInHutch

      public boolean canBePutInHutch(IsoHutch isoHutch)
    • shouldCreateZone

      public boolean shouldCreateZone()
    • setIsRoadKill

      public void setIsRoadKill(boolean boolean0)
    • isRoadKill

      public boolean isRoadKill()