Class IsoPlayer

All Implemented Interfaces:
fmod.fmod.IFMODParameterUpdater, Serializable, Mover, IActionStateChanged, ILuaGameCharacter, ILuaGameCharacterAttachedItems, ILuaGameCharacterClothing, ILuaGameCharacterDamage, ILuaGameCharacterHealth, ILuaVariableSource, Talker, ChatElementOwner, IAnimatable, IAnimationVariableMap, IAnimationVariableSource, IAnimEventCallback, IClothingItemListener, IHumanVisual, Thumpable

public final class IsoPlayer extends IsoLivingCharacter implements IHumanVisual
See Also:
  • Field Details

    • DEATH_MUSIC_NAME

      public static String DEATH_MUSIC_NAME
    • isTestAIMode

      public static boolean isTestAIMode
    • NoSound

      public static final boolean NoSound
      See Also:
    • assumedPlayer

      public static int assumedPlayer
    • numPlayers

      public static int numPlayers
    • MAX

      public static final short MAX
      See Also:
    • players

      public static final IsoPlayer[] players
    • remoteSneakLvl

      public int remoteSneakLvl
    • remoteStrLvl

      public int remoteStrLvl
    • remoteFitLvl

      public int remoteFitLvl
    • canSeeAll

      public boolean canSeeAll
    • canHearAll

      public boolean canHearAll
    • MoodleCantSprint

      public boolean MoodleCantSprint
    • lastRemoteUpdate

      public long lastRemoteUpdate
    • spottedByPlayer

      public boolean spottedByPlayer
    • attackStarted

      public boolean attackStarted
    • targetedByZombie

      public boolean targetedByZombie
    • lastTargeted

      public float lastTargeted
    • TimeSinceOpenDoor

      public float TimeSinceOpenDoor
    • bRemote

      public boolean bRemote
    • TimeSinceLastNetData

      public int TimeSinceLastNetData
    • accessLevel

      public String accessLevel
    • tagPrefix

      public String tagPrefix
    • showTag

      public boolean showTag
    • factionPvp

      public boolean factionPvp
    • OnlineID

      public short OnlineID
    • OnlineChunkGridWidth

      public int OnlineChunkGridWidth
    • bJoypadMovementActive

      public boolean bJoypadMovementActive
    • bJoypadIgnoreAimUntilCentered

      public boolean bJoypadIgnoreAimUntilCentered
    • bJoypadIgnoreChargingRT

      public boolean bJoypadIgnoreChargingRT
    • mpTorchCone

      public boolean mpTorchCone
    • mpTorchDist

      public float mpTorchDist
    • mpTorchStrength

      public float mpTorchStrength
    • PlayerIndex

      public int PlayerIndex
    • serverPlayerIndex

      public int serverPlayerIndex
    • useChargeDelta

      public float useChargeDelta
    • JoypadBind

      public int JoypadBind
    • ContextPanic

      public float ContextPanic
    • numNearbyBuildingsRooms

      public float numNearbyBuildingsRooms
    • isCharging

      public boolean isCharging
    • isChargingLT

      public boolean isChargingLT
    • L3Pressed

      public boolean L3Pressed
    • R3Pressed

      public boolean R3Pressed
    • maxWeightDelta

      public float maxWeightDelta
    • CurrentSpeed

      public float CurrentSpeed
    • MaxSpeed

      public float MaxSpeed
    • bDeathFinished

      public boolean bDeathFinished
    • isSpeek

      public boolean isSpeek
    • isVoiceMute

      public boolean isVoiceMute
    • playerMoveDir

      public final Vector2 playerMoveDir
    • soundListener

      public fmod.fmod.BaseSoundListener soundListener
    • username

      public String username
    • dirtyRecalcGridStack

      public boolean dirtyRecalcGridStack
    • dirtyRecalcGridStackTime

      public float dirtyRecalcGridStackTime
    • runningTime

      public float runningTime
    • timePressedContext

      public float timePressedContext
    • chargeTime

      public float chargeTime
    • useChargeTime

      public float useChargeTime
    • bPressContext

      public boolean bPressContext
    • closestZombie

      public float closestZombie
    • lastAngle

      public final Vector2 lastAngle
    • SaveFileName

      public String SaveFileName
    • bBannedAttacking

      public boolean bBannedAttacking
    • sqlID

      public int sqlID
    • bleedingLevel

      public byte bleedingLevel
    • networkAI

      public final NetworkPlayerAI networkAI
    • replay

      public ReplayManager replay
  • Constructor Details

    • IsoPlayer

      public IsoPlayer(IsoCell cell)
    • IsoPlayer

      public IsoPlayer(IsoCell cell, SurvivorDesc desc, int x, int y, int z)
  • Method Details

    • setOnlineID

      public void setOnlineID(short value)
    • getDeferredMovement

      public Vector2 getDeferredMovement(Vector2 out_result)
      Overrides:
      getDeferredMovement in class IsoGameCharacter
    • getTurnDelta

      public float getTurnDelta()
      Overrides:
      getTurnDelta in class IsoGameCharacter
    • setPerformingAnAction

      public void setPerformingAnAction(boolean val)
    • isPerformingAnAction

      public boolean isPerformingAnAction()
    • isAttacking

      public boolean isAttacking()
      Overrides:
      isAttacking in class IsoGameCharacter
    • shouldBeTurning

      public boolean shouldBeTurning()
      Overrides:
      shouldBeTurning in class IsoGameCharacter
    • invokeOnPlayerInstance

      public static void invokeOnPlayerInstance(Runnable callback)
      The IsoPlayer.instance thread-safe invoke. Calls the supplied callback if the IsoPlayer.instance is non-null. Performs this in a thread-safe manner. It is intended that, should any thread intend to use the IsoPlayer.instance, and does not want another thread to change the ptr in the meanwhile, it should call invokeOnPlayerInstance(Runnable callback) eg. IsoPlayer.invokeOnPlayerInstance(()-> { IsoPlayer.instance.doStuff(); }
    • getInstance

      public static IsoPlayer getInstance()
    • setInstance

      public static void setInstance(IsoPlayer newInstance)
    • hasInstance

      public static boolean hasInstance()
    • getStaticTraits

      public static Stack<String> getStaticTraits()
    • getFollowDeadCount

      public static int getFollowDeadCount()
    • setFollowDeadCount

      public static void setFollowDeadCount(int aFollowDeadCount)
    • getAllFileNames

      public static ArrayList<String> getAllFileNames()
    • getUniqueFileName

      public static String getUniqueFileName()
    • getAllSavedPlayers

      public static ArrayList<IsoPlayer> getAllSavedPlayers()
    • isServerPlayerIDValid

      public static boolean isServerPlayerIDValid(String id)
    • getPlayerIndex

      public static int getPlayerIndex()
    • allPlayersDead

      public static boolean allPlayersDead()
    • getPlayers

      public static ArrayList<IsoPlayer> getPlayers()
    • allPlayersAsleep

      public static boolean allPlayersAsleep()
    • getCoopPVP

      public static boolean getCoopPVP()
    • setCoopPVP

      public static void setCoopPVP(boolean enabled)
    • TestZombieSpotPlayer

      public void TestZombieSpotPlayer(IsoMovingObject chr)
    • getPathSpeed

      public float getPathSpeed()
    • isGhostMode

      public boolean isGhostMode()
    • setGhostMode

      public void setGhostMode(boolean aGhostMode)
    • isSeeEveryone

      public boolean isSeeEveryone()
    • zombiesSwitchOwnershipEachUpdate

      public boolean zombiesSwitchOwnershipEachUpdate()
    • getPlayerMoveDir

      public Vector2 getPlayerMoveDir()
    • setPlayerMoveDir

      public void setPlayerMoveDir(Vector2 aPlayerMoveDir)
    • MoveUnmodded

      public void MoveUnmodded(Vector2 dir)
      Overrides:
      MoveUnmodded in class IsoMovingObject
    • nullifyAiming

      public void nullifyAiming()
    • isAimKeyDown

      public boolean isAimKeyDown()
    • getActionContext

      public ActionContext getActionContext()
      Specified by:
      getActionContext in interface IAnimatable
      Overrides:
      getActionContext in class IsoGameCharacter
    • GetAnimSetName

      public String GetAnimSetName()
      Specified by:
      GetAnimSetName in interface IAnimatable
      Overrides:
      GetAnimSetName in class IsoGameCharacter
    • IsInMeleeAttack

      public boolean IsInMeleeAttack()
    • load

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

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

      public void save() throws IOException
      Throws:
      IOException
    • save

      public void save(String fileName) throws IOException
      Throws:
      IOException
    • load

      public void load(String fileName) throws IOException
      Throws:
      IOException
    • removeFromWorld

      public void removeFromWorld()
      Overrides:
      removeFromWorld in class IsoGameCharacter
    • UpdateRemovedEmitters

      public static void UpdateRemovedEmitters()
    • Reset

      public static void Reset()
    • setVehicle4TestCollision

      public void setVehicle4TestCollision(BaseVehicle vehicle)
    • isSaveFileInUse

      public boolean isSaveFileInUse()
    • removeSaveFile

      public void removeSaveFile()
    • isSaveFileIPValid

      public boolean isSaveFileIPValid()
    • getObjectName

      public String getObjectName()
      Overrides:
      getObjectName in class IsoMovingObject
    • getJoypadBind

      public int getJoypadBind()
    • isLBPressed

      public boolean isLBPressed()
    • getControllerAimDir

      public Vector2 getControllerAimDir(Vector2 vec)
    • getMouseAimVector

      public Vector2 getMouseAimVector(Vector2 vec)
    • getAimVector

      public Vector2 getAimVector(Vector2 vec)
    • getGlobalMovementMod

      public float getGlobalMovementMod(boolean bDoNoises)
      Overrides:
      getGlobalMovementMod in class IsoGameCharacter
    • isInTrees2

      public boolean isInTrees2(boolean ignoreBush)
      Overrides:
      isInTrees2 in class IsoGameCharacter
    • getMoveSpeed

      public float getMoveSpeed()
      Overrides:
      getMoveSpeed in class IsoGameCharacter
    • setMoveSpeed

      public void setMoveSpeed(float moveSpeed)
    • getTorchStrength

      public float getTorchStrength()
      Overrides:
      getTorchStrength in class IsoGameCharacter
    • getInvAimingMod

      public float getInvAimingMod()
    • getAimingMod

      public float getAimingMod()
    • getReloadingMod

      public float getReloadingMod()
    • getAimingRangeMod

      public float getAimingRangeMod()
    • isPathfindRunning

      public boolean isPathfindRunning()
    • setPathfindRunning

      public void setPathfindRunning(boolean newvalue)
    • isBannedAttacking

      public boolean isBannedAttacking()
    • setBannedAttacking

      public void setBannedAttacking(boolean b)
    • getInvAimingRangeMod

      public float getInvAimingRangeMod()
    • render

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

      public void renderlast()
      Overrides:
      renderlast in class IsoGameCharacter
    • doBeatenVehicle

      public float doBeatenVehicle(float vehicleSpeed)
    • update

      public void update()
      Overrides:
      update in class IsoGameCharacter
    • updateEnduranceWhileSitting

      public void updateEnduranceWhileSitting()
    • postupdate

      public void postupdate()
      Overrides:
      postupdate in class IsoGameCharacter
    • isSolidForSeparate

      public boolean isSolidForSeparate()
      Overrides:
      isSolidForSeparate in class IsoMovingObject
    • isPushableForSeparate

      public boolean isPushableForSeparate()
      Overrides:
      isPushableForSeparate in class IsoMovingObject
    • isPushedByForSeparate

      public boolean isPushedByForSeparate(IsoMovingObject other)
      Overrides:
      isPushedByForSeparate in class IsoMovingObject
    • updateMovementRates

      public void updateMovementRates()
    • pressedAttack

      public void pressedAttack(boolean calcAttackVars)
    • setAttackAnimThrowTimer

      public void setAttackAnimThrowTimer(long dt)
    • isAttackAnimThrowTimeOut

      public boolean isAttackAnimThrowTimeOut()
    • calculateCritChance

      public int calculateCritChance(IsoGameCharacter target)
    • isAimControlActive

      public boolean isAimControlActive()
    • getClosestZombieToOtherZombie

      public IsoZombie getClosestZombieToOtherZombie(IsoZombie closestTo)
    • getClosestZombieDist

      @Deprecated public IsoGameCharacter getClosestZombieDist()
      Deprecated.
    • hitConsequences

      public void hitConsequences(HandWeapon weapon, IsoGameCharacter wielder, boolean bIgnoreDamage, float damage, boolean bRemote)
      Overrides:
      hitConsequences in class IsoGameCharacter
    • getUseableVehicle

      public BaseVehicle getUseableVehicle()
    • isNearVehicle

      public Boolean isNearVehicle()
    • getNearVehicle

      public BaseVehicle getNearVehicle()
      Overrides:
      getNearVehicle in class IsoGameCharacter
    • getCell

      public IsoCell getCell()
      Overrides:
      getCell in class IsoObject
      Returns:
      the cell
    • calculateContext

      public void calculateContext()
    • isSafeToClimbOver

      public boolean isSafeToClimbOver(IsoDirections dir)
    • doContext

      public boolean doContext(IsoDirections dir)
    • getContextDoorOrWindowOrWindowFrame

      public IsoObject getContextDoorOrWindowOrWindowFrame(IsoDirections assumedDir)
    • hopFence

      public boolean hopFence(IsoDirections dir, boolean bTest)
    • canClimbOverWall

      public boolean canClimbOverWall(IsoDirections dir)
    • climbOverWall

      public boolean climbOverWall(IsoDirections dir)
    • AttemptAttack

      public boolean AttemptAttack()
    • DoAttack

      public boolean DoAttack(float chargeDelta)
      Overrides:
      DoAttack in class IsoLivingCharacter
    • DoAttack

      public boolean DoAttack(float chargeDelta, boolean forceShove, String clickSound)
    • getPlayerNum

      public int getPlayerNum()
    • updateLOS

      public void updateLOS()
    • getSeeNearbyCharacterDistance

      public float getSeeNearbyCharacterDistance()
    • checkCanSeeClient

      public boolean checkCanSeeClient(UdpConnection remoteConnection)
    • checkCanSeeClient

      public boolean checkCanSeeClient(IsoPlayer remoteChr)
    • getTimeSurvived

      public String getTimeSurvived()
    • IsUsingAimWeapon

      public boolean IsUsingAimWeapon()
    • getSleepingPillsTaken

      public int getSleepingPillsTaken()
    • setSleepingPillsTaken

      public void setSleepingPillsTaken(int sleepingPillsTaken)
      If you've take more than 10 sleeping pills you lose some health If you're drunk, 1 pills = 2
      Parameters:
      sleepingPillsTaken -
    • isOutside

      public boolean isOutside()
      Specified by:
      isOutside in interface ILuaGameCharacter
      Overrides:
      isOutside in class IsoGameCharacter
    • getLastSeenZomboidTime

      public double getLastSeenZomboidTime()
    • getPlayerClothingTemperature

      public float getPlayerClothingTemperature()
      Return the amount of temperature given by clothes wear
      Returns:
      temperature
    • getPlayerClothingInsulation

      public float getPlayerClothingInsulation()
    • getActiveLightItem

      public InventoryItem getActiveLightItem()
    • isTorchCone

      public boolean isTorchCone()
    • getTorchDot

      public float getTorchDot()
    • getLightDistance

      public float getLightDistance()
    • pressedMovement

      public boolean pressedMovement(boolean ignoreBlock)
    • pressedCancelAction

      public boolean pressedCancelAction()
    • pressedAim

      public boolean pressedAim()
    • isDoingActionThatCanBeCancelled

      public boolean isDoingActionThatCanBeCancelled()
      Overrides:
      isDoingActionThatCanBeCancelled in class IsoGameCharacter
    • getSteamID

      public long getSteamID()
    • setSteamID

      public void setSteamID(long steamID)
    • isTargetedByZombie

      public boolean isTargetedByZombie()
    • isMaskClicked

      public boolean isMaskClicked(int x, int y, boolean flip)
      Overrides:
      isMaskClicked in class IsoGameCharacter
    • getOffSetXUI

      public int getOffSetXUI()
    • setOffSetXUI

      public void setOffSetXUI(int offSetXUI)
    • getOffSetYUI

      public int getOffSetYUI()
    • setOffSetYUI

      public void setOffSetYUI(int offSetYUI)
    • getUsername

      public String getUsername()
    • getUsername

      public String getUsername(Boolean canShowFirstname)
    • setUsername

      public void setUsername(String newUsername)
    • updateUsername

      public void updateUsername()
    • getOnlineID

      public short getOnlineID()
      Specified by:
      getOnlineID in interface IAnimatable
    • isLocalPlayer

      public boolean isLocalPlayer()
    • setLocalPlayer

      public static void setLocalPlayer(int index, IsoPlayer newPlayerObj)
    • getLocalPlayerByOnlineID

      public static IsoPlayer getLocalPlayerByOnlineID(short ID)
    • isOnlyPlayerAsleep

      public boolean isOnlyPlayerAsleep()
    • OnDeath

      public void OnDeath()
      Overrides:
      OnDeath in class IsoGameCharacter
    • isNoClip

      public boolean isNoClip()
    • setNoClip

      public void setNoClip(boolean noClip)
    • setAuthorizeMeleeAction

      public void setAuthorizeMeleeAction(boolean enabled)
    • isAuthorizeMeleeAction

      public boolean isAuthorizeMeleeAction()
    • setAuthorizeShoveStomp

      public void setAuthorizeShoveStomp(boolean enabled)
    • isAuthorizeShoveStomp

      public boolean isAuthorizeShoveStomp()
    • isBlockMovement

      public boolean isBlockMovement()
    • setBlockMovement

      public void setBlockMovement(boolean blockMovement)
    • startReceivingBodyDamageUpdates

      public void startReceivingBodyDamageUpdates(IsoPlayer other)
    • stopReceivingBodyDamageUpdates

      public void stopReceivingBodyDamageUpdates(IsoPlayer other)
    • getNutrition

      public Nutrition getNutrition()
    • getFitness

      public Fitness getFitness()
    • getParameterCharacterMovementSpeed

      public ParameterCharacterMovementSpeed getParameterCharacterMovementSpeed()
    • setMeleeHitSurface

      public void setMeleeHitSurface(ParameterMeleeHitSurface.Material material)
    • setMeleeHitSurface

      public void setMeleeHitSurface(String material)
    • setVehicleHitLocation

      public void setVehicleHitLocation(BaseVehicle vehicle)
    • DoFootstepSound

      public void DoFootstepSound(String type)
      Overrides:
      DoFootstepSound in class IsoGameCharacter
    • setJoypadIgnoreAimUntilCentered

      public void setJoypadIgnoreAimUntilCentered(boolean ignore)
    • canSeePlayerStats

      public boolean canSeePlayerStats()
    • createPlayerStats

      public ByteBufferWriter createPlayerStats(ByteBufferWriter b, String adminUsername)
    • setPlayerStats

      public String setPlayerStats(ByteBuffer bb, String adminUsername)
    • isAllChatMuted

      public boolean isAllChatMuted()
    • setAllChatMuted

      public void setAllChatMuted(boolean allChatMuted)
    • getAccessLevel

      public String getAccessLevel()
    • isAccessLevel

      public boolean isAccessLevel(String level)
    • setAccessLevel

      public void setAccessLevel(String newLvl)
    • addMechanicsItem

      public void addMechanicsItem(String itemid, VehiclePart part, Long milli)
    • setPosition

      public void setPosition(float ax, float ay, float az)
    • getZombieRelevenceScore

      public float getZombieRelevenceScore(IsoZombie z)
    • getVisual

      public BaseVisual getVisual()
      Specified by:
      getVisual in interface ILuaGameCharacter
      Overrides:
      getVisual in class IsoGameCharacter
    • getHumanVisual

      public HumanVisual getHumanVisual()
      Specified by:
      getHumanVisual in interface IHumanVisual
    • getItemVisuals

      public ItemVisuals getItemVisuals()
      Overrides:
      getItemVisuals in class IsoGameCharacter
    • getItemVisuals

      public void getItemVisuals(ItemVisuals itemVisuals)
      Specified by:
      getItemVisuals in interface IHumanVisual
      Overrides:
      getItemVisuals in class IsoGameCharacter
    • dressInNamedOutfit

      public void dressInNamedOutfit(String outfitName)
      Specified by:
      dressInNamedOutfit in interface ILuaGameCharacterClothing
      Overrides:
      dressInNamedOutfit in class IsoGameCharacter
    • dressInClothingItem

      public void dressInClothingItem(String itemGUID)
      Overrides:
      dressInClothingItem in class IsoGameCharacter
    • onWornItemsChanged

      public void onWornItemsChanged()
      Overrides:
      onWornItemsChanged in class IsoGameCharacter
    • actionStateChanged

      public void actionStateChanged(ActionContext sender)
      Specified by:
      actionStateChanged in interface IActionStateChanged
      Overrides:
      actionStateChanged in class IsoGameCharacter
    • getLastAngle

      public Vector2 getLastAngle()
    • setLastAngle

      public void setLastAngle(Vector2 lastAngle)
    • getDialogMood

      public int getDialogMood()
    • setDialogMood

      public void setDialogMood(int DialogMood)
    • getPing

      public int getPing()
    • setPing

      public void setPing(int ping)
    • getDragObject

      public IsoMovingObject getDragObject()
    • setDragObject

      public void setDragObject(IsoMovingObject DragObject)
    • getAsleepTime

      public float getAsleepTime()
    • setAsleepTime

      public void setAsleepTime(float AsleepTime)
    • getSpottedList

      public Stack<IsoMovingObject> getSpottedList()
    • getTicksSinceSeenZombie

      public int getTicksSinceSeenZombie()
    • setTicksSinceSeenZombie

      public void setTicksSinceSeenZombie(int TicksSinceSeenZombie)
    • isWaiting

      public boolean isWaiting()
    • setWaiting

      public void setWaiting(boolean Waiting)
    • getDragCharacter

      public IsoSurvivor getDragCharacter()
    • setDragCharacter

      public void setDragCharacter(IsoSurvivor DragCharacter)
    • getHeartDelay

      public float getHeartDelay()
    • setHeartDelay

      public void setHeartDelay(float heartDelay)
    • getHeartDelayMax

      public float getHeartDelayMax()
    • setHeartDelayMax

      public void setHeartDelayMax(int heartDelayMax)
    • getHoursSurvived

      public double getHoursSurvived()
      Specified by:
      getHoursSurvived in interface ILuaGameCharacter
      Overrides:
      getHoursSurvived in class IsoGameCharacter
    • setHoursSurvived

      public void setHoursSurvived(double hrs)
    • getMaxWeightDelta

      public float getMaxWeightDelta()
    • setMaxWeightDelta

      public void setMaxWeightDelta(float maxWeightDelta)
    • getForname

      public String getForname()
    • setForname

      public void setForname(String Forname)
    • getSurname

      public String getSurname()
    • setSurname

      public void setSurname(String Surname)
    • isbChangeCharacterDebounce

      public boolean isbChangeCharacterDebounce()
    • setbChangeCharacterDebounce

      public void setbChangeCharacterDebounce(boolean bChangeCharacterDebounce)
    • getFollowID

      public int getFollowID()
    • setFollowID

      public void setFollowID(int followID)
    • isbSeenThisFrame

      public boolean isbSeenThisFrame()
    • setbSeenThisFrame

      public void setbSeenThisFrame(boolean bSeenThisFrame)
    • isbCouldBeSeenThisFrame

      public boolean isbCouldBeSeenThisFrame()
    • setbCouldBeSeenThisFrame

      public void setbCouldBeSeenThisFrame(boolean bCouldBeSeenThisFrame)
    • getTimeSinceLastStab

      public float getTimeSinceLastStab()
    • setTimeSinceLastStab

      public void setTimeSinceLastStab(float timeSinceLastStab)
    • getLastSpotted

      public Stack<IsoMovingObject> getLastSpotted()
    • setLastSpotted

      public void setLastSpotted(Stack<IsoMovingObject> LastSpotted)
    • getClearSpottedTimer

      public int getClearSpottedTimer()
    • setClearSpottedTimer

      public void setClearSpottedTimer(int ClearSpottedTimer)
    • IsRunning

      public boolean IsRunning()
    • InitSpriteParts

      public void InitSpriteParts()
    • IsAiming

      public boolean IsAiming()
    • getTagPrefix

      public String getTagPrefix()
    • setTagPrefix

      public void setTagPrefix(String newTag)
    • getTagColor

      public ColorInfo getTagColor()
    • setTagColor

      public void setTagColor(ColorInfo tagColor)
    • getTransactionID

      @Deprecated public Integer getTransactionID()
      Deprecated.
    • setTransactionID

      @Deprecated public void setTransactionID(Integer transactionID)
      Deprecated.
    • getDisplayName

      public String getDisplayName()
    • setDisplayName

      public void setDisplayName(String displayName)
    • isSeeNonPvpZone

      public boolean isSeeNonPvpZone()
    • setSeeNonPvpZone

      public void setSeeNonPvpZone(boolean seeNonPvpZone)
    • isShowTag

      public boolean isShowTag()
    • setShowTag

      public void setShowTag(boolean show)
    • isFactionPvp

      public boolean isFactionPvp()
    • setFactionPvp

      public void setFactionPvp(boolean pvp)
    • isForceAim

      public boolean isForceAim()
    • setForceAim

      public void setForceAim(boolean forceAim)
    • toggleForceAim

      public boolean toggleForceAim()
    • isForceSprint

      public boolean isForceSprint()
    • setForceSprint

      public void setForceSprint(boolean forceSprint)
    • toggleForceSprint

      public boolean toggleForceSprint()
    • isForceRun

      public boolean isForceRun()
    • setForceRun

      public void setForceRun(boolean forceRun)
    • toggleForceRun

      public boolean toggleForceRun()
    • isDeaf

      public boolean isDeaf()
    • isForceOverrideAnim

      public boolean isForceOverrideAnim()
    • setForceOverrideAnim

      public void setForceOverrideAnim(boolean forceOverride)
    • getMechanicsItem

      public Long getMechanicsItem(String itemId)
    • isWearingNightVisionGoggles

      public boolean isWearingNightVisionGoggles()
    • setWearingNightVisionGoggles

      public void setWearingNightVisionGoggles(boolean b)
    • OnAnimEvent

      public void OnAnimEvent(AnimLayer sender, AnimEvent event)
      Specified by:
      OnAnimEvent in interface IAnimEventCallback
      Overrides:
      OnAnimEvent in class IsoGameCharacter
    • 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.

      Overrides:
      onCullStateChanged in class IsoGameCharacter
      Parameters:
      modelManager - Event sender.
      isCulled - Whether or not this object is culled from the visible scene or not.
    • isTimedActionInstant

      public boolean isTimedActionInstant()
      Specified by:
      isTimedActionInstant in interface ILuaGameCharacter
      Overrides:
      isTimedActionInstant in class IsoGameCharacter
    • isSkeleton

      public boolean isSkeleton()
      Specified by:
      isSkeleton in interface IHumanVisual
    • addWorldSoundUnlessInvisible

      public void addWorldSoundUnlessInvisible(int radius, int volume, boolean bStressHumans)
      Specified by:
      addWorldSoundUnlessInvisible in interface ILuaGameCharacter
      Overrides:
      addWorldSoundUnlessInvisible in class IsoGameCharacter
    • getMoodleLevel

      public int getMoodleLevel(MoodleType type)
    • isAttackStarted

      public boolean isAttackStarted()
    • isBehaviourMoving

      public boolean isBehaviourMoving()
      Overrides:
      isBehaviourMoving in class IsoGameCharacter
    • isJustMoved

      public boolean isJustMoved()
    • setJustMoved

      public void setJustMoved(boolean val)
    • isPlayerMoving

      public boolean isPlayerMoving()
      Overrides:
      isPlayerMoving in class IsoGameCharacter
    • getTimedActionTimeModifier

      public float getTimedActionTimeModifier()
      Overrides:
      getTimedActionTimeModifier in class IsoGameCharacter
    • isLookingWhileInVehicle

      public boolean isLookingWhileInVehicle()
    • setInitiateAttack

      public void setInitiateAttack(boolean initiate)
    • isIgnoreInputsForDirection

      public boolean isIgnoreInputsForDirection()
    • setIgnoreInputsForDirection

      public void setIgnoreInputsForDirection(boolean ignoreInputsForDirection)
    • isIgnoreContextKey

      public boolean isIgnoreContextKey()
    • setIgnoreContextKey

      public void setIgnoreContextKey(boolean ignoreContextKey)
    • isIgnoreAutoVault

      public boolean isIgnoreAutoVault()
    • setIgnoreAutoVault

      public void setIgnoreAutoVault(boolean ignoreAutoVault)
    • isAllowSprint

      public boolean isAllowSprint()
    • setAllowSprint

      public void setAllowSprint(boolean allowSprint)
    • isAllowRun

      public boolean isAllowRun()
    • setAllowRun

      public void setAllowRun(boolean allowRun)
    • getAttackType

      public String getAttackType()
    • setAttackType

      public void setAttackType(String attackType)
    • clearNetworkEvents

      public void clearNetworkEvents()
    • isCanSeeAll

      public boolean isCanSeeAll()
    • setCanSeeAll

      public void setCanSeeAll(boolean b)
    • isNetworkTeleportEnabled

      public boolean isNetworkTeleportEnabled()
    • setNetworkTeleportEnabled

      public void setNetworkTeleportEnabled(boolean b)
    • isCheatPlayerSeeEveryone

      public boolean isCheatPlayerSeeEveryone()
    • getRelevantAndDistance

      public float getRelevantAndDistance(float x, float y, float RelevantRange)
    • isCanHearAll

      public boolean isCanHearAll()
    • setCanHearAll

      public void setCanHearAll(boolean b)
    • getAlreadyReadBook

      public ArrayList<String> getAlreadyReadBook()
    • setMoodleCantSprint

      public void setMoodleCantSprint(boolean b)
    • setAttackFromBehind

      public void setAttackFromBehind(boolean attackFromBehind)
    • isAttackFromBehind

      public boolean isAttackFromBehind()
    • getDamageFromHitByACar

      public float getDamageFromHitByACar(float vehicleSpeed)
    • Hit

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

      public void Kill(IsoGameCharacter killer)
      Overrides:
      Kill in class IsoGameCharacter
    • shouldDoInventory

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

      public void becomeCorpse()
      Overrides:
      becomeCorpse in class IsoGameCharacter
    • preupdate

      public void preupdate()
      Overrides:
      preupdate in class IsoGameCharacter
    • getHitReactionNetworkAI

      public HitReactionNetworkAI getHitReactionNetworkAI()
      Overrides:
      getHitReactionNetworkAI in class IsoGameCharacter
    • getNetworkCharacterAI

      public NetworkCharacterAI getNetworkCharacterAI()
      Overrides:
      getNetworkCharacterAI in class IsoGameCharacter
    • setFitnessSpeed

      public void setFitnessSpeed()
    • isLocal

      public boolean isLocal()
      Overrides:
      isLocal in class IsoGameCharacter
    • isClimbOverWallSuccess

      public boolean isClimbOverWallSuccess()
    • setClimbOverWallSuccess

      public void setClimbOverWallSuccess(boolean climbOverWallSuccess)
    • isClimbOverWallStruggle

      public boolean isClimbOverWallStruggle()
    • setClimbOverWallStruggle

      public void setClimbOverWallStruggle(boolean climbOverWallStruggle)
    • isVehicleCollisionActive

      public boolean isVehicleCollisionActive(BaseVehicle testVehicle)
      Overrides:
      isVehicleCollisionActive in class IsoGameCharacter
    • isShowMPInfos

      public boolean isShowMPInfos()
    • setShowMPInfos

      public void setShowMPInfos(boolean b)