Class IsoGameCharacter

All Implemented Interfaces:
fmod.fmod.IFMODParameterUpdater, Serializable, Mover, IActionStateChanged, ILuaGameCharacter, ILuaGameCharacterAttachedItems, ILuaGameCharacterClothing, ILuaGameCharacterDamage, ILuaGameCharacterHealth, ILuaVariableSource, Talker, ChatElementOwner, IAnimatable, IAnimationVariableMap, IAnimationVariableSource, IAnimEventCallback, IClothingItemListener, Thumpable
Direct Known Subclasses:
IsoDummyCameraCharacter, IsoLivingCharacter, IsoLuaCharacter, IsoLuaMover, IsoZombie, RandomizedBuildingBase.HumanCorpse

public abstract class IsoGameCharacter extends IsoMovingObject implements Talker, ChatElementOwner, IAnimatable, IAnimationVariableMap, IClothingItemListener, IActionStateChanged, IAnimEventCallback, fmod.fmod.IFMODParameterUpdater, ILuaVariableSource, ILuaGameCharacter
See Also:
  • Field Details

    • doRenderShadow

      public boolean doRenderShadow
    • doDirtBloodEtc

      public boolean doDirtBloodEtc
    • RENDER_OFFSET_X

      public static final int RENDER_OFFSET_X
      See Also:
    • RENDER_OFFSET_Y

      public static final int RENDER_OFFSET_Y
      See Also:
    • s_maxPossibleTwist

      public static final float s_maxPossibleTwist
      See Also:
    • vocalEvent

      public long vocalEvent
    • removedFromWorldMS

      public long removedFromWorldMS
    • amputations

      public final ArrayList<String> amputations
    • hair

      public ModelInstance hair
    • beard

      public ModelInstance beard
    • primaryHandModel

      public ModelInstance primaryHandModel
    • secondaryHandModel

      public ModelInstance secondaryHandModel
    • actionContext

      public final ActionContext actionContext
    • emitter

      public final BaseCharacterSoundEmitter emitter
    • callOut

      public boolean callOut
    • ReanimatedCorpse

      public IsoGameCharacter ReanimatedCorpse
    • ReanimatedCorpseID

      public int ReanimatedCorpseID
    • advancedAnimator

      public final AdvancedAnimator advancedAnimator
    • StateMachineParams

      public final HashMap<State,HashMap<Object,Object>> StateMachineParams
    • clientIgnoreCollision

      public long clientIgnoreCollision
    • bumpNbr

      public int bumpNbr
    • upKillCount

      public boolean upKillCount
    • Asleep

      public boolean Asleep
    • blockTurning

      public boolean blockTurning
    • speedMod

      public float speedMod
    • legsSprite

      public IsoSprite legsSprite
    • knockbackAttackMod

      public float knockbackAttackMod
    • IsVisibleToPlayer

      public final boolean[] IsVisibleToPlayer
    • savedVehicleX

      public float savedVehicleX
    • savedVehicleY

      public float savedVehicleY
    • savedVehicleSeat

      public short savedVehicleSeat
    • savedVehicleRunning

      public boolean savedVehicleRunning
    • bagsWorn

      public ArrayList<InventoryContainer> bagsWorn
    • Traits

      public final IsoGameCharacter.CharacterTraits Traits
    • attackVars

      public final AttackVars attackVars
    • hitList

      public final ArrayList<HitInfo> hitList
    • bUpdateEquippedTextures

      public boolean bUpdateEquippedTextures
    • lastAutomaticShoot

      public long lastAutomaticShoot
    • shootInARow

      public int shootInARow
    • realx

      public float realx
    • realy

      public float realy
    • realz

      public byte realz
    • realState

      public NetworkVariables.ZombieState realState
    • realdir

      public IsoDirections realdir
    • overridePrimaryHandModel

      public String overridePrimaryHandModel
    • overrideSecondaryHandModel

      public String overrideSecondaryHandModel
    • forceNullOverride

      public boolean forceNullOverride
    • invRadioFreq

      @Deprecated public ArrayList<Integer> invRadioFreq
      Deprecated.
    • networkCharacter

      public final NetworkCharacter networkCharacter
  • Constructor Details

    • IsoGameCharacter

      public IsoGameCharacter(IsoCell cell, float x, float y, float z)
  • Method Details

    • updateRecoilVar

      public void updateRecoilVar()
    • getMomentumScalar

      public float getMomentumScalar()
    • setMomentumScalar

      public void setMomentumScalar(float val)
    • getDeferredMovement

      public Vector2 getDeferredMovement(Vector2 out_result)
    • getDeferredAngleDelta

      public float getDeferredAngleDelta()
    • getDeferredRotationWeight

      public float getDeferredRotationWeight()
    • isStrafing

      public boolean isStrafing()
    • dbgGetAnimTrack

      public AnimationTrack dbgGetAnimTrack(int layerIdx, int trackIdx)
    • dbgGetAnimTrackName

      public String dbgGetAnimTrackName(int layerIdx, int trackIdx)
    • dbgGetAnimTrackTime

      public float dbgGetAnimTrackTime(int layerIdx, int trackIdx)
    • dbgGetAnimTrackWeight

      public float dbgGetAnimTrackWeight(int layerIdx, int trackIdx)
    • getTwist

      public float getTwist()
      The character's current twist angle, in degrees.
    • getShoulderTwist

      public float getShoulderTwist()
      The character's current shoulder-twist angle, in degrees.
    • getMaxTwist

      public float getMaxTwist()
      The maximum twist angle, in degrees.
    • setMaxTwist

      public void setMaxTwist(float degrees)
      Specify the maximum twist angle, in degrees.
    • getExcessTwist

      public float getExcessTwist()
      The character's excess twist, in degrees. The excess is > 0 if the character is trying to twist further than their current maximum twist. ie. The amount that the desired twist exceeds the maximum twist. eg. If the character is trying to twist by 90 degrees, but their maximum is set to 70, then excess = 20
    • getAbsoluteExcessTwist

      public float getAbsoluteExcessTwist()
    • getAnimAngleTwistDelta

      public float getAnimAngleTwistDelta()
    • getAnimAngleStepDelta

      public float getAnimAngleStepDelta()
    • getTargetTwist

      public float getTargetTwist()
      The desired twist, unclamped, in degrees.
    • isRangedWeaponEmpty

      public boolean isRangedWeaponEmpty()
      Specified by:
      isRangedWeaponEmpty in interface ILuaGameCharacter
    • setRangedWeaponEmpty

      public void setRangedWeaponEmpty(boolean val)
      Specified by:
      setRangedWeaponEmpty in interface ILuaGameCharacter
    • hasFootInjury

      public boolean hasFootInjury()
    • isInTrees2

      public boolean isInTrees2(boolean ignoreBush)
    • isInTreesNoBush

      public boolean isInTreesNoBush()
    • isInTrees

      public boolean isInTrees()
    • getSurvivorMap

      public static HashMap<Integer,SurvivorDesc> getSurvivorMap()
      Returns:
      the SurvivorMap
    • getLevelUpLevels

      public static int[] getLevelUpLevels()
      Returns:
      the LevelUpLevels
    • getTempo

      public static Vector2 getTempo()
      Returns:
      the tempo
    • getInf

      public static ColorInfo getInf()
      Returns:
      the inf
    • getBrain

      public GameCharacterAIBrain getBrain()
    • getIsNPC

      public boolean getIsNPC()
    • setIsNPC

      public void setIsNPC(boolean isAI)
    • getEmitter

      public BaseCharacterSoundEmitter getEmitter()
      Specified by:
      getEmitter in interface ILuaGameCharacter
    • updateEmitter

      public void updateEmitter()
    • getActionContext

      public ActionContext getActionContext()
      Specified by:
      getActionContext in interface IAnimatable
    • getPreviousActionContextStateName

      public String getPreviousActionContextStateName()
    • getCurrentActionContextStateName

      public String getCurrentActionContextStateName()
    • hasAnimationPlayer

      public boolean hasAnimationPlayer()
    • getAnimationPlayer

      public AnimationPlayer getAnimationPlayer()
      Specified by:
      getAnimationPlayer in interface IAnimatable
    • releaseAnimationPlayer

      public void releaseAnimationPlayer()
    • getAdvancedAnimator

      public AdvancedAnimator getAdvancedAnimator()
      Specified by:
      getAdvancedAnimator in interface IAnimatable
    • getModelInstance

      public ModelInstance getModelInstance()
      Specified by:
      getModelInstance in interface IAnimatable
    • getCurrentStateName

      public String getCurrentStateName()
    • getPreviousStateName

      public String getPreviousStateName()
    • getAnimationDebug

      public String getAnimationDebug()
    • getTalkerType

      public String getTalkerType()
      Specified by:
      getTalkerType in interface Talker
    • isAnimForecasted

      public boolean isAnimForecasted()
    • setAnimForecasted

      public void setAnimForecasted(int timeMs)
    • resetModel

      public void resetModel()
      Specified by:
      resetModel in interface ILuaGameCharacter
    • resetModelNextFrame

      public void resetModelNextFrame()
      Specified by:
      resetModelNextFrame in interface ILuaGameCharacter
    • clothingItemChanged

      public void clothingItemChanged(String itemGuid)
      clothingItemChanged Called when a ClothingItem file has changed on disk, causing the OutfitManager to broadcast this event. Checks if this item is currently used by this player's Outfit. Reloads and re-equips if so.
      Specified by:
      clothingItemChanged in interface IClothingItemListener
      Parameters:
      itemGuid - The item's Globally Unique Identifier (GUID).
    • reloadOutfit

      public void reloadOutfit()
    • isSceneCulled

      public boolean isSceneCulled()
      Is this character currently culled from the visible scene graph. Eg. Zombies not seen by the player. Objects outside the rendered window etc.
      Returns:
      TRUE if this character should be drawn. FALSE otherwise.
    • setSceneCulled

      public void setSceneCulled(boolean isCulled)
      Specify whether this character is currently not to be drawn, as it is outside the visible area. Eg. Zombies not seen by the player. Objects outside the rendered window etc.
      Parameters:
      isCulled -
    • onCullStateChanged

      public void onCullStateChanged(ModelManager modelManager, boolean isCulled)
      Callback from ModelManager.Add/Remove functions.

      NOTE: Do not call this directly, it is intended for use by the ModelManager only.

      Parameters:
      modelManager - Event sender.
      isCulled - Whether or not this object is culled from the visible scene or not.
    • dressInRandomOutfit

      public void dressInRandomOutfit()
      Picks a random outfit from the OutfitManager
    • dressInNamedOutfit

      public void dressInNamedOutfit(String outfitName)
      Specified by:
      dressInNamedOutfit in interface ILuaGameCharacterClothing
    • dressInPersistentOutfit

      public void dressInPersistentOutfit(String outfitName)
      Specified by:
      dressInPersistentOutfit in interface ILuaGameCharacterClothing
    • dressInPersistentOutfitID

      public void dressInPersistentOutfitID(int outfitID)
      Specified by:
      dressInPersistentOutfitID in interface ILuaGameCharacterClothing
    • getOutfitName

      public String getOutfitName()
      Specified by:
      getOutfitName in interface ILuaGameCharacterClothing
    • dressInClothingItem

      public void dressInClothingItem(String itemGUID)
    • getRandomDefaultOutfit

      public Outfit getRandomDefaultOutfit()
    • getModel

      public ModelInstance getModel()
    • hasActiveModel

      public boolean hasActiveModel()
    • hasItems

      public boolean hasItems(String type, int count)
      Specified by:
      hasItems in interface ILuaGameCharacter
    • getLevelUpLevels

      public int getLevelUpLevels(int level)
    • getLevelMaxForXp

      public int getLevelMaxForXp()
    • getXpForLevel

      public int getXpForLevel(int level)
      Specified by:
      getXpForLevel in interface ILuaGameCharacter
    • DoDeath

      public void DoDeath(HandWeapon weapon, IsoGameCharacter wielder)
    • DoDeath

      public void DoDeath(HandWeapon weapon, IsoGameCharacter wielder, boolean bGory)
    • getFollowingTarget

      public IsoGameCharacter getFollowingTarget()
      Returns:
      the FollowingTarget
    • setFollowingTarget

      public void setFollowingTarget(IsoGameCharacter FollowingTarget)
      Parameters:
      FollowingTarget - the FollowingTarget to set
    • getLocalList

      public ArrayList<IsoMovingObject> getLocalList()
      Returns:
      the LocalList
    • getLocalNeutralList

      public ArrayList<IsoMovingObject> getLocalNeutralList()
      Returns:
      the LocalNeutralList
    • getLocalGroupList

      public ArrayList<IsoMovingObject> getLocalGroupList()
      Returns:
      the LocalGroupList
    • getLocalRelevantEnemyList

      public ArrayList<IsoMovingObject> getLocalRelevantEnemyList()
      Returns:
      the LocalRelevantEnemyList
    • getDangerLevels

      public float getDangerLevels()
      Returns:
      the dangerLevels
    • setDangerLevels

      public void setDangerLevels(float dangerLevels)
      Parameters:
      dangerLevels - the dangerLevels to set
    • getPerkList

      public ArrayList<IsoGameCharacter.PerkInfo> getPerkList()
      Returns:
      the PerkList
    • getLeaveBodyTimedown

      public float getLeaveBodyTimedown()
      Returns:
      the leaveBodyTimedown
    • setLeaveBodyTimedown

      public void setLeaveBodyTimedown(float leaveBodyTimedown)
      Parameters:
      leaveBodyTimedown - the leaveBodyTimedown to set
    • isAllowConversation

      public boolean isAllowConversation()
      Returns:
      the AllowConversation
    • setAllowConversation

      public void setAllowConversation(boolean AllowConversation)
      Parameters:
      AllowConversation - the AllowConversation to set
    • getReanimateTimer

      public float getReanimateTimer()
      Returns:
      the ReanimateTimer
    • setReanimateTimer

      public void setReanimateTimer(float ReanimateTimer)
      Parameters:
      ReanimateTimer - the ReanimateTimer to set
    • getReanimAnimFrame

      public int getReanimAnimFrame()
      Returns:
      the ReanimAnimFrame
    • setReanimAnimFrame

      public void setReanimAnimFrame(int ReanimAnimFrame)
      Parameters:
      ReanimAnimFrame - the ReanimAnimFrame to set
    • getReanimAnimDelay

      public int getReanimAnimDelay()
      Returns:
      the ReanimAnimDelay
    • setReanimAnimDelay

      public void setReanimAnimDelay(int ReanimAnimDelay)
      Parameters:
      ReanimAnimDelay - the ReanimAnimDelay to set
    • isReanim

      public boolean isReanim()
      Returns:
      the Reanim
    • setReanim

      public void setReanim(boolean Reanim)
      Parameters:
      Reanim - the Reanim to set
    • isVisibleToNPCs

      public boolean isVisibleToNPCs()
      Returns:
      the VisibleToNPCs
    • setVisibleToNPCs

      public void setVisibleToNPCs(boolean VisibleToNPCs)
      Parameters:
      VisibleToNPCs - the VisibleToNPCs to set
    • getDieCount

      public int getDieCount()
      Returns:
      the DieCount
    • setDieCount

      public void setDieCount(int DieCount)
      Parameters:
      DieCount - the DieCount to set
    • getLlx

      public float getLlx()
      Returns:
      the llx
    • setLlx

      public void setLlx(float llx)
      Parameters:
      llx - the llx to set
    • getLly

      public float getLly()
      Returns:
      the lly
    • setLly

      public void setLly(float lly)
      Parameters:
      lly - the lly to set
    • getLlz

      public float getLlz()
      Returns:
      the llz
    • setLlz

      public void setLlz(float llz)
      Parameters:
      llz - the llz to set
    • getRemoteID

      public int getRemoteID()
      Returns:
      the RemoteID
    • setRemoteID

      public void setRemoteID(int RemoteID)
      Parameters:
      RemoteID - the RemoteID to set
    • getNumSurvivorsInVicinity

      public int getNumSurvivorsInVicinity()
      Returns:
      the NumSurvivorsInVicinity
    • setNumSurvivorsInVicinity

      public void setNumSurvivorsInVicinity(int NumSurvivorsInVicinity)
      Parameters:
      NumSurvivorsInVicinity - the NumSurvivorsInVicinity to set
    • getLevelUpMultiplier

      public float getLevelUpMultiplier()
      Returns:
      the LevelUpMultiplier
    • setLevelUpMultiplier

      public void setLevelUpMultiplier(float LevelUpMultiplier)
      Parameters:
      LevelUpMultiplier - the LevelUpMultiplier to set
    • getXp

      public IsoGameCharacter.XP getXp()
      Specified by:
      getXp in interface ILuaGameCharacter
      Returns:
      the xp
    • setXp

      @Deprecated public void setXp(IsoGameCharacter.XP xp)
      Deprecated.
      Parameters:
      xp - the xp to set
    • getLastLocalEnemies

      public int getLastLocalEnemies()
      Returns:
      the LastLocalEnemies
    • setLastLocalEnemies

      public void setLastLocalEnemies(int LastLocalEnemies)
      Parameters:
      LastLocalEnemies - the LastLocalEnemies to set
    • getVeryCloseEnemyList

      public ArrayList<IsoMovingObject> getVeryCloseEnemyList()
      Returns:
      the VeryCloseEnemyList
    • getLastKnownLocation

      public HashMap<String,IsoGameCharacter.Location> getLastKnownLocation()
      Returns:
      the LastKnownLocation
    • getAttackedBy

      public IsoGameCharacter getAttackedBy()
      Returns:
      the AttackedBy
    • setAttackedBy

      public void setAttackedBy(IsoGameCharacter AttackedBy)
      Parameters:
      AttackedBy - the AttackedBy to set
    • isIgnoreStaggerBack

      public boolean isIgnoreStaggerBack()
      Returns:
      the IgnoreStaggerBack
    • setIgnoreStaggerBack

      public void setIgnoreStaggerBack(boolean IgnoreStaggerBack)
      Parameters:
      IgnoreStaggerBack - the IgnoreStaggerBack to set
    • isAttackWasSuperAttack

      public boolean isAttackWasSuperAttack()
      Returns:
      the AttackWasSuperAttack
    • setAttackWasSuperAttack

      public void setAttackWasSuperAttack(boolean AttackWasSuperAttack)
      Parameters:
      AttackWasSuperAttack - the AttackWasSuperAttack to set
    • getTimeThumping

      public int getTimeThumping()
      Returns:
      the TimeThumping
    • setTimeThumping

      public void setTimeThumping(int TimeThumping)
      Parameters:
      TimeThumping - the TimeThumping to set
    • getPatienceMax

      public int getPatienceMax()
      Returns:
      the PatienceMax
    • setPatienceMax

      public void setPatienceMax(int PatienceMax)
      Parameters:
      PatienceMax - the PatienceMax to set
    • getPatienceMin

      public int getPatienceMin()
      Returns:
      the PatienceMin
    • setPatienceMin

      public void setPatienceMin(int PatienceMin)
      Parameters:
      PatienceMin - the PatienceMin to set
    • getPatience

      public int getPatience()
      Returns:
      the Patience
    • setPatience

      public void setPatience(int Patience)
      Parameters:
      Patience - the Patience to set
    • getCharacterActions

      public Stack<BaseAction> getCharacterActions()
      Specified by:
      getCharacterActions in interface ILuaGameCharacter
      Returns:
      the CharacterActions
    • hasTimedActions

      public boolean hasTimedActions()
    • getForwardDirection

      public Vector2 getForwardDirection()
      Returns:
      the character's forward direction vector
    • setForwardDirection

      public void setForwardDirection(Vector2 dir)
      Parameters:
      dir - The character's new forward direction.
    • setForwardDirection

      public void setForwardDirection(float x, float y)
    • zeroForwardDirectionX

      public void zeroForwardDirectionX()
    • zeroForwardDirectionY

      public void zeroForwardDirectionY()
    • getDirectionAngle

      public float getDirectionAngle()
      The forward direction angle, in degrees.
    • setDirectionAngle

      public void setDirectionAngle(float angleDegrees)
    • getAnimAngle

      public float getAnimAngle()
    • getAnimAngleRadians

      public float getAnimAngleRadians()
    • getAnimVector

      public Vector2 getAnimVector(Vector2 out)
    • getLookAngleRadians

      public float getLookAngleRadians()
    • getLookVector

      public Vector2 getLookVector(Vector2 vector2)
    • getDotWithForwardDirection

      public float getDotWithForwardDirection(Vector3 bonePos)
    • getDotWithForwardDirection

      public float getDotWithForwardDirection(float targetX, float targetY)
    • isAsleep

      public boolean isAsleep()
      Specified by:
      isAsleep in interface ILuaGameCharacter
      Returns:
      the Asleep
    • setAsleep

      public void setAsleep(boolean Asleep)
      Specified by:
      setAsleep in interface ILuaGameCharacter
      Parameters:
      Asleep - the Asleep to set
    • getZombieKills

      public int getZombieKills()
      Specified by:
      getZombieKills in interface ILuaGameCharacter
      Returns:
      the ZombieKills
    • setZombieKills

      public void setZombieKills(int ZombieKills)
      Parameters:
      ZombieKills - the ZombieKills to set
    • getLastZombieKills

      public int getLastZombieKills()
      Returns:
      the LastZombieKills
    • setLastZombieKills

      public void setLastZombieKills(int LastZombieKills)
      Parameters:
      LastZombieKills - the LastZombieKills to set
    • isSuperAttack

      public boolean isSuperAttack()
      Returns:
      the superAttack
    • setSuperAttack

      public void setSuperAttack(boolean superAttack)
      Parameters:
      superAttack - the superAttack to set
    • getForceWakeUpTime

      public float getForceWakeUpTime()
      Returns:
      the ForceWakeUpTime
    • setForceWakeUpTime

      public void setForceWakeUpTime(float ForceWakeUpTime)
      Specified by:
      setForceWakeUpTime in interface ILuaGameCharacter
      Parameters:
      ForceWakeUpTime - the ForceWakeUpTime to set
    • forceAwake

      public void forceAwake()
    • getBodyDamage

      public BodyDamage getBodyDamage()
      Specified by:
      getBodyDamage in interface ILuaGameCharacterDamage
      Returns:
      the BodyDamage
    • getBodyDamageRemote

      public BodyDamage getBodyDamageRemote()
      Specified by:
      getBodyDamageRemote in interface ILuaGameCharacterDamage
    • resetBodyDamageRemote

      public void resetBodyDamageRemote()
    • getDefaultState

      public State getDefaultState()
      Returns:
      the defaultState
    • setDefaultState

      public void setDefaultState(State defaultState)
      Parameters:
      defaultState - the defaultState to set
    • getDescriptor

      public SurvivorDesc getDescriptor()
      Specified by:
      getDescriptor in interface ILuaGameCharacter
      Returns:
      the descriptor
    • setDescriptor

      public void setDescriptor(SurvivorDesc descriptor)
      Specified by:
      setDescriptor in interface ILuaGameCharacter
      Parameters:
      descriptor - the descriptor to set
    • getFullName

      public String getFullName()
      Specified by:
      getFullName in interface ILuaGameCharacter
    • getVisual

      public BaseVisual getVisual()
      Specified by:
      getVisual in interface ILuaGameCharacter
    • getItemVisuals

      public ItemVisuals getItemVisuals()
    • getItemVisuals

      public void getItemVisuals(ItemVisuals itemVisuals)
    • isUsingWornItems

      public boolean isUsingWornItems()
    • getFamiliarBuildings

      public Stack<IsoBuilding> getFamiliarBuildings()
      Returns:
      the FamiliarBuildings
    • getFinder

      public AStarPathFinderResult getFinder()
      Returns:
      the finder
    • getFireKillRate

      public float getFireKillRate()
      Returns:
      the FireKillRate
    • setFireKillRate

      public void setFireKillRate(float FireKillRate)
      Parameters:
      FireKillRate - the FireKillRate to set
    • getFireSpreadProbability

      public int getFireSpreadProbability()
      Returns:
      the FireSpreadProbability
    • setFireSpreadProbability

      public void setFireSpreadProbability(int FireSpreadProbability)
      Parameters:
      FireSpreadProbability - the FireSpreadProbability to set
    • getHealth

      public float getHealth()
      Specified by:
      getHealth in interface ILuaGameCharacterDamage
      Returns:
      the Health
    • setHealth

      public void setHealth(float Health)
      Specified by:
      setHealth in interface ILuaGameCharacterDamage
      Parameters:
      Health - the Health to set
    • isOnDeathDone

      public boolean isOnDeathDone()
      Specified by:
      isOnDeathDone in interface ILuaGameCharacterDamage
    • setOnDeathDone

      public void setOnDeathDone(boolean done)
      Specified by:
      setOnDeathDone in interface ILuaGameCharacterDamage
    • isOnKillDone

      public boolean isOnKillDone()
      Specified by:
      isOnKillDone in interface ILuaGameCharacterDamage
    • setOnKillDone

      public void setOnKillDone(boolean done)
      Specified by:
      setOnKillDone in interface ILuaGameCharacterDamage
    • isDeathDragDown

      public boolean isDeathDragDown()
      Specified by:
      isDeathDragDown in interface ILuaGameCharacterDamage
    • setDeathDragDown

      public void setDeathDragDown(boolean dragDown)
      Specified by:
      setDeathDragDown in interface ILuaGameCharacterDamage
    • isPlayingDeathSound

      public boolean isPlayingDeathSound()
      Specified by:
      isPlayingDeathSound in interface ILuaGameCharacterDamage
    • setPlayingDeathSound

      public void setPlayingDeathSound(boolean playing)
      Specified by:
      setPlayingDeathSound in interface ILuaGameCharacterDamage
    • getHurtSound

      public String getHurtSound()
      Returns:
      the hurtSound
    • setHurtSound

      public void setHurtSound(String hurtSound)
      Parameters:
      hurtSound - the hurtSound to set
    • isIgnoreMovementForDirection

      @Deprecated public boolean isIgnoreMovementForDirection()
      Deprecated.
      Returns:
      the IgnoreMovementForDirection
    • getInventory

      public ItemContainer getInventory()
      Specified by:
      getInventory in interface ILuaGameCharacter
      Returns:
      the inventory
    • setInventory

      public void setInventory(ItemContainer inventory)
      Parameters:
      inventory - the inventory to set
    • isPrimaryEquipped

      public boolean isPrimaryEquipped(String item)
    • getPrimaryHandItem

      public InventoryItem getPrimaryHandItem()
      Specified by:
      getPrimaryHandItem in interface ILuaGameCharacter
      Returns:
      the leftHandItem
    • setPrimaryHandItem

      public void setPrimaryHandItem(InventoryItem leftHandItem)
      Specified by:
      setPrimaryHandItem in interface ILuaGameCharacter
      Parameters:
      leftHandItem - the leftHandItem to set
    • initWornItems

      public void initWornItems(String bodyLocationGroupName)
    • getWornItems

      public WornItems getWornItems()
      Specified by:
      getWornItems in interface ILuaGameCharacterClothing
    • setWornItems

      public void setWornItems(WornItems other)
      Specified by:
      setWornItems in interface ILuaGameCharacterClothing
    • getWornItem

      public InventoryItem getWornItem(String location)
      Specified by:
      getWornItem in interface ILuaGameCharacterClothing
    • setWornItem

      public void setWornItem(String location, InventoryItem item)
      Specified by:
      setWornItem in interface ILuaGameCharacterClothing
    • setWornItem

      public void setWornItem(String location, InventoryItem item, boolean forceDropTooHeavy)
    • removeWornItem

      public void removeWornItem(InventoryItem item)
      Specified by:
      removeWornItem in interface ILuaGameCharacterClothing
    • removeWornItem

      public void removeWornItem(InventoryItem item, boolean forceDropTooHeavy)
    • clearWornItems

      public void clearWornItems()
      Specified by:
      clearWornItems in interface ILuaGameCharacterClothing
    • getBodyLocationGroup

      public BodyLocationGroup getBodyLocationGroup()
      Specified by:
      getBodyLocationGroup in interface ILuaGameCharacterClothing
    • onWornItemsChanged

      public void onWornItemsChanged()
    • initAttachedItems

      public void initAttachedItems(String groupName)
    • getAttachedItems

      public AttachedItems getAttachedItems()
      Specified by:
      getAttachedItems in interface ILuaGameCharacterAttachedItems
    • setAttachedItems

      public void setAttachedItems(AttachedItems other)
      Specified by:
      setAttachedItems in interface ILuaGameCharacterAttachedItems
    • getAttachedItem

      public InventoryItem getAttachedItem(String location)
      Specified by:
      getAttachedItem in interface ILuaGameCharacterAttachedItems
    • setAttachedItem

      public void setAttachedItem(String location, InventoryItem item)
      Specified by:
      setAttachedItem in interface ILuaGameCharacterAttachedItems
    • removeAttachedItem

      public void removeAttachedItem(InventoryItem item)
      Specified by:
      removeAttachedItem in interface ILuaGameCharacterAttachedItems
    • clearAttachedItems

      public void clearAttachedItems()
      Specified by:
      clearAttachedItems in interface ILuaGameCharacterAttachedItems
    • getAttachedLocationGroup

      public AttachedLocationGroup getAttachedLocationGroup()
      Specified by:
      getAttachedLocationGroup in interface ILuaGameCharacterAttachedItems
    • getClothingWetness

      public ClothingWetness getClothingWetness()
    • getClothingItem_Head

      public InventoryItem getClothingItem_Head()
      Returns:
      the ClothingItem_Head
    • setClothingItem_Head

      public void setClothingItem_Head(InventoryItem item)
      Specified by:
      setClothingItem_Head in interface ILuaGameCharacterClothing
      Parameters:
      item - the ClothingItem_Head to set
    • getClothingItem_Torso

      public InventoryItem getClothingItem_Torso()
      Returns:
      the ClothingItem_Torso
    • setClothingItem_Torso

      public void setClothingItem_Torso(InventoryItem item)
      Specified by:
      setClothingItem_Torso in interface ILuaGameCharacterClothing
    • getClothingItem_Back

      public InventoryItem getClothingItem_Back()
    • setClothingItem_Back

      public void setClothingItem_Back(InventoryItem item)
      Specified by:
      setClothingItem_Back in interface ILuaGameCharacterClothing
    • getClothingItem_Hands

      public InventoryItem getClothingItem_Hands()
      Returns:
      the ClothingItem_Hands
    • setClothingItem_Hands

      public void setClothingItem_Hands(InventoryItem item)
      Specified by:
      setClothingItem_Hands in interface ILuaGameCharacterClothing
      Parameters:
      item - the ClothingItem_Hands to set
    • getClothingItem_Legs

      public InventoryItem getClothingItem_Legs()
      Returns:
      the ClothingItem_Legs
    • setClothingItem_Legs

      public void setClothingItem_Legs(InventoryItem item)
      Specified by:
      setClothingItem_Legs in interface ILuaGameCharacterClothing
      Parameters:
      item - the ClothingItem_Legs to set
    • getClothingItem_Feet

      public InventoryItem getClothingItem_Feet()
      Returns:
      the ClothingItem_Feet
    • setClothingItem_Feet

      public void setClothingItem_Feet(InventoryItem item)
      Specified by:
      setClothingItem_Feet in interface ILuaGameCharacterClothing
      Parameters:
      item - the ClothingItem_Feet to set
    • getNextWander

      public int getNextWander()
      Returns:
      the NextWander
    • setNextWander

      public void setNextWander(int NextWander)
      Parameters:
      NextWander - the NextWander to set
    • isOnFire

      public boolean isOnFire()
      Specified by:
      isOnFire in interface ILuaGameCharacterDamage
      Returns:
      the OnFire
    • setOnFire

      public void setOnFire(boolean OnFire)
      Parameters:
      OnFire - the OnFire to set
    • removeFromWorld

      public void removeFromWorld()
      Overrides:
      removeFromWorld in class IsoMovingObject
    • getPathIndex

      public int getPathIndex()
      Returns:
      the pathIndex
    • setPathIndex

      public void setPathIndex(int pathIndex)
      Parameters:
      pathIndex - the pathIndex to set
    • getPathTargetX

      public int getPathTargetX()
      Returns:
      the PathTargetX
    • getPathTargetY

      public int getPathTargetY()
      Returns:
      the PathTargetY
    • getPathTargetZ

      public int getPathTargetZ()
      Returns:
      the PathTargetZ
    • getSecondaryHandItem

      public InventoryItem getSecondaryHandItem()
      Specified by:
      getSecondaryHandItem in interface ILuaGameCharacter
      Returns:
      the rightHandItem
    • setSecondaryHandItem

      public void setSecondaryHandItem(InventoryItem rightHandItem)
      Specified by:
      setSecondaryHandItem in interface ILuaGameCharacter
      Parameters:
      rightHandItem - the rightHandItem to set
    • isHandItem

      public boolean isHandItem(InventoryItem item)
      Specified by:
      isHandItem in interface ILuaGameCharacter
    • isPrimaryHandItem

      public boolean isPrimaryHandItem(InventoryItem item)
      Specified by:
      isPrimaryHandItem in interface ILuaGameCharacter
    • isSecondaryHandItem

      public boolean isSecondaryHandItem(InventoryItem item)
      Specified by:
      isSecondaryHandItem in interface ILuaGameCharacter
    • isItemInBothHands

      public boolean isItemInBothHands(InventoryItem item)
      Specified by:
      isItemInBothHands in interface ILuaGameCharacter
    • removeFromHands

      public boolean removeFromHands(InventoryItem item)
      Specified by:
      removeFromHands in interface ILuaGameCharacter
    • getSpeakColour

      public Color getSpeakColour()
      Returns:
      the SpeakColour
    • setSpeakColour

      public void setSpeakColour(Color SpeakColour)
      Parameters:
      SpeakColour - the SpeakColour to set
    • setSpeakColourInfo

      public void setSpeakColourInfo(ColorInfo info)
      Specified by:
      setSpeakColourInfo in interface ILuaGameCharacter
    • getSlowFactor

      public float getSlowFactor()
      Returns:
      the slowFactor
    • setSlowFactor

      public void setSlowFactor(float slowFactor)
      Parameters:
      slowFactor - the slowFactor to set
    • getSlowTimer

      public float getSlowTimer()
      Returns:
      the slowTimer
    • setSlowTimer

      public void setSlowTimer(float slowTimer)
      Parameters:
      slowTimer - the slowTimer to set
    • isbUseParts

      public boolean isbUseParts()
      Returns:
      the bUseParts
    • setbUseParts

      public void setbUseParts(boolean bUseParts)
      Parameters:
      bUseParts - the bUseParts to set
    • isSpeaking

      public boolean isSpeaking()
      Specified by:
      isSpeaking in interface ILuaGameCharacter
      Returns:
      the Speaking
    • setSpeaking

      public void setSpeaking(boolean Speaking)
      Parameters:
      Speaking - the Speaking to set
    • getSpeakTime

      public float getSpeakTime()
      Returns:
      the SpeakTime
    • setSpeakTime

      public void setSpeakTime(int SpeakTime)
      Parameters:
      SpeakTime - the SpeakTime to set
    • getSpeedMod

      public float getSpeedMod()
      Returns:
      the speedMod
    • setSpeedMod

      public void setSpeedMod(float speedMod)
      Parameters:
      speedMod - the speedMod to set
    • getStaggerTimeMod

      public float getStaggerTimeMod()
      Returns:
      the staggerTimeMod
    • setStaggerTimeMod

      public void setStaggerTimeMod(float staggerTimeMod)
      Parameters:
      staggerTimeMod - the staggerTimeMod to set
    • getStateMachine

      public StateMachine getStateMachine()
      Returns:
      the stateMachine
    • getMoodles

      public Moodles getMoodles()
      Specified by:
      getMoodles in interface ILuaGameCharacter
      Returns:
      the Moodles
    • getStats

      public Stats getStats()
      Specified by:
      getStats in interface ILuaGameCharacter
      Returns:
      the stats
    • getUsedItemsOn

      public Stack<String> getUsedItemsOn()
      Returns:
      the UsedItemsOn
    • getUseHandWeapon

      public HandWeapon getUseHandWeapon()
      Returns:
      the useHandWeapon
    • setUseHandWeapon

      public void setUseHandWeapon(HandWeapon useHandWeapon)
      Parameters:
      useHandWeapon - the useHandWeapon to set
    • getLegsSprite

      public IsoSprite getLegsSprite()
      Returns:
      the legsSprite
    • setLegsSprite

      public void setLegsSprite(IsoSprite legsSprite)
      Parameters:
      legsSprite - the legsSprite to set
    • getAttackTargetSquare

      public IsoGridSquare getAttackTargetSquare()
      Returns:
      the attackTargetSquare
    • setAttackTargetSquare

      public void setAttackTargetSquare(IsoGridSquare attackTargetSquare)
      Parameters:
      attackTargetSquare - the attackTargetSquare to set
    • getBloodImpactX

      public float getBloodImpactX()
      Returns:
      the BloodImpactX
    • setBloodImpactX

      public void setBloodImpactX(float BloodImpactX)
      Parameters:
      BloodImpactX - the BloodImpactX to set
    • getBloodImpactY

      public float getBloodImpactY()
      Returns:
      the BloodImpactY
    • setBloodImpactY

      public void setBloodImpactY(float BloodImpactY)
      Parameters:
      BloodImpactY - the BloodImpactY to set
    • getBloodImpactZ

      public float getBloodImpactZ()
      Returns:
      the BloodImpactZ
    • setBloodImpactZ

      public void setBloodImpactZ(float BloodImpactZ)
      Parameters:
      BloodImpactZ - the BloodImpactZ to set
    • getBloodSplat

      public IsoSprite getBloodSplat()
      Returns:
      the bloodSplat
    • setBloodSplat

      public void setBloodSplat(IsoSprite bloodSplat)
      Parameters:
      bloodSplat - the bloodSplat to set
    • isbOnBed

      public boolean isbOnBed()
      Returns:
      the bOnBed
    • setbOnBed

      public void setbOnBed(boolean bOnBed)
      Parameters:
      bOnBed - the bOnBed to set
    • getMoveForwardVec

      public Vector2 getMoveForwardVec()
      Returns:
      the moveForwardVec
    • setMoveForwardVec

      public void setMoveForwardVec(Vector2 moveForwardVec)
      Parameters:
      moveForwardVec - the moveForwardVec to set
    • isPathing

      public boolean isPathing()
      Returns:
      the pathing
    • setPathing

      public void setPathing(boolean pathing)
      Parameters:
      pathing - the pathing to set
    • getLocalEnemyList

      public Stack<IsoGameCharacter> getLocalEnemyList()
      Returns:
      the LocalEnemyList
    • getEnemyList

      public Stack<IsoGameCharacter> getEnemyList()
      Returns:
      the EnemyList
    • getTraits

      public TraitCollection getTraits()
      Specified by:
      getTraits in interface ILuaGameCharacter
      Returns:
      the Traits
    • getCharacterTraits

      public IsoGameCharacter.CharacterTraits getCharacterTraits()
      Returns:
      the CharacterTraits, a TraitCollection extended with direct links to known traits
    • getMaxWeight

      public int getMaxWeight()
      Specified by:
      getMaxWeight in interface ILuaGameCharacter
      Returns:
      the maxWeight
    • setMaxWeight

      public void setMaxWeight(int maxWeight)
      Parameters:
      maxWeight - the maxWeight to set
    • getMaxWeightBase

      public int getMaxWeightBase()
      Returns:
      the maxWeightBase
    • setMaxWeightBase

      public void setMaxWeightBase(int maxWeightBase)
      Parameters:
      maxWeightBase - the maxWeightBase to set
    • getSleepingTabletDelta

      public float getSleepingTabletDelta()
      Returns:
      the SleepingTabletDelta
    • setSleepingTabletDelta

      public void setSleepingTabletDelta(float SleepingTabletDelta)
      Parameters:
      SleepingTabletDelta - the SleepingTabletDelta to set
    • getBetaEffect

      public float getBetaEffect()
      Returns:
      the BetaEffect
    • setBetaEffect

      public void setBetaEffect(float BetaEffect)
      Parameters:
      BetaEffect - the BetaEffect to set
    • getDepressEffect

      public float getDepressEffect()
      Returns:
      the DepressEffect
    • setDepressEffect

      public void setDepressEffect(float DepressEffect)
      Parameters:
      DepressEffect - the DepressEffect to set
    • getSleepingTabletEffect

      public float getSleepingTabletEffect()
      Specified by:
      getSleepingTabletEffect in interface ILuaGameCharacterHealth
      Returns:
      the SleepingTabletEffect
    • setSleepingTabletEffect

      public void setSleepingTabletEffect(float SleepingTabletEffect)
      Specified by:
      setSleepingTabletEffect in interface ILuaGameCharacterHealth
      Parameters:
      SleepingTabletEffect - the SleepingTabletEffect to set
    • getBetaDelta

      public float getBetaDelta()
      Returns:
      the BetaDelta
    • setBetaDelta

      public void setBetaDelta(float BetaDelta)
      Parameters:
      BetaDelta - the BetaDelta to set
    • getDepressDelta

      public float getDepressDelta()
      Returns:
      the DepressDelta
    • setDepressDelta

      public void setDepressDelta(float DepressDelta)
      Parameters:
      DepressDelta - the DepressDelta to set
    • getPainEffect

      public float getPainEffect()
      Returns:
      the PainEffect
    • setPainEffect

      public void setPainEffect(float PainEffect)
      Parameters:
      PainEffect - the PainEffect to set
    • getPainDelta

      public float getPainDelta()
      Returns:
      the PainDelta
    • setPainDelta

      public void setPainDelta(float PainDelta)
      Parameters:
      PainDelta - the PainDelta to set
    • isbDoDefer

      public boolean isbDoDefer()
      Returns:
      the bDoDefer
    • setbDoDefer

      public void setbDoDefer(boolean bDoDefer)
      Parameters:
      bDoDefer - the bDoDefer to set
    • getLastHeardSound

      public IsoGameCharacter.Location getLastHeardSound()
      Returns:
      the LastHeardSound
    • setLastHeardSound

      public void setLastHeardSound(int x, int y, int z)
    • getLrx

      public float getLrx()
      Returns:
      the lrx
    • setLrx

      public void setLrx(float lrx)
      Parameters:
      lrx - the lrx to set
    • getLry

      public float getLry()
      Returns:
      the lry
    • setLry

      public void setLry(float lry)
      Parameters:
      lry - the lry to set
    • isClimbing

      public boolean isClimbing()
      Returns:
      the bClimbing
    • setbClimbing

      public void setbClimbing(boolean bClimbing)
      Parameters:
      bClimbing - the bClimbing to set
    • isLastCollidedW

      public boolean isLastCollidedW()
      Returns:
      the lastCollidedW
    • setLastCollidedW

      public void setLastCollidedW(boolean lastCollidedW)
      Parameters:
      lastCollidedW - the lastCollidedW to set
    • isLastCollidedN

      public boolean isLastCollidedN()
      Returns:
      the lastCollidedN
    • setLastCollidedN

      public void setLastCollidedN(boolean lastCollidedN)
      Parameters:
      lastCollidedN - the lastCollidedN to set
    • getFallTime

      public float getFallTime()
      Returns:
      the fallTime
    • setFallTime

      public void setFallTime(float fallTime)
      Parameters:
      fallTime - the fallTime to set
    • getLastFallSpeed

      public float getLastFallSpeed()
      Returns:
      the lastFallSpeed
    • setLastFallSpeed

      public void setLastFallSpeed(float lastFallSpeed)
      Parameters:
      lastFallSpeed - the lastFallSpeed to set
    • isbFalling

      public boolean isbFalling()
      Returns:
      the bFalling
    • setbFalling

      public void setbFalling(boolean bFalling)
      Parameters:
      bFalling - the bFalling to set
    • getCurrentBuilding

      public IsoBuilding getCurrentBuilding()
      Overrides:
      getCurrentBuilding in class IsoMovingObject
    • getCurrentBuildingDef

      public BuildingDef getCurrentBuildingDef()
    • getCurrentRoomDef

      public RoomDef getCurrentRoomDef()
    • getTorchStrength

      public float getTorchStrength()
    • OnAnimEvent

      public void OnAnimEvent(AnimLayer sender, AnimEvent event)
      Specified by:
      OnAnimEvent in interface IAnimEventCallback
    • getHammerSoundMod

      public float getHammerSoundMod()
      Specified by:
      getHammerSoundMod in interface ILuaGameCharacter
    • getWeldingSoundMod

      public float getWeldingSoundMod()
      Specified by:
      getWeldingSoundMod in interface ILuaGameCharacter
    • getBarricadeTimeMod

      public float getBarricadeTimeMod()
    • getMetalBarricadeStrengthMod

      public float getMetalBarricadeStrengthMod()
    • getBarricadeStrengthMod

      public float getBarricadeStrengthMod()
    • getSneakSpotMod

      public float getSneakSpotMod()
    • getNimbleMod

      public float getNimbleMod()
    • getFatigueMod

      public float getFatigueMod()
      Specified by:
      getFatigueMod in interface ILuaGameCharacterHealth
    • getLightfootMod

      public float getLightfootMod()
    • getPacingMod

      public float getPacingMod()
    • getHyperthermiaMod

      public float getHyperthermiaMod()
    • getHittingMod

      public float getHittingMod()
    • getShovingMod

      public float getShovingMod()
    • getRecoveryMod

      public float getRecoveryMod()
    • getWeightMod

      public float getWeightMod()
    • getHitChancesMod

      public int getHitChancesMod()
    • getSprintMod

      public float getSprintMod()
    • getPerkLevel

      public int getPerkLevel(PerkFactory.Perk perks)
      Return the current lvl of a perk (skill)
      Specified by:
      getPerkLevel in interface ILuaGameCharacter
      Parameters:
      perks -
      Returns:
    • setPerkLevelDebug

      public void setPerkLevelDebug(PerkFactory.Perk perks, int level)
      Specified by:
      setPerkLevelDebug in interface ILuaGameCharacter
    • LoseLevel

      public void LoseLevel(PerkFactory.Perk perk)
      Specified by:
      LoseLevel in interface ILuaGameCharacter
    • LevelPerk

      public void LevelPerk(PerkFactory.Perk perk, boolean removePick)
      Level up a perk (max lvl 5)
      Specified by:
      LevelPerk in interface ILuaGameCharacter
      Parameters:
      perk - the perk to lvl up
      removePick - did we remove a skill pts ? (for example passiv skill automatically lvl up, without consuming skill pts)
    • LevelPerk

      public void LevelPerk(PerkFactory.Perk perk)
      Level up a perk (max lvl 5)
      Specified by:
      LevelPerk in interface ILuaGameCharacter
      Parameters:
      perk - the perk to lvl up (a skill points is removed)
    • level0

      public void level0(PerkFactory.Perk perk)
    • getLastKnownLocationOf

      public IsoGameCharacter.Location getLastKnownLocationOf(String character)
    • ReadLiterature

      public void ReadLiterature(Literature literature)
      Used when you read a book, magazine or newspaper
      Specified by:
      ReadLiterature in interface ILuaGameCharacter
      Parameters:
      literature - the book to read
    • OnDeath

      public void OnDeath()
    • splatBloodFloorBig

      public void splatBloodFloorBig()
    • splatBloodFloor

      public void splatBloodFloor()
    • getThreatLevel

      public int getThreatLevel()
    • isDead

      public boolean isDead()
    • isAlive

      public boolean isAlive()
    • Seen

      public void Seen(Stack<IsoMovingObject> SeenList)
    • CanSee

      public boolean CanSee(IsoMovingObject obj)
    • getLowDangerInVicinity

      public IsoGridSquare getLowDangerInVicinity(int attempts, int range)
    • Anger

      public void Anger(int amount)
    • hasEquipped

      public boolean hasEquipped(String itemType)
      Specified by:
      hasEquipped in interface ILuaGameCharacter
    • hasEquippedTag

      public boolean hasEquippedTag(String tag)
      Specified by:
      hasEquippedTag in interface ILuaGameCharacter
    • setDir

      public void setDir(IsoDirections directions)
      Specified by:
      setDir in interface ILuaGameCharacter
      Overrides:
      setDir in class IsoObject
      Parameters:
      directions - the dir to set
    • Callout

      public void Callout(boolean doAnim)
    • Callout

      public void Callout()
      Specified by:
      Callout in interface ILuaGameCharacter
    • load

      public void load(ByteBuffer input, int WorldVersion, boolean IS_DEBUG_SAVE) throws IOException
      Overrides:
      load in class IsoMovingObject
      Throws:
      IOException
    • save

      public void save(ByteBuffer output, boolean IS_DEBUG_SAVE) throws IOException
      Overrides:
      save in class IsoMovingObject
      Throws:
      IOException
    • getChatElement

      public ChatElement getChatElement()
    • StartAction

      public void StartAction(BaseAction act)
      Specified by:
      StartAction in interface ILuaGameCharacter
    • QueueAction

      public void QueueAction(BaseAction act)
    • StopAllActionQueue

      public void StopAllActionQueue()
      Specified by:
      StopAllActionQueue in interface ILuaGameCharacter
    • StopAllActionQueueRunning

      public void StopAllActionQueueRunning()
    • StopAllActionQueueAiming

      public void StopAllActionQueueAiming()
    • StopAllActionQueueWalking

      public void StopAllActionQueueWalking()
    • GetAnimSetName

      public String GetAnimSetName()
      Specified by:
      GetAnimSetName in interface IAnimatable
    • SleepingTablet

      public void SleepingTablet(float SleepingTabletDelta)
    • BetaBlockers

      public void BetaBlockers(float delta)
    • BetaAntiDepress

      public void BetaAntiDepress(float delta)
    • PainMeds

      public void PainMeds(float delta)
    • initSpritePartsEmpty

      public void initSpritePartsEmpty()
      Specified by:
      initSpritePartsEmpty in interface ILuaGameCharacter
    • InitSpriteParts

      public void InitSpriteParts(SurvivorDesc desc)
    • HasTrait

      public boolean HasTrait(String trait)
      Specified by:
      HasTrait in interface ILuaGameCharacter
    • ApplyInBedOffset

      public void ApplyInBedOffset(boolean apply)
    • Dressup

      public void Dressup(SurvivorDesc desc)
      Specified by:
      Dressup in interface ILuaGameCharacterClothing
    • PlayAnim

      public void PlayAnim(String string)
      Specified by:
      PlayAnim in interface ILuaGameCharacter
    • PlayAnimWithSpeed

      public void PlayAnimWithSpeed(String string, float framesSpeedPerFrame)
      Specified by:
      PlayAnimWithSpeed in interface ILuaGameCharacter
    • PlayAnimUnlooped

      public void PlayAnimUnlooped(String string)
      Specified by:
      PlayAnimUnlooped in interface ILuaGameCharacter
    • DirectionFromVector

      public void DirectionFromVector(Vector2 vecA)
    • DoFootstepSound

      public void DoFootstepSound(String type)
    • DoFootstepSound

      public void DoFootstepSound(float volume)
    • Eat

      public boolean Eat(InventoryItem info, float percentage)
      Specified by:
      Eat in interface ILuaGameCharacterHealth
    • Eat

      public boolean Eat(InventoryItem info)
      Specified by:
      Eat in interface ILuaGameCharacterHealth
    • FireCheck

      public void FireCheck()
    • getPrimaryHandType

      public String getPrimaryHandType()
    • getGlobalMovementMod

      public float getGlobalMovementMod(boolean bDoNoises)
      Overrides:
      getGlobalMovementMod in class IsoMovingObject
    • getMoveSpeed

      public float getMoveSpeed()
    • getSecondaryHandType

      public String getSecondaryHandType()
    • HasItem

      public boolean HasItem(String string)
    • changeState

      public void changeState(State state)
      Specified by:
      changeState in interface ILuaGameCharacter
    • getCurrentState

      public State getCurrentState()
      Specified by:
      getCurrentState in interface ILuaGameCharacter
    • isCurrentState

      public boolean isCurrentState(State state)
      Specified by:
      isCurrentState in interface ILuaGameCharacter
    • getStateMachineParams

      public HashMap<Object,Object> getStateMachineParams(State state)
    • setStateMachineLocked

      public void setStateMachineLocked(boolean val)
    • Hit

      public float Hit(HandWeapon weapon, IsoGameCharacter wielder, float damageSplit, boolean bIgnoreDamage, float modDelta)
      Specified by:
      Hit in interface ILuaGameCharacterDamage
      Overrides:
      Hit in class IsoMovingObject
    • Hit

      public float Hit(HandWeapon weapon, IsoGameCharacter wielder, float damageSplit, boolean bIgnoreDamage, float modDelta, boolean bRemote)
      Specified by:
      Hit in interface ILuaGameCharacterDamage
    • processHitDamage

      public float processHitDamage(HandWeapon weapon, IsoGameCharacter wielder, float damageSplit, boolean bIgnoreDamage, float modDelta)
    • hitConsequences

      public void hitConsequences(HandWeapon weapon, IsoGameCharacter wielder, boolean bIgnoreDamage, float damage, boolean bRemote)
    • IsAttackRange

      public boolean IsAttackRange(float x, float y, float z)
    • IsAttackRange

      public boolean IsAttackRange(HandWeapon we, IsoMovingObject obj, Vector3 bonePos, boolean extraRange)
      This use some prediction on the zombie, if he's lunging toward the player attacking it we gonna add more range to our weapon, to avoid playing the "miss" animation
      Parameters:
      we -
      obj -
      Returns:
    • IsSpeaking

      public boolean IsSpeaking()
      Specified by:
      IsSpeaking in interface ILuaGameCharacter
      Specified by:
      IsSpeaking in interface Talker
    • MoveForward

      public void MoveForward(float dist, float x, float y, float soundDelta)
    • pathToCharacter

      public void pathToCharacter(IsoGameCharacter target)
    • pathToLocation

      public void pathToLocation(int x, int y, int z)
      Specified by:
      pathToLocation in interface ILuaGameCharacter
    • pathToLocationF

      public void pathToLocationF(float x, float y, float z)
      Specified by:
      pathToLocationF in interface ILuaGameCharacter
    • pathToSound

      public void pathToSound(int x, int y, int z)
    • CanAttack

      public boolean CanAttack()
      Specified by:
      CanAttack in interface ILuaGameCharacter
    • ReduceHealthWhenBurning

      public void ReduceHealthWhenBurning()
    • DrawSneezeText

      public void DrawSneezeText()
    • getSpriteDef

      public IsoSpriteInstance getSpriteDef()
      Specified by:
      getSpriteDef in interface ILuaGameCharacter
    • render

      public void render(float x, float y, float z, ColorInfo col, boolean bDoChild, boolean bWallLightingPass, Shader shader)
      Overrides:
      render in class IsoObject
    • renderServerGUI

      public void renderServerGUI()
    • isSeatedInVehicle

      public boolean isSeatedInVehicle()
    • renderObjectPicker

      public void renderObjectPicker(float x, float y, float z, ColorInfo lightInfo)
      Overrides:
      renderObjectPicker in class IsoObject
    • renderShadow

      public void renderShadow(float x, float y, float z)
    • checkUpdateModelTextures

      public void checkUpdateModelTextures()
    • isMaskClicked

      public boolean isMaskClicked(int x, int y, boolean flip)
      Overrides:
      isMaskClicked in class IsoObject
    • setHaloNote

      public void setHaloNote(String str)
      Specified by:
      setHaloNote in interface ILuaGameCharacter
    • setHaloNote

      public void setHaloNote(String str, float dispTime)
      Specified by:
      setHaloNote in interface ILuaGameCharacter
    • setHaloNote

      public void setHaloNote(String str, int r, int g, int b, float dispTime)
      Specified by:
      setHaloNote in interface ILuaGameCharacter
    • getHaloTimerCount

      public float getHaloTimerCount()
    • DoSneezeText

      public void DoSneezeText()
    • getSayLine

      public String getSayLine()
      Specified by:
      getSayLine in interface Talker
    • setSayLine

      public void setSayLine(String sayLine)
      Parameters:
      sayLine - the sayLine to set
    • getLastChatMessage

      public ChatMessage getLastChatMessage()
    • setLastChatMessage

      public void setLastChatMessage(ChatMessage lastChatMessage)
    • getLastSpokenLine

      public String getLastSpokenLine()
    • setLastSpokenLine

      public void setLastSpokenLine(String line)
    • SayDebug

      public void SayDebug(String text)
    • SayDebug

      public void SayDebug(int n, String text)
    • getMaxChatLines

      public int getMaxChatLines()
    • Say

      public void Say(String line)
      Specified by:
      Say in interface ILuaGameCharacter
      Specified by:
      Say in interface Talker
    • Say

      public void Say(String line, float r, float g, float b, UIFont font, float baseRange, String customTag)
      Specified by:
      Say in interface ILuaGameCharacter
    • SayWhisper

      public void SayWhisper(String line)
    • SayShout

      public void SayShout(String line)
    • SayRadio

      public void SayRadio(String line, float r, float g, float b, UIFont font, float baseRange, int channel, String customTag)
    • addLineChatElement

      public void addLineChatElement(String line)
    • addLineChatElement

      public void addLineChatElement(String line, float r, float g, float b)
    • addLineChatElement

      public void addLineChatElement(String line, float r, float g, float b, UIFont font, float baseRange, String customTag)
    • addLineChatElement

      public void addLineChatElement(String line, float r, float g, float b, UIFont font, float baseRange, String customTag, boolean bbcode, boolean img, boolean icons, boolean colors, boolean fonts, boolean equalizeHeights)
    • getUserNameHeight

      public int getUserNameHeight()
    • updateTextObjects

      public void updateTextObjects()
    • renderlast

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

      public void drawDirectionLine(Vector2 dir, float length, float r, float g, float b)
    • drawDebugTextBelow

      public void drawDebugTextBelow(String text)
    • getEquipedRadio

      public Radio getEquipedRadio()
    • setDefaultState

      public void setDefaultState()
    • SetOnFire

      public void SetOnFire()
    • StopBurning

      public void StopBurning()
      Specified by:
      StopBurning in interface ILuaGameCharacterDamage
    • sendStopBurning

      public void sendStopBurning()
      Specified by:
      sendStopBurning in interface ILuaGameCharacterDamage
    • SpreadFireMP

      public void SpreadFireMP()
    • SpreadFire

      public void SpreadFire()
    • Throw

      public void Throw(HandWeapon weapon)
    • serverRemoveItemFromZombie

      public void serverRemoveItemFromZombie(String item)
    • helmetFall

      public boolean helmetFall(boolean hitHead)
    • helmetFall

      public boolean helmetFall(boolean hitHead, String forcedItem)
    • smashCarWindow

      public void smashCarWindow(VehiclePart part)
      Specified by:
      smashCarWindow in interface ILuaGameCharacter
    • smashWindow

      public void smashWindow(IsoWindow w)
      Specified by:
      smashWindow in interface ILuaGameCharacter
    • openWindow

      public void openWindow(IsoWindow w)
      Specified by:
      openWindow in interface ILuaGameCharacter
    • closeWindow

      public void closeWindow(IsoWindow w)
      Specified by:
      closeWindow in interface ILuaGameCharacter
    • climbThroughWindow

      public void climbThroughWindow(IsoWindow w)
      Specified by:
      climbThroughWindow in interface ILuaGameCharacter
    • climbThroughWindow

      public void climbThroughWindow(IsoWindow w, Integer startingFrame)
      Specified by:
      climbThroughWindow in interface ILuaGameCharacter
    • isClosingWindow

      public boolean isClosingWindow(IsoWindow window)
    • isClimbingThroughWindow

      public boolean isClimbingThroughWindow(IsoWindow window)
    • climbThroughWindowFrame

      public void climbThroughWindowFrame(IsoObject obj)
      Specified by:
      climbThroughWindowFrame in interface ILuaGameCharacter
    • climbSheetRope

      public void climbSheetRope()
      Specified by:
      climbSheetRope in interface ILuaGameCharacter
    • climbDownSheetRope

      public void climbDownSheetRope()
      Specified by:
      climbDownSheetRope in interface ILuaGameCharacter
    • canClimbSheetRope

      public boolean canClimbSheetRope(IsoGridSquare sq)
      Specified by:
      canClimbSheetRope in interface ILuaGameCharacter
    • canClimbDownSheetRopeInCurrentSquare

      public boolean canClimbDownSheetRopeInCurrentSquare()
      Specified by:
      canClimbDownSheetRopeInCurrentSquare in interface ILuaGameCharacter
    • canClimbDownSheetRope

      public boolean canClimbDownSheetRope(IsoGridSquare sq)
      Specified by:
      canClimbDownSheetRope in interface ILuaGameCharacter
    • climbThroughWindow

      public void climbThroughWindow(IsoThumpable w)
      Specified by:
      climbThroughWindow in interface ILuaGameCharacter
    • climbThroughWindow

      public void climbThroughWindow(IsoThumpable w, Integer startingFrame)
      Specified by:
      climbThroughWindow in interface ILuaGameCharacter
    • climbOverFence

      public void climbOverFence(IsoDirections dir)
      Specified by:
      climbOverFence in interface ILuaGameCharacter
    • isAboveTopOfStairs

      public boolean isAboveTopOfStairs()
      Specified by:
      isAboveTopOfStairs in interface ILuaGameCharacter
    • preupdate

      public void preupdate()
      Overrides:
      preupdate in class IsoMovingObject
    • setTeleport

      public void setTeleport(NetworkTeleport _teleport)
    • getTeleport

      public NetworkTeleport getTeleport()
    • isTeleporting

      public boolean isTeleporting()
    • update

      public void update()
      Overrides:
      update in class IsoMovingObject
    • getHoursSurvived

      public double getHoursSurvived()
      Specified by:
      getHoursSurvived in interface ILuaGameCharacter
    • calculateBaseSpeed

      public float calculateBaseSpeed()
    • updateSpeedModifiers

      public void updateSpeedModifiers()
    • DoFloorSplat

      public void DoFloorSplat(IsoGridSquare sq, String id, boolean bFlip, float offZ, float alpha)
    • onMouseLeftClick

      public boolean onMouseLeftClick(int x, int y)
      Overrides:
      onMouseLeftClick in class IsoObject
    • faceLocation

      public void faceLocation(float x, float y)
    • faceLocationF

      public void faceLocationF(float x, float y)
    • isFacingLocation

      public boolean isFacingLocation(float x, float y, float dot)
    • isFacingObject

      public boolean isFacingObject(IsoObject object, float dot)
    • splatBlood

      public void splatBlood(int dist, float alpha)
    • isOutside

      public boolean isOutside()
      Specified by:
      isOutside in interface ILuaGameCharacter
    • isFemale

      public boolean isFemale()
      Specified by:
      isFemale in interface ILuaGameCharacter
    • setFemale

      public void setFemale(boolean isFemale)
      Specified by:
      setFemale in interface ILuaGameCharacter
    • isZombie

      public boolean isZombie()
      Specified by:
      isZombie in interface ILuaGameCharacter
      Overrides:
      isZombie in class IsoObject
    • getLastHitCount

      public int getLastHitCount()
      Specified by:
      getLastHitCount in interface ILuaGameCharacterDamage
    • setLastHitCount

      public void setLastHitCount(int hitCount)
      Specified by:
      setLastHitCount in interface ILuaGameCharacterDamage
    • getSurvivorKills

      public int getSurvivorKills()
    • setSurvivorKills

      public void setSurvivorKills(int survivorKills)
    • getAge

      public int getAge()
    • setAge

      public void setAge(int age)
    • exert

      public void exert(float f)
    • getPerkInfo

      public IsoGameCharacter.PerkInfo getPerkInfo(PerkFactory.Perk perk)
      Specified by:
      getPerkInfo in interface ILuaGameCharacter
    • isEquipped

      public boolean isEquipped(InventoryItem item)
      Specified by:
      isEquipped in interface ILuaGameCharacter
    • isEquippedClothing

      public boolean isEquippedClothing(InventoryItem item)
      Specified by:
      isEquippedClothing in interface ILuaGameCharacter
    • isAttachedItem

      public boolean isAttachedItem(InventoryItem item)
      Specified by:
      isAttachedItem in interface ILuaGameCharacter
    • faceThisObject

      public void faceThisObject(IsoObject object)
      Specified by:
      faceThisObject in interface ILuaGameCharacter
    • facePosition

      public void facePosition(int x, int y)
      Specified by:
      facePosition in interface ILuaGameCharacter
    • faceThisObjectAlt

      public void faceThisObjectAlt(IsoObject object)
      Specified by:
      faceThisObjectAlt in interface ILuaGameCharacter
    • setAnimated

      public void setAnimated(boolean b)
    • playHurtSound

      public void playHurtSound()
    • playDeadSound

      public void playDeadSound()
    • saveChange

      public void saveChange(String change, se.krka.kahlua.vm.KahluaTable tbl, ByteBuffer bb)
      Overrides:
      saveChange in class IsoObject
    • loadChange

      public void loadChange(String change, ByteBuffer bb)
      Overrides:
      loadChange in class IsoObject
    • getAlreadyReadPages

      public int getAlreadyReadPages(String fullType)
      Specified by:
      getAlreadyReadPages in interface ILuaGameCharacter
    • setAlreadyReadPages

      public void setAlreadyReadPages(String fullType, int pages)
      Specified by:
      setAlreadyReadPages in interface ILuaGameCharacter
    • updateLightInfo

      public void updateLightInfo()
    • initLightInfo2

      public IsoGameCharacter.LightInfo initLightInfo2()
    • getLightInfo2

      public IsoGameCharacter.LightInfo getLightInfo2()
    • postupdate

      public void postupdate()
      Overrides:
      postupdate in class IsoMovingObject
    • shouldBeTurning

      public boolean shouldBeTurning()
    • shouldBeTurning90

      public boolean shouldBeTurning90()
    • shouldBeTurningAround

      public boolean shouldBeTurningAround()
    • hasPath

      public boolean hasPath()
    • isAnimationRecorderActive

      public boolean isAnimationRecorderActive()
      Specified by:
      isAnimationRecorderActive in interface IAnimatable
    • getAnimationPlayerRecorder

      public AnimationPlayerRecorder getAnimationPlayerRecorder()
      Specified by:
      getAnimationPlayerRecorder in interface IAnimatable
    • getMeleeDelay

      public float getMeleeDelay()
      Specified by:
      getMeleeDelay in interface ILuaGameCharacter
    • setMeleeDelay

      public void setMeleeDelay(float delay)
      Specified by:
      setMeleeDelay in interface ILuaGameCharacter
    • getRecoilDelay

      public float getRecoilDelay()
      Specified by:
      getRecoilDelay in interface ILuaGameCharacter
    • setRecoilDelay

      public void setRecoilDelay(float recoilDelay)
      Specified by:
      setRecoilDelay in interface ILuaGameCharacter
    • getBeenMovingFor

      public float getBeenMovingFor()
    • setBeenMovingFor

      public void setBeenMovingFor(float beenMovingFor)
    • isForceShove

      public boolean isForceShove()
    • setForceShove

      public void setForceShove(boolean forceShove)
    • getClickSound

      public String getClickSound()
    • setClickSound

      public void setClickSound(String clickSound)
    • getMeleeCombatMod

      public int getMeleeCombatMod()
    • getWeaponLevel

      public int getWeaponLevel()
    • getMaintenanceMod

      public int getMaintenanceMod()
      Specified by:
      getMaintenanceMod in interface ILuaGameCharacter
    • getVehicle

      public BaseVehicle getVehicle()
      Specified by:
      getVehicle in interface ILuaGameCharacter
    • setVehicle

      public void setVehicle(BaseVehicle v)
      Specified by:
      setVehicle in interface ILuaGameCharacter
    • isUnderVehicle

      public boolean isUnderVehicle()
    • isProne

      public boolean isProne()
    • isBeingSteppedOn

      public boolean isBeingSteppedOn()
    • getTemperature

      public float getTemperature()
      Specified by:
      getTemperature in interface ILuaGameCharacterHealth
    • setTemperature

      public void setTemperature(float t)
      Specified by:
      setTemperature in interface ILuaGameCharacterHealth
    • getReduceInfectionPower

      public float getReduceInfectionPower()
      Specified by:
      getReduceInfectionPower in interface ILuaGameCharacterHealth
    • setReduceInfectionPower

      public void setReduceInfectionPower(float reduceInfectionPower)
      Specified by:
      setReduceInfectionPower in interface ILuaGameCharacterHealth
    • getInventoryWeight

      public float getInventoryWeight()
      Specified by:
      getInventoryWeight in interface ILuaGameCharacter
    • dropHandItems

      public void dropHandItems()
    • shouldBecomeZombieAfterDeath

      public boolean shouldBecomeZombieAfterDeath()
    • applyTraits

      public void applyTraits(ArrayList<String> luaTraits)
    • createKeyRing

      public void createKeyRing()
    • autoDrink

      public void autoDrink()
    • getWaterSource

      public InventoryItem getWaterSource(ArrayList<InventoryItem> items)
    • getKnownRecipes

      public List<String> getKnownRecipes()
      Specified by:
      getKnownRecipes in interface ILuaGameCharacter
    • isRecipeKnown

      public boolean isRecipeKnown(Recipe recipe)
      Specified by:
      isRecipeKnown in interface ILuaGameCharacter
    • isRecipeKnown

      public boolean isRecipeKnown(String name)
      Specified by:
      isRecipeKnown in interface ILuaGameCharacter
    • learnRecipe

      public boolean learnRecipe(String name)
    • addKnownMediaLine

      public void addKnownMediaLine(String guid)
      Specified by:
      addKnownMediaLine in interface ILuaGameCharacter
    • removeKnownMediaLine

      public void removeKnownMediaLine(String guid)
      Specified by:
      removeKnownMediaLine in interface ILuaGameCharacter
    • clearKnownMediaLines

      public void clearKnownMediaLines()
      Specified by:
      clearKnownMediaLines in interface ILuaGameCharacter
    • isKnownMediaLine

      public boolean isKnownMediaLine(String guid)
      Specified by:
      isKnownMediaLine in interface ILuaGameCharacter
    • isMoving

      public boolean isMoving()
    • isBehaviourMoving

      public boolean isBehaviourMoving()
    • isPlayerMoving

      public boolean isPlayerMoving()
    • setMoving

      public void setMoving(boolean val)
    • isAttacking

      public boolean isAttacking()
    • isZombieAttacking

      public boolean isZombieAttacking()
    • isZombieAttacking

      public boolean isZombieAttacking(IsoMovingObject other)
    • compareMovePriority

      public int compareMovePriority(IsoGameCharacter other)
    • playSound

      public long playSound(String file)
      Specified by:
      playSound in interface ILuaGameCharacter
    • playSoundLocal

      public long playSoundLocal(String file)
      Specified by:
      playSoundLocal in interface ILuaGameCharacter
    • stopOrTriggerSound

      public void stopOrTriggerSound(long eventInstance)
      Specified by:
      stopOrTriggerSound in interface ILuaGameCharacter
    • addWorldSoundUnlessInvisible

      public void addWorldSoundUnlessInvisible(int radius, int volume, boolean bStressHumans)
      Specified by:
      addWorldSoundUnlessInvisible in interface ILuaGameCharacter
    • isKnownPoison

      public boolean isKnownPoison(InventoryItem item)
      Specified by:
      isKnownPoison in interface ILuaGameCharacter
    • getLastHourSleeped

      public int getLastHourSleeped()
      Specified by:
      getLastHourSleeped in interface ILuaGameCharacterHealth
    • setLastHourSleeped

      public void setLastHourSleeped(int lastHourSleeped)
      Specified by:
      setLastHourSleeped in interface ILuaGameCharacterHealth
    • setTimeOfSleep

      public void setTimeOfSleep(float timeOfSleep)
      Specified by:
      setTimeOfSleep in interface ILuaGameCharacterHealth
    • setDelayToSleep

      public void setDelayToSleep(float delay)
    • getBedType

      public String getBedType()
      Specified by:
      getBedType in interface ILuaGameCharacter
    • setBedType

      public void setBedType(String bedType)
      Specified by:
      setBedType in interface ILuaGameCharacter
    • enterVehicle

      public void enterVehicle(BaseVehicle v, int seat, org.joml.Vector3f offset)
    • Hit

      public float Hit(BaseVehicle vehicle, float speed, boolean isHitFromBehind, float hitDirX, float hitDirY)
      Specified by:
      Hit in interface ILuaGameCharacterDamage
    • getPath2

      public PolygonalMap2.Path getPath2()
      Specified by:
      getPath2 in interface ILuaGameCharacter
    • setPath2

      public void setPath2(PolygonalMap2.Path path)
      Specified by:
      setPath2 in interface ILuaGameCharacter
    • getPathFindBehavior2

      public PathFindBehavior2 getPathFindBehavior2()
      Specified by:
      getPathFindBehavior2 in interface ILuaGameCharacter
    • getMapKnowledge

      public MapKnowledge getMapKnowledge()
    • getBed

      public IsoObject getBed()
      Specified by:
      getBed in interface ILuaGameCharacter
    • setBed

      public void setBed(IsoObject bed)
      Specified by:
      setBed in interface ILuaGameCharacter
    • avoidDamage

      public boolean avoidDamage()
    • setAvoidDamage

      public void setAvoidDamage(boolean avoid)
    • isReading

      public boolean isReading()
      Specified by:
      isReading in interface ILuaGameCharacter
    • setReading

      public void setReading(boolean isReading)
      Specified by:
      setReading in interface ILuaGameCharacter
    • getTimeSinceLastSmoke

      public float getTimeSinceLastSmoke()
      Specified by:
      getTimeSinceLastSmoke in interface ILuaGameCharacter
    • setTimeSinceLastSmoke

      public void setTimeSinceLastSmoke(float timeSinceLastSmoke)
      Specified by:
      setTimeSinceLastSmoke in interface ILuaGameCharacter
    • isInvisible

      public boolean isInvisible()
      Specified by:
      isInvisible in interface ILuaGameCharacter
    • setInvisible

      public void setInvisible(boolean b)
      Specified by:
      setInvisible in interface ILuaGameCharacter
    • isDriving

      public boolean isDriving()
      Specified by:
      isDriving in interface ILuaGameCharacter
    • isInARoom

      public boolean isInARoom()
      Specified by:
      isInARoom in interface ILuaGameCharacter
    • isGodMod

      public boolean isGodMod()
      Specified by:
      isGodMod in interface ILuaGameCharacter
    • setGodMod

      public void setGodMod(boolean b)
      Specified by:
      setGodMod in interface ILuaGameCharacter
    • isUnlimitedCarry

      public boolean isUnlimitedCarry()
      Specified by:
      isUnlimitedCarry in interface ILuaGameCharacter
    • setUnlimitedCarry

      public void setUnlimitedCarry(boolean unlimitedCarry)
      Specified by:
      setUnlimitedCarry in interface ILuaGameCharacter
    • isBuildCheat

      public boolean isBuildCheat()
      Specified by:
      isBuildCheat in interface ILuaGameCharacter
    • setBuildCheat

      public void setBuildCheat(boolean buildCheat)
      Specified by:
      setBuildCheat in interface ILuaGameCharacter
    • isFarmingCheat

      public boolean isFarmingCheat()
      Specified by:
      isFarmingCheat in interface ILuaGameCharacter
    • setFarmingCheat

      public void setFarmingCheat(boolean b)
      Specified by:
      setFarmingCheat in interface ILuaGameCharacter
    • isHealthCheat

      public boolean isHealthCheat()
      Specified by:
      isHealthCheat in interface ILuaGameCharacter
    • setHealthCheat

      public void setHealthCheat(boolean healthCheat)
      Specified by:
      setHealthCheat in interface ILuaGameCharacter
    • isMechanicsCheat

      public boolean isMechanicsCheat()
      Specified by:
      isMechanicsCheat in interface ILuaGameCharacter
    • setMechanicsCheat

      public void setMechanicsCheat(boolean mechanicsCheat)
      Specified by:
      setMechanicsCheat in interface ILuaGameCharacter
    • isMovablesCheat

      public boolean isMovablesCheat()
      Specified by:
      isMovablesCheat in interface ILuaGameCharacter
    • setMovablesCheat

      public void setMovablesCheat(boolean b)
      Specified by:
      setMovablesCheat in interface ILuaGameCharacter
    • isTimedActionInstantCheat

      public boolean isTimedActionInstantCheat()
      Specified by:
      isTimedActionInstantCheat in interface ILuaGameCharacter
    • setTimedActionInstantCheat

      public void setTimedActionInstantCheat(boolean b)
      Specified by:
      setTimedActionInstantCheat in interface ILuaGameCharacter
    • isTimedActionInstant

      public boolean isTimedActionInstant()
      Specified by:
      isTimedActionInstant in interface ILuaGameCharacter
    • isShowAdminTag

      public boolean isShowAdminTag()
      Specified by:
      isShowAdminTag in interface ILuaGameCharacter
    • setShowAdminTag

      public void setShowAdminTag(boolean showAdminTag)
      Specified by:
      setShowAdminTag in interface ILuaGameCharacter
    • getVariable

      public IAnimationVariableSlot getVariable(AnimationVariableHandle handle)
      Description copied from interface: IAnimationVariableSource
      Returns the specified variable slot. Or NULL if not found.
      Specified by:
      getVariable in interface IAnimationVariableSource
    • getVariable

      public IAnimationVariableSlot getVariable(String key)
      Description copied from interface: IAnimationVariableSource
      Returns the specified variable slot. Or NULL if not found.
      Specified by:
      getVariable in interface IAnimationVariableSource
    • getOrCreateVariable

      public IAnimationVariableSlot getOrCreateVariable(String key)
      Description copied from interface: IAnimationVariableMap
      Returns the specified variable slot. Creates a new slot if not found.
      Specified by:
      getOrCreateVariable in interface IAnimationVariableMap
    • setVariable

      public void setVariable(IAnimationVariableSlot var)
      Description copied from interface: IAnimationVariableMap
      Set the specified animation variable slot. Overwriting an existing slot if necessary.
      Specified by:
      setVariable in interface IAnimationVariableMap
    • setVariable

      public void setVariable(String key, String value)
      Specified by:
      setVariable in interface IAnimationVariableMap
    • setVariable

      public void setVariable(String key, boolean value)
      Specified by:
      setVariable in interface IAnimationVariableMap
    • setVariable

      public void setVariable(String key, float value)
      Specified by:
      setVariable in interface IAnimationVariableMap
    • setVariable

      public void setVariable(String key, boolean defaultVal, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet)
      Strong-typed utility function.
    • setVariable

      public void setVariable(String key, boolean defaultVal, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackBool.CallbackSetStrongTyped callbackSet)
      Strong-typed utility function.
    • setVariable

      public void setVariable(String key, String defaultVal, AnimationVariableSlotCallbackString.CallbackGetStrongTyped callbackGet)
      Strong-typed utility function.
    • setVariable

      Strong-typed utility function.
    • setVariable

      public void setVariable(String key, float defaultVal, AnimationVariableSlotCallbackFloat.CallbackGetStrongTyped callbackGet)
      Strong-typed utility function.
    • setVariable

      public void setVariable(String key, float defaultVal, AnimationVariableSlotCallbackFloat.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackFloat.CallbackSetStrongTyped callbackSet)
      Strong-typed utility function.
    • setVariable

      public void setVariable(String key, int defaultVal, AnimationVariableSlotCallbackInt.CallbackGetStrongTyped callbackGet)
      Strong-typed utility function.
    • setVariable

      public void setVariable(String key, int defaultVal, AnimationVariableSlotCallbackInt.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackInt.CallbackSetStrongTyped callbackSet)
      Strong-typed utility function.
    • clearVariable

      public void clearVariable(String key)
      Specified by:
      clearVariable in interface IAnimationVariableMap
    • clearVariables

      public void clearVariables()
      Specified by:
      clearVariables in interface IAnimationVariableMap
    • getVariableString

      public String getVariableString(String name)
      Description copied from interface: IAnimationVariableSource
      Returns the specified variable. Or an empty string "" if not found.
      Specified by:
      getVariableString in interface IAnimationVariableSource
    • getVariableFloat

      public float getVariableFloat(String name, float defaultVal)
      Description copied from interface: IAnimationVariableSource
      Returns the specified variable, as a float. Attempts to convert the string variable to a float. If that fails, or if variable not found, returns the defaultValue
      Specified by:
      getVariableFloat in interface IAnimationVariableSource
    • getVariableBoolean

      public boolean getVariableBoolean(String name)
      Description copied from interface: IAnimationVariableSource
      Returns the specified variable, as a boolean. Attempts to convert the string variable to a boolean. If that fails, or if variable not found, returns FALSE
      Specified by:
      getVariableBoolean in interface IAnimationVariableSource
    • getVariableBoolean

      public boolean getVariableBoolean(String key, boolean defaultVal)
      Returns the specified variable, as a boolean. Attempts to convert the string variable to a boolean. If that fails, or if variable not found, returns defaultVal
      Specified by:
      getVariableBoolean in interface IAnimationVariableSource
    • isVariable

      public boolean isVariable(String name, String val)
      Compares (ignoring case) the value of the specified variable. Returns TRUE if they match.
      Specified by:
      isVariable in interface IAnimationVariableSource
    • containsVariable

      public boolean containsVariable(String name)
      Specified by:
      containsVariable in interface IAnimationVariableSource
    • getGameVariables

      public Iterable<IAnimationVariableSlot> getGameVariables()
      Description copied from interface: IAnimationVariableSource
      Returns all Game variables.
      Specified by:
      getGameVariables in interface IAnimationVariableSource
    • startPlaybackGameVariables

      public AnimationVariableSource startPlaybackGameVariables()
    • endPlaybackGameVariables

      public void endPlaybackGameVariables(AnimationVariableSource playbackVars)
    • playbackSetCurrentStateSnapshot

      public void playbackSetCurrentStateSnapshot(ActionStateSnapshot snapshot)
    • playbackRecordCurrentStateSnapshot

      public ActionStateSnapshot playbackRecordCurrentStateSnapshot()
    • GetVariable

      public String GetVariable(String key)
      Specified by:
      GetVariable in interface ILuaVariableSource
    • SetVariable

      public void SetVariable(String key, String value)
      Specified by:
      SetVariable in interface ILuaVariableSource
    • ClearVariable

      public void ClearVariable(String key)
      Specified by:
      ClearVariable in interface ILuaVariableSource
    • actionStateChanged

      public void actionStateChanged(ActionContext sender)
      Specified by:
      actionStateChanged in interface IActionStateChanged
    • isFallOnFront

      public boolean isFallOnFront()
    • setFallOnFront

      public void setFallOnFront(boolean fallOnFront)
    • isHitFromBehind

      public boolean isHitFromBehind()
    • setHitFromBehind

      public void setHitFromBehind(boolean hitFromBehind)
    • reportEvent

      public void reportEvent(String name)
      Specified by:
      reportEvent in interface ILuaGameCharacter
    • StartTimedActionAnim

      public void StartTimedActionAnim(String event)
      Specified by:
      StartTimedActionAnim in interface ILuaGameCharacter
    • StartTimedActionAnim

      public void StartTimedActionAnim(String event, String type)
      Specified by:
      StartTimedActionAnim in interface ILuaGameCharacter
    • StopTimedActionAnim

      public void StopTimedActionAnim()
      Specified by:
      StopTimedActionAnim in interface ILuaGameCharacter
    • hasHitReaction

      public boolean hasHitReaction()
    • getHitReaction

      public String getHitReaction()
    • setHitReaction

      public void setHitReaction(String hitReaction)
    • CacheEquipped

      public void CacheEquipped()
    • GetPrimaryEquippedCache

      public InventoryItem GetPrimaryEquippedCache()
    • GetSecondaryEquippedCache

      public InventoryItem GetSecondaryEquippedCache()
    • ClearEquippedCache

      public void ClearEquippedCache()
    • isBehind

      public boolean isBehind(IsoGameCharacter chr)
    • resetEquippedHandsModels

      public void resetEquippedHandsModels()
    • getDebugMonitor

      public AnimatorDebugMonitor getDebugMonitor()
      Specified by:
      getDebugMonitor in interface ILuaGameCharacter
    • setDebugMonitor

      public void setDebugMonitor(AnimatorDebugMonitor monitor)
      Specified by:
      setDebugMonitor in interface ILuaGameCharacter
    • isAimAtFloor

      public boolean isAimAtFloor()
    • setAimAtFloor

      public void setAimAtFloor(boolean b)
    • testDotSide

      public String testDotSide(IsoMovingObject target)
    • addBasicPatch

      public void addBasicPatch(BloodBodyPartType part)
    • addHole

      public boolean addHole(BloodBodyPartType part)
      Specified by:
      addHole in interface ILuaGameCharacterDamage
    • addHole

      public boolean addHole(BloodBodyPartType part, boolean allLayers)
    • addDirt

      public void addDirt(BloodBodyPartType part, Integer nbr, boolean allLayers)
    • addBlood

      public void addBlood(BloodBodyPartType part, boolean scratched, boolean bitten, boolean allLayers)
      Specified by:
      addBlood in interface ILuaGameCharacterDamage
    • getBodyPartClothingDefense

      public float getBodyPartClothingDefense(Integer part, boolean bite, boolean bullet)
    • isBumped

      public boolean isBumped()
      Specified by:
      isBumped in interface ILuaGameCharacterDamage
    • isBumpDone

      public boolean isBumpDone()
    • setBumpDone

      public void setBumpDone(boolean val)
    • isBumpFall

      public boolean isBumpFall()
    • setBumpFall

      public void setBumpFall(boolean val)
    • isBumpStaggered

      public boolean isBumpStaggered()
    • setBumpStaggered

      public void setBumpStaggered(boolean val)
    • getBumpType

      public String getBumpType()
      Specified by:
      getBumpType in interface ILuaGameCharacterDamage
    • setBumpType

      public void setBumpType(String bumpType)
    • getBumpFallType

      public String getBumpFallType()
    • setBumpFallType

      public void setBumpFallType(String val)
    • getBumpedChr

      public IsoGameCharacter getBumpedChr()
    • setBumpedChr

      public void setBumpedChr(IsoGameCharacter bumpedChr)
    • getLastBump

      public long getLastBump()
    • setLastBump

      public void setLastBump(long lastBump)
    • isSitOnGround

      public boolean isSitOnGround()
    • setSitOnGround

      public void setSitOnGround(boolean sitOnGround)
    • getUID

      public String getUID()
      Specified by:
      getUID in interface IAnimatable
    • isRunning

      public boolean isRunning()
    • setRunning

      public void setRunning(boolean bRunning)
    • isSprinting

      public boolean isSprinting()
    • setSprinting

      public void setSprinting(boolean bSprinting)
    • canSprint

      public boolean canSprint()
    • postUpdateModelTextures

      public void postUpdateModelTextures()
    • getTextureCreator

      public ModelInstanceTextureCreator getTextureCreator()
    • setTextureCreator

      public void setTextureCreator(ModelInstanceTextureCreator textureCreator)
    • postUpdateEquippedTextures

      public void postUpdateEquippedTextures()
    • getReadyModelData

      public ArrayList<ModelInstance> getReadyModelData()
    • getIgnoreMovement

      public boolean getIgnoreMovement()
    • setIgnoreMovement

      public void setIgnoreMovement(boolean ignoreMovement)
    • isAutoWalk

      public boolean isAutoWalk()
    • setAutoWalk

      public void setAutoWalk(boolean b)
    • setAutoWalkDirection

      public void setAutoWalkDirection(Vector2 v)
    • getAutoWalkDirection

      public Vector2 getAutoWalkDirection()
    • isSneaking

      public boolean isSneaking()
    • setSneaking

      public void setSneaking(boolean bSneaking)
    • getGameCharacterAIBrain

      public GameCharacterAIBrain getGameCharacterAIBrain()
    • getMoveDelta

      public float getMoveDelta()
    • setMoveDelta

      public void setMoveDelta(float moveDelta)
    • getTurnDelta

      public float getTurnDelta()
    • setTurnDelta

      public void setTurnDelta(float m_turnDelta)
    • getChopTreeSpeed

      public float getChopTreeSpeed()
    • testDefense

      public boolean testDefense(IsoZombie zomb)
      Test if we're able to defend a zombie bite Can only happen if zombie is attacking from front Calcul include current weapon skills, fitness & strength
      Parameters:
      zomb -
    • getSurroundingAttackingZombies

      public int getSurroundingAttackingZombies()
    • checkIsNearWall

      public float checkIsNearWall()
    • getBeenSprintingFor

      public float getBeenSprintingFor()
    • setBeenSprintingFor

      public void setBeenSprintingFor(float beenSprintingFor)
    • isHideWeaponModel

      public boolean isHideWeaponModel()
    • setHideWeaponModel

      public void setHideWeaponModel(boolean hideWeaponModel)
    • setIsAiming

      public void setIsAiming(boolean aIsAiming)
    • isAiming

      public boolean isAiming()
      Specified by:
      isAiming in interface ILuaGameCharacter
    • resetBeardGrowingTime

      public void resetBeardGrowingTime()
      Specified by:
      resetBeardGrowingTime in interface ILuaGameCharacter
    • resetHairGrowingTime

      public void resetHairGrowingTime()
      Specified by:
      resetHairGrowingTime in interface ILuaGameCharacter
    • fallenOnKnees

      public void fallenOnKnees()
    • addVisualDamage

      public void addVisualDamage(String itemType)
    • isCriticalHit

      public boolean isCriticalHit()
    • setCriticalHit

      public void setCriticalHit(boolean isCrit)
    • getRunSpeedModifier

      public float getRunSpeedModifier()
    • startMuzzleFlash

      public void startMuzzleFlash()
    • isMuzzleFlash

      public boolean isMuzzleFlash()
    • isNPC

      public boolean isNPC()
    • setNPC

      public void setNPC(boolean newvalue)
    • NPCSetRunning

      public void NPCSetRunning(boolean newvalue)
    • NPCGetRunning

      public boolean NPCGetRunning()
    • NPCSetJustMoved

      public void NPCSetJustMoved(boolean newvalue)
    • NPCSetAiming

      public void NPCSetAiming(boolean isAiming)
    • NPCGetAiming

      public boolean NPCGetAiming()
    • NPCSetAttack

      public void NPCSetAttack(boolean newvalue)
    • NPCSetMelee

      public void NPCSetMelee(boolean newvalue)
    • setMetabolicTarget

      public void setMetabolicTarget(Metabolics m)
    • setMetabolicTarget

      public void setMetabolicTarget(float target)
    • getThirstMultiplier

      public double getThirstMultiplier()
    • getHungerMultiplier

      public double getHungerMultiplier()
    • getFatiqueMultiplier

      public double getFatiqueMultiplier()
    • getTimedActionTimeModifier

      public float getTimedActionTimeModifier()
    • addHoleFromZombieAttacks

      public boolean addHoleFromZombieAttacks(BloodBodyPartType part, boolean scratch)
    • getTotalBlood

      public float getTotalBlood()
    • attackFromWindowsLunge

      public void attackFromWindowsLunge(IsoZombie zombie)
    • DoSwingCollisionBoneCheck

      public boolean DoSwingCollisionBoneCheck(IsoGameCharacter zombie, int bone, float tempoLengthTest)
    • isInvincible

      public boolean isInvincible()
    • setInvincible

      public void setInvincible(boolean invincible)
    • getNearVehicle

      public BaseVehicle getNearVehicle()
    • dropHeavyItems

      public void dropHeavyItems()
    • isHeavyItem

      public boolean isHeavyItem(InventoryItem item)
    • isCanShout

      public boolean isCanShout()
    • setCanShout

      public void setCanShout(boolean canShout)
    • isUnlimitedEndurance

      public boolean isUnlimitedEndurance()
    • setUnlimitedEndurance

      public void setUnlimitedEndurance(boolean unlimitedEndurance)
    • getActiveLightItems

      public ArrayList<InventoryItem> getActiveLightItems(ArrayList<InventoryItem> items)
    • getOrCreateSleepingEventData

      public SleepingEventData getOrCreateSleepingEventData()
    • playEmote

      public void playEmote(String emote)
    • getAnimationStateName

      public String getAnimationStateName()
    • getActionStateName

      public String getActionStateName()
    • shouldWaitToStartTimedAction

      public boolean shouldWaitToStartTimedAction()
    • setPersistentOutfitID

      public void setPersistentOutfitID(int outfitID)
    • setPersistentOutfitID

      public void setPersistentOutfitID(int outfitID, boolean init)
    • getPersistentOutfitID

      public int getPersistentOutfitID()
    • isPersistentOutfitInit

      public boolean isPersistentOutfitInit()
    • isDoingActionThatCanBeCancelled

      public boolean isDoingActionThatCanBeCancelled()
    • isDoDeathSound

      public boolean isDoDeathSound()
    • setDoDeathSound

      public void setDoDeathSound(boolean doDeathSound)
    • updateEquippedRadioFreq

      public void updateEquippedRadioFreq()
    • getFMODParameters

      public FMODParameterList getFMODParameters()
      Specified by:
      getFMODParameters in interface fmod.fmod.IFMODParameterUpdater
    • startEvent

      public void startEvent(long eventInstance, GameSoundClip clip, BitSet parameterSet)
      Specified by:
      startEvent in interface fmod.fmod.IFMODParameterUpdater
    • updateEvent

      public void updateEvent(long eventInstance, GameSoundClip clip)
      Specified by:
      updateEvent in interface fmod.fmod.IFMODParameterUpdater
    • stopEvent

      public void stopEvent(long eventInstance, GameSoundClip clip, BitSet parameterSet)
      Specified by:
      stopEvent in interface fmod.fmod.IFMODParameterUpdater
    • playBloodSplatterSound

      public void playBloodSplatterSound()
    • setIgnoreAimingInput

      public void setIgnoreAimingInput(boolean b)
    • addBlood

      public void addBlood(float speed)
    • isKnockedDown

      public boolean isKnockedDown()
    • setKnockedDown

      public void setKnockedDown(boolean bKnockedDown)
    • writeInventory

      public void writeInventory(ByteBuffer b)
    • readInventory

      public String readInventory(ByteBuffer b)
    • Kill

      public void Kill(IsoGameCharacter killer)
    • shouldDoInventory

      public boolean shouldDoInventory()
    • die

      public void die()
    • becomeCorpse

      public void becomeCorpse()
    • shouldBecomeCorpse

      public boolean shouldBecomeCorpse()
    • getHitReactionNetworkAI

      public HitReactionNetworkAI getHitReactionNetworkAI()
    • getNetworkCharacterAI

      public NetworkCharacterAI getNetworkCharacterAI()
    • isLocal

      public boolean isLocal()
    • isVehicleCollisionActive

      public boolean isVehicleCollisionActive(BaseVehicle testVehicle)
    • doHitByVehicle

      public void doHitByVehicle(BaseVehicle baseVehicle, BaseVehicle.HitVars hitVars)
    • isSkipResolveCollision

      public boolean isSkipResolveCollision()
    • isAttackAnim

      public boolean isAttackAnim()
    • setAttackAnim

      public void setAttackAnim(boolean attackAnim)
    • getNextAnimationTranslationLength

      public Float getNextAnimationTranslationLength()
    • calcHitDir

      public Float calcHitDir(IsoGameCharacter wielder, HandWeapon weapon, Vector2 out)
    • calcHitDir

      public void calcHitDir(Vector2 out)
    • getSafety

      public Safety getSafety()
      Specified by:
      getSafety in interface ILuaGameCharacter
    • setSafety

      public void setSafety(Safety safety)
      Specified by:
      setSafety in interface ILuaGameCharacter
    • burnCorpse

      public void burnCorpse(IsoDeadBody corpse)