Class BaseVehicle

All Implemented Interfaces:
fmod.fmod.IFMODParameterUpdater, Serializable, Mover, ECSEntity, ILuaIsoObject, IsoRenderable, Thumpable, IPositional, IVehicleAlarmListener, IVehicleEngineListener, VehiclePartOwner, VehicleSoundOwner

public final class BaseVehicle extends IsoMovingObject implements Thumpable, fmod.fmod.IFMODParameterUpdater, IPositional, IVehicleAlarmListener, IVehicleEngineListener, VehiclePartOwner, VehicleSoundOwner
See Also:
  • Field Details

    • MASK1_FRONT

      public static final int MASK1_FRONT
      See Also:
    • MASK1_REAR

      public static final int MASK1_REAR
      See Also:
    • MASK1_DOOR_RIGHT_FRONT

      public static final int MASK1_DOOR_RIGHT_FRONT
      See Also:
    • MASK1_DOOR_RIGHT_REAR

      public static final int MASK1_DOOR_RIGHT_REAR
      See Also:
    • MASK1_DOOR_LEFT_FRONT

      public static final int MASK1_DOOR_LEFT_FRONT
      See Also:
    • MASK1_DOOR_LEFT_REAR

      public static final int MASK1_DOOR_LEFT_REAR
      See Also:
    • MASK1_WINDOW_RIGHT_FRONT

      public static final int MASK1_WINDOW_RIGHT_FRONT
      See Also:
    • MASK1_WINDOW_RIGHT_REAR

      public static final int MASK1_WINDOW_RIGHT_REAR
      See Also:
    • MASK1_WINDOW_LEFT_FRONT

      public static final int MASK1_WINDOW_LEFT_FRONT
      See Also:
    • MASK1_WINDOW_LEFT_REAR

      public static final int MASK1_WINDOW_LEFT_REAR
      See Also:
    • MASK1_WINDOW_FRONT

      public static final int MASK1_WINDOW_FRONT
      See Also:
    • MASK1_WINDOW_REAR

      public static final int MASK1_WINDOW_REAR
      See Also:
    • MASK1_GUARD_RIGHT_FRONT

      public static final int MASK1_GUARD_RIGHT_FRONT
      See Also:
    • MASK1_GUARD_RIGHT_REAR

      public static final int MASK1_GUARD_RIGHT_REAR
      See Also:
    • MASK1_GUARD_LEFT_FRONT

      public static final int MASK1_GUARD_LEFT_FRONT
      See Also:
    • MASK1_GUARD_LEFT_REAR

      public static final int MASK1_GUARD_LEFT_REAR
      See Also:
    • MASK2_ROOF

      public static final int MASK2_ROOF
      See Also:
    • MASK2_LIGHT_RIGHT_FRONT

      public static final int MASK2_LIGHT_RIGHT_FRONT
      See Also:
    • MASK2_LIGHT_LEFT_FRONT

      public static final int MASK2_LIGHT_LEFT_FRONT
      See Also:
    • MASK2_LIGHT_RIGHT_REAR

      public static final int MASK2_LIGHT_RIGHT_REAR
      See Also:
    • MASK2_LIGHT_LEFT_REAR

      public static final int MASK2_LIGHT_LEFT_REAR
      See Also:
    • MASK2_BRAKE_RIGHT

      public static final int MASK2_BRAKE_RIGHT
      See Also:
    • MASK2_BRAKE_LEFT

      public static final int MASK2_BRAKE_LEFT
      See Also:
    • MASK2_LIGHTBAR_RIGHT

      public static final int MASK2_LIGHTBAR_RIGHT
      See Also:
    • MASK2_LIGHTBAR_LEFT

      public static final int MASK2_LIGHTBAR_LEFT
      See Also:
    • MASK2_HOOD

      public static final int MASK2_HOOD
      See Also:
    • MASK2_BOOT

      public static final int MASK2_BOOT
      See Also:
    • PHYSICS_Z_SCALE

      public static final float PHYSICS_Z_SCALE
      See Also:
    • RADIUS

      public static final float RADIUS
      See Also:
    • PLUS_RADIUS

      public static final float PLUS_RADIUS
      See Also:
    • FADE_DISTANCE

      public static final int FADE_DISTANCE
      See Also:
    • RANDOMIZE_CONTAINER_CHANCE

      public static final int RANDOMIZE_CONTAINER_CHANCE
      See Also:
    • ENGINE_SOUND_RADIUS

      public static final int ENGINE_SOUND_RADIUS
      See Also:
    • AMBIENT_SOUND_RADIUS

      public static final int AMBIENT_SOUND_RADIUS
      See Also:
    • SIREN_WORLDSOUND_RADIUS

      public static final int SIREN_WORLDSOUND_RADIUS
      See Also:
    • SIREN_WORLDSOUND_VOLUME

      public static final int SIREN_WORLDSOUND_VOLUME
      See Also:
    • TRAILER_LINEAR_LOWER_LIMIT_X

      public static final float TRAILER_LINEAR_LOWER_LIMIT_X
      See Also:
    • TRAILER_LINEAR_LOWER_LIMIT_Y

      public static final float TRAILER_LINEAR_LOWER_LIMIT_Y
      See Also:
    • TRAILER_LINEAR_LOWER_LIMIT_Z

      public static final float TRAILER_LINEAR_LOWER_LIMIT_Z
      See Also:
    • TRAILER_LINEAR_UPPER_LIMIT_X

      public static final float TRAILER_LINEAR_UPPER_LIMIT_X
      See Also:
    • TRAILER_LINEAR_UPPER_LIMIT_Y

      public static final float TRAILER_LINEAR_UPPER_LIMIT_Y
      See Also:
    • TRAILER_LINEAR_UPPER_LIMIT_Z

      public static final float TRAILER_LINEAR_UPPER_LIMIT_Z
      See Also:
    • TRAILER_ANGULAR_LOWER_LIMIT_X

      public static final float TRAILER_ANGULAR_LOWER_LIMIT_X
      See Also:
    • TRAILER_ANGULAR_LOWER_LIMIT_Y

      public static final float TRAILER_ANGULAR_LOWER_LIMIT_Y
      See Also:
    • TRAILER_ANGULAR_LOWER_LIMIT_Z

      public static final float TRAILER_ANGULAR_LOWER_LIMIT_Z
      See Also:
    • TRAILER_ANGULAR_UPPER_LIMIT_X

      public static final float TRAILER_ANGULAR_UPPER_LIMIT_X
      See Also:
    • TRAILER_ANGULAR_UPPER_LIMIT_Y

      public static final float TRAILER_ANGULAR_UPPER_LIMIT_Y
      See Also:
    • TRAILER_ANGULAR_UPPER_LIMIT_Z

      public static final float TRAILER_ANGULAR_UPPER_LIMIT_Z
      See Also:
    • MINIMUM_DOT_UPRIGHT

      public static final float MINIMUM_DOT_UPRIGHT
      See Also:
    • noAuthorization

      public static final byte noAuthorization
      See Also:
    • POSITION_HISTORY_MAX_ENTRIES

      public static final int POSITION_HISTORY_MAX_ENTRIES
      See Also:
    • POSITION_HISTORY_INTERVAL_MS

      public static final long POSITION_HISTORY_INTERVAL_MS
      See Also:
    • HIT_VEHICLE_MAX_DISTANCE_TILES

      public static final double HIT_VEHICLE_MAX_DISTANCE_TILES
      See Also:
    • MIN_HIT_SPEED_TILES_PER_SECOND

      public static final float MIN_HIT_SPEED_TILES_PER_SECOND
      See Also:
    • YURI_FORCE_FIELD

      public static final boolean YURI_FORCE_FIELD
      See Also:
    • DOT_PRODUCT_ATTACH_TRAILER_FORWARD

      public static final float DOT_PRODUCT_ATTACH_TRAILER_FORWARD
      See Also:
    • DOT_PRODUCT_ATTACH_TRAILER_UP

      public static final float DOT_PRODUCT_ATTACH_TRAILER_UP
      See Also:
    • renderToTexture

      public static boolean renderToTexture
    • centerOfMassMagic

      public static float centerOfMassMagic
    • vehicleShadow

      public static Texture vehicleShadow
    • models

      public final ArrayList<BaseVehicle.ModelInfo> models
    • chunk

      public IsoChunk chunk
    • polyDirty

      public boolean polyDirty
    • vehicleId

      public short vehicleId
    • sqlId

      public int sqlId
    • serverRemovedFromWorld

      public boolean serverRemovedFromWorld
    • interpolation

      public VehicleInterpolation interpolation
    • waitFullUpdate

      public boolean waitFullUpdate
    • throttle

      public float throttle
    • transmissionNumber

      public TransmissionNumber transmissionNumber
    • transmissionChangeTime

      public final UpdateLimit transmissionChangeTime
    • hasExtendOffset

      public boolean hasExtendOffset
    • hasExtendOffsetExiting

      public boolean hasExtendOffsetExiting
    • savedPhysicsZ

      public float savedPhysicsZ
    • savedRot

      public final org.joml.Quaternionf savedRot
    • jniTransform

      public final Transform jniTransform
    • jniIsCollide

      public boolean jniIsCollide
    • jniLinearVelocity

      public final org.joml.Vector3f jniLinearVelocity
    • netPlayerAuthorization

      public BaseVehicle.Authorization netPlayerAuthorization
    • netPlayerId

      public short netPlayerId
    • netPlayerTimeout

      public int netPlayerTimeout
    • authSimulationHash

      public int authSimulationHash
    • authSimulationTime

      public long authSimulationTime
    • frontEndDurability

      public int frontEndDurability
    • rearEndDurability

      public int rearEndDurability
    • rust

      public float rust
    • colorHue

      public float colorHue
    • colorSaturation

      public float colorSaturation
    • colorValue

      public float colorValue
    • currentFrontEndDurability

      public int currentFrontEndDurability
    • currentRearEndDurability

      public int currentRearEndDurability
    • collideX

      public float collideX
    • collideY

      public float collideY
    • shadowCoord

      public final VehiclePoly shadowCoord
    • MAX_WHEELS

      public static final int MAX_WHEELS
      See Also:
    • PHYSICS_PARAM_COUNT

      public static final int PHYSICS_PARAM_COUNT
      See Also:
    • wheelInfo

      public final BaseVehicle.WheelInfo[] wheelInfo
    • ramSound

      public long ramSound
    • ramSoundTime

      public long ramSoundTime
    • headlightsOn

      public boolean headlightsOn
    • stoplightsOn

      public boolean stoplightsOn
    • windowLightsOn

      public boolean windowLightsOn
    • soundHornOn

      public boolean soundHornOn
    • soundBackMoveOn

      public boolean soundBackMoveOn
    • previouslyEntered

      public boolean previouslyEntered
    • previouslyMoved

      public boolean previouslyMoved
    • lightbarLightsMode

      public final LightbarLightsMode lightbarLightsMode
    • lightbarSirenMode

      public final LightbarSirenMode lightbarSirenMode
    • updateFlags

      public short updateFlags
    • addedToWorld

      public boolean addedToWorld
    • ignitionSwitch

      public ItemContainer ignitionSwitch
    • keysContainerId

      public int keysContainerId
    • keySpawned

      public byte keySpawned
    • vehicleTransform

      public final org.joml.Matrix4f vehicleTransform
    • renderTransform

      public final org.joml.Matrix4f renderTransform
    • physicActiveCheck

      public long physicActiveCheck
    • constraintChangedTime

      public long constraintChangedTime
    • specificDistributionId

      public String specificDistributionId
    • constraintTowing

      public int constraintTowing
    • isActive

      public boolean isActive
    • isStatic

      public boolean isStatic
    • isReliable

      public boolean isReliable
    • animals

      public ArrayList<IsoAnimal> animals
    • timeSinceLastAuth

      public float timeSinceLastAuth
    • TL_transform_pool

      public static final ThreadLocal<BaseVehicle.TransformPool> TL_transform_pool
    • TL_vector3_pool

      public static final ThreadLocal<BaseVehicle.Vector3ObjectPool> TL_vector3_pool
    • TL_vector2f_pool

      public static final ThreadLocal<BaseVehicle.Vector2fObjectPool> TL_vector2f_pool
    • TL_vector3f_pool

      public static final ThreadLocal<BaseVehicle.Vector3fObjectPool> TL_vector3f_pool
    • TL_vector4f_pool

      public static final ThreadLocal<BaseVehicle.Vector4fObjectPool> TL_vector4f_pool
    • TL_matrix4f_pool

      public static final ThreadLocal<BaseVehicle.Matrix4fObjectPool> TL_matrix4f_pool
    • TL_quaternionf_pool

      public static final ThreadLocal<BaseVehicle.QuaternionfObjectPool> TL_quaternionf_pool
  • Constructor Details

    • BaseVehicle

      public BaseVehicle(IsoCell cell)
  • Method Details

    • getSqlId

      public int getSqlId()
    • allocMatrix4f

      public static org.joml.Matrix4f allocMatrix4f()
    • releaseMatrix4f

      public static void releaseMatrix4f(org.joml.Matrix4f v)
    • allocQuaternionf

      public static org.joml.Quaternionf allocQuaternionf()
    • releaseQuaternionf

      public static void releaseQuaternionf(org.joml.Quaternionf q)
    • allocTransform

      public static Transform allocTransform()
    • releaseTransform

      public static void releaseTransform(Transform t)
    • allocVector2

      public static Vector2 allocVector2()
    • releaseVector2

      public static void releaseVector2(Vector2 v)
    • allocVector3

      public static Vector3 allocVector3()
    • releaseVector3

      public static void releaseVector3(Vector3 v)
    • allocVector2f

      public static org.joml.Vector2f allocVector2f()
    • releaseVector2f

      public static void releaseVector2f(org.joml.Vector2f vector2f)
    • allocVector3f

      public static org.joml.Vector3f allocVector3f()
    • releaseVector4f

      public static void releaseVector4f(org.joml.Vector4f vector4f)
    • allocVector4f

      public static org.joml.Vector4f allocVector4f()
    • releaseVector3f

      public static void releaseVector3f(org.joml.Vector3f vector3f)
    • LoadAllVehicleTextures

      public static void LoadAllVehicleTextures()
    • LoadVehicleTextures

      public static void LoadVehicleTextures(VehicleScript script)
    • LoadVehicleTexture

      public static Texture LoadVehicleTexture(String name)
    • LoadVehicleTexture

      public static Texture LoadVehicleTexture(String name, int flags)
    • setNetPlayerAuthorization

      public void setNetPlayerAuthorization(BaseVehicle.Authorization netPlayerAuthorization, int netPlayerId)
    • isNetPlayerAuthorization

      public boolean isNetPlayerAuthorization(BaseVehicle.Authorization netPlayerAuthorization)
    • isNetPlayerId

      public boolean isNetPlayerId(short netPlayerId)
    • getNetPlayerId

      public short getNetPlayerId()
    • getAuthorizationDescription

      public String getAuthorizationDescription()
    • getFakeSpeedModifier

      public static float getFakeSpeedModifier()
    • isLocalPhysicSim

      public boolean isLocalPhysicSim()
    • addImpulse

      public void addImpulse(org.joml.Vector3f impulse, org.joml.Vector3f relPos)
    • setEngineSpeed

      public void setEngineSpeed(double speed)
    • addEngineSpeed

      public void addEngineSpeed(double speed)
    • getEngineSpeed

      public double getEngineSpeed()
      Specified by:
      getEngineSpeed in interface VehicleSoundOwner
    • getTransmissionNumberLetter

      public String getTransmissionNumberLetter()
    • getTransmissionNumber

      public int getTransmissionNumber()
      Specified by:
      getTransmissionNumber in interface VehicleSoundOwner
    • getTransmissionNumberEnum

      public TransmissionNumber getTransmissionNumberEnum()
    • setClientForce

      public void setClientForce(float force)
    • getClientForce

      public float getClientForce()
    • getForce

      public float getForce()
    • shouldAnimRecorderBeActive

      public boolean shouldAnimRecorderBeActive()
      Overrides:
      shouldAnimRecorderBeActive in class IsoMovingObject
    • getObjectName

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

      public void createPhysics()
    • createPhysics

      public void createPhysics(boolean spawnSwap)
    • isPreviouslyEntered

      public boolean isPreviouslyEntered()
    • setPreviouslyEntered

      public void setPreviouslyEntered(boolean bool)
    • isPreviouslyMoved

      public boolean isPreviouslyMoved()
    • setPreviouslyMoved

      public void setPreviouslyMoved(boolean bool)
    • getKeySpawned

      public boolean getKeySpawned()
    • putKeyToZombie

      public void putKeyToZombie(IsoZombie zombie)
    • putKeyToContainer

      public void putKeyToContainer(ItemContainer container, IsoGridSquare sq, IsoObject obj)
    • putKeyToContainerServer

      public void putKeyToContainerServer(InventoryItem item, IsoGridSquare sq, IsoObject obj)
    • putKeyToWorld

      public void putKeyToWorld(IsoGridSquare sq)
    • addKeyToWorld

      public void addKeyToWorld()
    • addKeyToWorld

      public void addKeyToWorld(boolean crashed)
    • addKeyToGloveBox

      public void addKeyToGloveBox()
    • addBuildingKeyToGloveBox

      public void addBuildingKeyToGloveBox(IsoGridSquare square)
    • createVehicleKey

      public InventoryItem createVehicleKey()
    • addKeyToSquare

      public boolean addKeyToSquare(IsoGridSquare sq)
    • addKeyToSquare

      public boolean addKeyToSquare(IsoGridSquare sq, boolean crashed)
    • addKeyToSquare2

      public boolean addKeyToSquare2(IsoGridSquare sq, int x2)
    • addKeyToSquare2

      public boolean addKeyToSquare2(IsoGridSquare sq, int x2, boolean crashed)
    • toggleLockedDoor

      public void toggleLockedDoor(VehiclePart part, IsoGameCharacter chr, boolean locked)
    • canLockDoor

      public boolean canLockDoor(VehiclePart part, IsoGameCharacter chr)
    • canUnlockDoor

      public boolean canUnlockDoor(VehiclePart part, IsoGameCharacter chr)
    • canOpenDoor

      public boolean canOpenDoor(VehiclePart part, IsoGameCharacter chr)
    • setGeneralPartCondition

      public void setGeneralPartCondition(float baseQuality, float chanceToSpawnDamaged)
    • getController

      public CarController getController()
    • getSurroundVehicle

      public SurroundVehicle getSurroundVehicle()
    • getSkinCount

      public int getSkinCount()
    • getSkinIndex

      public int getSkinIndex()
    • setSkinIndex

      public void setSkinIndex(int index)
    • updateSkin

      public void updateSkin()
    • getShadowTexture

      public Texture getShadowTexture()
    • getScript

      public VehicleScript getScript()
      Specified by:
      getScript in interface VehiclePartOwner
      Specified by:
      getScript in interface VehicleSoundOwner
    • getEngineCondition

      public int getEngineCondition()
      Specified by:
      getEngineCondition in interface VehicleSoundOwner
    • getEngineState

      public BaseVehicle.engineStateTypes getEngineState()
      Specified by:
      getEngineState in interface VehicleSoundOwner
    • isEngineSounding

      public boolean isEngineSounding()
      Specified by:
      isEngineSounding in interface VehicleSoundOwner
    • isAlarmSounding

      public boolean isAlarmSounding()
      Specified by:
      isAlarmSounding in interface VehicleSoundOwner
    • isBrakePedalPressed

      public boolean isBrakePedalPressed()
      Specified by:
      isBrakePedalPressed in interface VehicleSoundOwner
    • isGasPedalPressed

      public boolean isGasPedalPressed()
      Specified by:
      isGasPedalPressed in interface VehicleSoundOwner
    • getRoadMaterial

      public ParameterVehicleRoadMaterial.Material getRoadMaterial()
      Specified by:
      getRoadMaterial in interface VehicleSoundOwner
    • getChosenAlarmSound

      public String getChosenAlarmSound()
      Specified by:
      getChosenAlarmSound in interface VehicleSoundOwner
    • isBackupBeeperSounding

      public boolean isBackupBeeperSounding()
      Specified by:
      isBackupBeeperSounding in interface VehicleSoundOwner
    • isDoorAlarmSounding

      public boolean isDoorAlarmSounding()
      Specified by:
      isDoorAlarmSounding in interface VehicleSoundOwner
    • isHornSounding

      public boolean isHornSounding()
      Specified by:
      isHornSounding in interface VehicleSoundOwner
    • getVehicleSoundEmitter

      public BaseSoundEmitter getVehicleSoundEmitter()
      Specified by:
      getVehicleSoundEmitter in interface VehicleSoundOwner
    • setScript

      public void setScript(String name)
    • isListenerInRange

      public boolean isListenerInRange(float range)
      Specified by:
      isListenerInRange in interface VehicleSoundOwner
    • getScriptName

      public String getScriptName()
      Specified by:
      getScriptName in interface VehicleSoundOwner
      Overrides:
      getScriptName in class IsoObject
    • setScriptName

      public void setScriptName(String name)
    • setScript

      public void setScript()
    • scriptReloaded

      public void scriptReloaded()
    • scriptReloaded

      public void scriptReloaded(boolean spawnSwap)
    • getSkin

      public String getSkin()
    • setModelVisible

      public BaseVehicle.ModelInfo setModelVisible(VehiclePart part, VehicleScript.Model scriptModel, boolean visible)
      Specified by:
      setModelVisible in interface VehiclePartOwner
    • getMaxPassengers

      public int getMaxPassengers()
    • setPassenger

      public boolean setPassenger(int seat, IsoGameCharacter chr, org.joml.Vector3f offset)
    • clearPassenger

      public boolean clearPassenger(int seat)
    • hasPassenger

      public boolean hasPassenger()
    • getPassenger

      public BaseVehicle.Passenger getPassenger(int seat)
    • getCharacter

      public IsoGameCharacter getCharacter(int seat)
    • getSeat

      public int getSeat(IsoGameCharacter chr)
    • isDriver

      public boolean isDriver(IsoGameCharacter chr)
    • getWorldPos

      public org.joml.Vector3f getWorldPos(org.joml.Vector3f localPos, org.joml.Vector3f worldPos, VehicleScript script)
    • getWorldPos

      public org.joml.Vector3f getWorldPos(float localX, float localY, float localZ, org.joml.Vector3f worldPos, VehicleScript script)
    • getWorldPos

      public org.joml.Vector3f getWorldPos(org.joml.Vector3f localPos, org.joml.Vector3f worldPos)
    • getWorldPos

      public org.joml.Vector3f getWorldPos(float localX, float localY, float localZ, org.joml.Vector3f worldPos)
    • getLocalPos

      public org.joml.Vector3f getLocalPos(org.joml.Vector3f worldPos, org.joml.Vector3f localPos)
    • getLocalPos

      public org.joml.Vector3f getLocalPos(float worldX, float worldY, float worldZ, org.joml.Vector3f localPos)
    • getPassengerLocalPos

      public org.joml.Vector3f getPassengerLocalPos(int seat, org.joml.Vector3f v)
    • getPassengerWorldPos

      public org.joml.Vector3f getPassengerWorldPos(int seat, org.joml.Vector3f out)
    • getPassengerPositionWorldPos

      public org.joml.Vector3f getPassengerPositionWorldPos(VehicleScript.Position posn, org.joml.Vector3f out)
    • getPassengerPositionWorldPos

      public org.joml.Vector3f getPassengerPositionWorldPos(float x, float y, float z, org.joml.Vector3f out)
    • getPassengerAnim

      public VehicleScript.Anim getPassengerAnim(int seat, String id)
    • getPassengerPosition

      public VehicleScript.Position getPassengerPosition(int seat, String id)
    • getPassengerDoor

      public VehiclePart getPassengerDoor(int seat)
    • getPassengerDoor2

      public VehiclePart getPassengerDoor2(int seat)
    • isPositionOnLeftOrRight

      public boolean isPositionOnLeftOrRight(float x, float y)
    • haveOneDoorUnlocked

      public boolean haveOneDoorUnlocked()
    • getPassengerArea

      public String getPassengerArea(int seat)
    • playPassengerAnim

      public void playPassengerAnim(int seat, String animId)
    • playPassengerAnim

      public void playPassengerAnim(int seat, String animId, IsoGameCharacter chr)
    • playPassengerSound

      public void playPassengerSound(int seat, String animId)
    • playPartAnim

      public void playPartAnim(VehiclePart part, String animId)
    • playActorAnim

      public void playActorAnim(VehiclePart part, String animId, IsoGameCharacter chr)
    • playPartSound

      public void playPartSound(VehiclePart part, IsoPlayer player, String animId)
    • setCharacterPosition

      public void setCharacterPosition(IsoGameCharacter chr, int seat, String positionId)
    • transmitCharacterPosition

      public void transmitCharacterPosition(int seat, String positionId)
    • setCharacterPositionToAnim

      public void setCharacterPositionToAnim(IsoGameCharacter chr, int seat, String animId)
    • getPassengerSwitchSeatCount

      public int getPassengerSwitchSeatCount(int seat)
    • getPassengerSwitchSeat

      public VehicleScript.Passenger.SwitchSeat getPassengerSwitchSeat(int seat, int index)
    • getSwitchSeatAnimName

      public String getSwitchSeatAnimName(int seatFrom, int seatTo)
    • getSwitchSeatAnimRate

      public float getSwitchSeatAnimRate(int seatFrom, int seatTo)
    • getSwitchSeatSound

      public String getSwitchSeatSound(int seatFrom, int seatTo)
    • canSwitchSeat

      public boolean canSwitchSeat(int seatFrom, int seatTo)
    • switchSeat

      public void switchSeat(IsoGameCharacter chr, int seatTo)
    • playSwitchSeatAnim

      public void playSwitchSeatAnim(int seatFrom, int seatTo)
    • isSeatOccupied

      public boolean isSeatOccupied(int seat)
    • isSeatInstalled

      public boolean isSeatInstalled(int seat)
    • isSeatHoldingItems

      public boolean isSeatHoldingItems(int seat)
    • isSeatHoldingItems

      public boolean isSeatHoldingItems(VehiclePart seat)
    • getAllSeatParts

      public ArrayList<VehiclePart> getAllSeatParts()
    • getAllSeatParts

      public ArrayList<VehiclePart> getAllSeatParts(ArrayList<VehiclePart> results)
    • isPointLeftOfCenter

      public boolean isPointLeftOfCenter(float x, float y)
    • getBestSeat

      public int getBestSeat(IsoGameCharacter chr)
    • getEnterSeatDistance

      public float getEnterSeatDistance(int seat, float x, float y)
    • updateHasExtendOffsetForExit

      public void updateHasExtendOffsetForExit(IsoGameCharacter chr)
    • updateHasExtendOffsetForExitEnd

      public void updateHasExtendOffsetForExitEnd(IsoGameCharacter chr)
    • updateHasExtendOffset

      public void updateHasExtendOffset(IsoGameCharacter chr)
    • getUseablePart

      public VehiclePart getUseablePart(IsoGameCharacter chr)
    • getUseablePart

      public VehiclePart getUseablePart(IsoGameCharacter chr, boolean checkDir)
    • distanceToManhatten

      public float distanceToManhatten(float x, float y)
    • getClosestWindow

      public VehiclePart getClosestWindow(IsoGameCharacter chr)
    • getFacingPosition

      public Vector2 getFacingPosition(IsoGameCharacter chr, Vector2 out)
    • enter

      public boolean enter(int seat, IsoGameCharacter chr, org.joml.Vector3f offset)
    • enter

      public boolean enter(int seat, IsoGameCharacter chr)
    • enterRSync

      public boolean enterRSync(int seat, IsoGameCharacter chr, BaseVehicle v)
    • exit

      public boolean exit(IsoGameCharacter chr)
    • exitRSync

      public boolean exitRSync(IsoGameCharacter chr)
    • hasRoof

      public boolean hasRoof(int seat)
    • showPassenger

      public boolean showPassenger(int seat)
    • showPassenger

      public boolean showPassenger(IsoGameCharacter chr)
    • save

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

      public void load(ByteBuffer input, int worldVersion, boolean isDebugSave) throws IOException
      Overrides:
      load in class IsoMovingObject
      Throws:
      IOException
    • saveChange

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

      public void loadChange(IsoObjectChange change, ByteBufferReader bb)
      Overrides:
      loadChange in class IsoObject
    • softReset

      public void softReset()
      Overrides:
      softReset in class IsoObject
    • trySpawnKey

      public void trySpawnKey()
    • trySpawnKey

      public void trySpawnKey(boolean crashed)
    • shouldCollideWithCharacters

      public boolean shouldCollideWithCharacters()
    • shouldCollideWithObjects

      public boolean shouldCollideWithObjects()
    • breakingObjects

      public void breakingObjects()
    • damageObjects

      public void damageObjects(float damage)
    • update

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

      public boolean shouldUpdateInMeta()
    • getMinimumSimulationLevel

      public UpdateSchedulerSimulationLevel getMinimumSimulationLevel()
      Overrides:
      getMinimumSimulationLevel in class IsoMovingObject
    • applyAccumulatedImpulsesFromHitObjectsToPhysics

      public void applyAccumulatedImpulsesFromHitObjectsToPhysics()
    • applyAllImpulsesFromProneCharacters

      public void applyAllImpulsesFromProneCharacters()
    • getFudgedMass

      public float getFudgedMass()
    • isInvalidChunkAround

      public boolean isInvalidChunkAround()
    • isInvalidChunkAhead

      public boolean isInvalidChunkAhead()
    • isInvalidChunkBehind

      public boolean isInvalidChunkBehind()
    • isInvalidChunkAround

      public boolean isInvalidChunkAround(boolean moveW, boolean moveE, boolean moveN, boolean moveS)
    • postupdate

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

      public boolean shouldSnapZToCurrentSquare()
      Overrides:
      shouldSnapZToCurrentSquare in class IsoMovingObject
    • damageFromHitChr

      public void damageFromHitChr(int dmgFront, int dmgBack)
    • authorizationClientCollide

      public void authorizationClientCollide(IsoPlayer driver)
    • authorizationServerCollide

      public void authorizationServerCollide(short playerId, boolean isCollide)
    • authorizationServerOnSeat

      public void authorizationServerOnSeat(IsoPlayer player, boolean enter)
    • hasAuthorization

      public boolean hasAuthorization(UdpConnection connection)
    • netPlayerFromServerUpdate

      public void netPlayerFromServerUpdate(BaseVehicle.Authorization authorization, short authorizationPlayer)
    • getWorldTransform

      public Transform getWorldTransform(Transform out)
    • setWorldTransform

      public void setWorldTransform(Transform in)
    • flipUpright

      public void flipUpright()
    • setAngles

      public void setAngles(float degreesX, float degreesY, float degreesZ)
    • getAngleX

      public float getAngleX()
    • getAngleY

      public float getAngleY()
    • getAngleZ

      public float getAngleZ()
    • setDebugZ

      public void setDebugZ(float z)
    • setPhysicsActive

      public void setPhysicsActive(boolean active)
    • setPhysicsActive

      public void setPhysicsActive(boolean active, boolean setStatic)
    • isPhysicsActive

      public boolean isPhysicsActive()
    • getDebugZ

      public float getDebugZ()
    • getPoly

      public VehiclePoly getPoly()
    • getPolyPlusRadius

      public VehiclePoly getPolyPlusRadius()
    • getForwardVector

      public org.joml.Vector3f getForwardVector(org.joml.Vector3f out)
    • getUpVector

      public org.joml.Vector3f getUpVector(org.joml.Vector3f out)
    • getUpVectorDot

      public float getUpVectorDot()
    • isStopped

      public boolean isStopped()
    • setSpeedKmHour

      public void setSpeedKmHour(float speedKmHour)
    • getCurrentSpeedKmHour

      public float getCurrentSpeedKmHour()
      Specified by:
      getCurrentSpeedKmHour in interface VehicleSoundOwner
    • getCurrentAbsoluteSpeedKmHour

      public float getCurrentAbsoluteSpeedKmHour()
    • getLinearVelocity

      public org.joml.Vector3f getLinearVelocity(org.joml.Vector3f out)
    • getSpeed2D

      public float getSpeed2D()
    • isAtRest

      public boolean isAtRest()
    • updatePhysics

      public void updatePhysics()
    • checkSurroundingChunks

      public void checkSurroundingChunks()
    • updatePhysicsNetwork

      public void updatePhysicsNetwork()
    • checkPhysicsValidWithServer

      public void checkPhysicsValidWithServer()
    • updateControls

      public void updateControls()
    • isKeyboardControlled

      public boolean isKeyboardControlled()
    • getJoypad

      public int getJoypad()
    • Damage

      public void Damage(float amount)
      Overrides:
      Damage in class IsoObject
    • HitByVehicle

      public void HitByVehicle(BaseVehicle vehicle, float amount)
      Overrides:
      HitByVehicle in class IsoObject
    • crash

      public void crash(float delta, boolean front)
    • addDamageFrontHitAChr

      public void addDamageFrontHitAChr(int dmg)
    • addDamageRearHitAChr

      public void addDamageRearHitAChr(int dmg)
    • getClosestPointOnExtents

      public float getClosestPointOnExtents(float x, float y, org.joml.Vector2f closest)
    • getClosestPointOnPoly

      public float getClosestPointOnPoly(float x, float y, org.joml.Vector2f closest)
    • getClosestPointOnPoly

      public float getClosestPointOnPoly(BaseVehicle other, org.joml.Vector2f pointSelf, org.joml.Vector2f pointOther)
    • intersectLineWithExtents

      public boolean intersectLineWithExtents(float x1, float y1, float x2, float y2, float adjust, org.joml.Vector2f intersection)
    • intersectLineWithPoly

      public boolean intersectLineWithPoly(float x1, float y1, float x2, float y2, org.joml.Vector2f intersection)
    • isCharacterAdjacentTo

      public boolean isCharacterAdjacentTo(IsoGameCharacter chr)
    • testCollisionWithCharacter

      public Vector2 testCollisionWithCharacter(IsoGameCharacter chr, float circleRadius, Vector2 outCollisionPos)
    • testCollisionWithProneCharacter

      public int testCollisionWithProneCharacter(IsoGameCharacter chr, boolean doSound, Vector2 outImpactPosOnVehicle)
    • testCollisionWithCorpse

      public int testCollisionWithCorpse(IsoDeadBody body, boolean doSound)
    • testCollisionWithProneCharacter

      public int testCollisionWithProneCharacter(IsoMovingObject chr, float angleX, float angleY, boolean doSound, Vector2 outImpactPosOnVehicle)
    • testCollisionWithObject

      public Vector2 testCollisionWithObject(IsoObject obj, float circleRadius, Vector2 out)
    • testCollisionWithVehicle

      public boolean testCollisionWithVehicle(BaseVehicle obj)
    • applyImpulseFromHitObject

      public void applyImpulseFromHitObject(IsoObject obj, float mul)
    • applyImpulseFromHitPedestrian

      public void applyImpulseFromHitPedestrian(IsoGameCharacter chr)
    • applyImpulseFromHitPlant

      public void applyImpulseFromHitPlant(IsoObject obj, float mul)
    • applyImpulseGeneric

      public void applyImpulseGeneric(float fromX, float fromY, float fromZ, float impulseDirX, float impulseDirY, float impulseDirZ, float impulseStrength)
    • hitCharacter

      public float hitCharacter(IsoGameCharacter chr, Vector2 impactPosOnVehicle)
    • isPersistentContact

      public boolean isPersistentContact(IsoGameCharacter chr)
    • hitAnimal

      public void hitAnimal(IsoAnimal chr)
    • calculateDamageWithCharacter

      public int calculateDamageWithCharacter(IsoGameCharacter chr)
    • blocked

      public boolean blocked(int x, int y, int z)
    • isIntersectingSquare

      public boolean isIntersectingSquare(int x, int y, int z)
    • isIntersectingSquare

      public boolean isIntersectingSquare(IsoGridSquare sq)
    • isIntersectingSquareWithShadow

      public boolean isIntersectingSquareWithShadow(int x, int y, int z)
    • circleIntersects

      public boolean circleIntersects(float x, float y, float z, float radius)
    • updateLights

      public void updateLights()
    • fixLightbarModelLighting

      public void fixLightbarModelLighting(IsoLightSource ls, org.joml.Vector3f lightPos)
    • updateDamageOverlayLater

      public void updateDamageOverlayLater()
      Specified by:
      updateDamageOverlayLater in interface VehiclePartOwner
    • doDamageOverlay

      public void doDamageOverlay()
    • getBloodIntensity

      public float getBloodIntensity(String id)
    • setBloodIntensity

      public void setBloodIntensity(String id, float intensity)
    • transmitBlood

      public void transmitBlood()
    • doBloodOverlay

      public void doBloodOverlay()
    • isOnScreen

      public boolean isOnScreen()
      Overrides:
      isOnScreen in class IsoObject
    • render

      public void render(float x, float y, float z, ColorInfo col, boolean bDoAttached, boolean bWallLightingPass, Shader shader)
      Specified by:
      render in interface IsoRenderable
      Overrides:
      render in class IsoObject
    • renderlast

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

      public void renderShadow()
    • isEnterBlocked

      public boolean isEnterBlocked(IsoGameCharacter chr, int seat)
    • isExitBlocked

      public boolean isExitBlocked(int seat)
    • isExitBlocked

      public boolean isExitBlocked(IsoGameCharacter chr, int seat)
    • isPassengerUseDoor2

      public boolean isPassengerUseDoor2(IsoGameCharacter chr, int seat)
    • isEnterBlocked2

      public boolean isEnterBlocked2(IsoGameCharacter chr, int seat)
    • isExitBlocked2

      public boolean isExitBlocked2(int seat)
    • areaPositionWorld

      public Vector2 areaPositionWorld(VehicleScript.Area area)
    • areaPositionWorld

      public Vector2 areaPositionWorld(VehicleScript.Area area, Vector2 out)
    • areaPositionWorld4PlayerInteract

      public Vector2 areaPositionWorld4PlayerInteract(VehicleScript.Area area)
    • areaPositionWorld4PlayerInteract

      public Vector2 areaPositionWorld4PlayerInteract(VehicleScript.Area area, Vector2 out)
    • getWheelForwardVector

      public void getWheelForwardVector(int wheelIndex, org.joml.Vector3f out)
    • onEngineStateChanged

      public void onEngineStateChanged(BaseVehicle.engineStateTypes oldState, BaseVehicle.engineStateTypes newState, VehicleEngineStateChangeReason reason)
      Specified by:
      onEngineStateChanged in interface IVehicleEngineListener
    • tryStartEngine

      public void tryStartEngine(boolean haveKey)
    • tryStartEngine

      public void tryStartEngine()
    • engineDoIdle

      public void engineDoIdle()
    • engineDoStarting

      public void engineDoStarting()
    • isStarting

      public boolean isStarting()
    • engineDoRetryingStarting

      public void engineDoRetryingStarting()
    • engineDoStartingSuccess

      public void engineDoStartingSuccess()
    • engineDoStartingFailed

      public void engineDoStartingFailed()
    • engineDoStartingFailed

      public void engineDoStartingFailed(String sound)
    • engineDoStartingFailed

      public void engineDoStartingFailed(VehicleEngineStateChangeReason reason)
    • engineDoStartingFailedNoPower

      public void engineDoStartingFailedNoPower()
    • engineDoRunning

      public void engineDoRunning()
    • engineDoStalling

      public void engineDoStalling()
    • engineDoShuttingDown

      public void engineDoShuttingDown()
    • engineDoShuttingDown

      public void engineDoShuttingDown(String sound)
    • engineDoShuttingDown

      public void engineDoShuttingDown(VehicleEngineStateChangeReason reason)
    • shutOff

      public void shutOff()
    • shutOff

      public void shutOff(String sound)
    • resumeRunningAfterLoad

      public void resumeRunningAfterLoad()
    • isEngineStarted

      public boolean isEngineStarted()
    • isEngineRunning

      public boolean isEngineRunning()
      Specified by:
      isEngineRunning in interface VehicleSoundOwner
    • isEngineWorking

      public boolean isEngineWorking()
      Specified by:
      isEngineWorking in interface VehiclePartOwner
    • isOperational

      public boolean isOperational()
    • isDriveable

      public boolean isDriveable()
    • getEmitter

      public BaseSoundEmitter getEmitter()
    • playSoundImpl

      public long playSoundImpl(String file, IsoObject parent)
    • stopSound

      public int stopSound(long channel)
    • playSound

      public void playSound(String sound)
    • checkVehicleSoundsExists

      public void checkVehicleSoundsExists()
    • updateSounds

      public void updateSounds()
    • updateParts

      public void updateParts()
    • drainBatteryUpdateHack

      public void drainBatteryUpdateHack()
    • getHeadlightsOn

      public boolean getHeadlightsOn()
      Specified by:
      getHeadlightsOn in interface VehiclePartOwner
    • setHeadlightsOn

      public void setHeadlightsOn(boolean on)
    • getWindowLightsOn

      public boolean getWindowLightsOn()
    • setWindowLightsOn

      public void setWindowLightsOn(boolean on)
    • getHeadlightCanEmmitLight

      public boolean getHeadlightCanEmmitLight()
    • getStoplightsOn

      public boolean getStoplightsOn()
    • setStoplightsOn

      public void setStoplightsOn(boolean on)
    • hasHeadlights

      public boolean hasHeadlights()
    • addToWorld

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

      public void addToWorld(boolean crashed)
    • removeFromWorld

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

      public void permanentlyRemove()
    • setEngineFeature

      public void setEngineFeature(int quality, int loudness, int engineForce)
      Specified by:
      setEngineFeature in interface VehiclePartOwner
    • getEngineQuality

      public int getEngineQuality()
      Specified by:
      getEngineQuality in interface VehicleSoundOwner
    • getEngineLoudness

      public int getEngineLoudness()
    • getEnginePower

      public int getEnginePower()
    • getParts

      public VehicleParts getParts()
      Specified by:
      getParts in interface VehiclePartOwner
    • adoptParts

      public void adoptParts(VehicleParts partsNew)
    • getPartForSeatContainer

      public VehiclePart getPartForSeatContainer(int seat)
    • getVehicleItemContainers

      public <T> PZArrayList<ItemContainer> getVehicleItemContainers(T paramToCompare, Invokers.Params2.Boolean.ICallback<T, ItemContainer> isValidPredicate)
    • getVehicleItemContainers

      public <T> PZArrayList<ItemContainer> getVehicleItemContainers(T paramToCompare, Invokers.Params2.Boolean.ICallback<T, ItemContainer> isValidPredicate, PZArrayList<ItemContainer> containerList)
    • transmitPartCondition

      public void transmitPartCondition(VehiclePart part)
      Specified by:
      transmitPartCondition in interface VehiclePartOwner
    • transmitPartItem

      public void transmitPartItem(VehiclePart part)
      Specified by:
      transmitPartItem in interface VehiclePartOwner
    • transmitPartLight

      public void transmitPartLight(VehiclePart part)
      Specified by:
      transmitPartLight in interface VehiclePartOwner
    • transmitPartModData

      public void transmitPartModData(VehiclePart part)
      Specified by:
      transmitPartModData in interface VehiclePartOwner
    • transmitPartUsedDelta

      public void transmitPartUsedDelta(VehiclePart part)
      Specified by:
      transmitPartUsedDelta in interface VehiclePartOwner
    • transmitPartDoor

      public void transmitPartDoor(VehiclePart part)
      Specified by:
      transmitPartDoor in interface VehiclePartOwner
    • transmitPartWindow

      public void transmitPartWindow(VehiclePart part)
      Specified by:
      transmitPartWindow in interface VehiclePartOwner
    • getLightCount

      public int getLightCount()
    • getLightByIndex

      public VehiclePart getLightByIndex(int index)
    • getZone

      public String getZone()
    • setZone

      public void setZone(String name)
    • isInArea

      public boolean isInArea(String areaId, IsoGameCharacter chr)
    • getAreaDist

      public float getAreaDist(String areaId, float x, float y, float z)
    • getAreaDist

      public float getAreaDist(String areaId, IsoGameCharacter chr)
    • getAreaCenter

      public Vector2 getAreaCenter(String areaId)
    • getAreaCenter

      public Vector2 getAreaCenter(String areaId, Vector2 out)
    • getAreaFacingPosition

      public Vector2 getAreaFacingPosition(String areaId, Vector2 out)
    • isInBounds

      public boolean isInBounds(float worldX, float worldY)
    • canAccessContainer

      public boolean canAccessContainer(int partIndex, IsoGameCharacter chr)
    • canInstallPart

      public boolean canInstallPart(IsoGameCharacter chr, VehiclePart part)
    • canUninstallPart

      public boolean canUninstallPart(IsoGameCharacter chr, VehiclePart part)
    • getId

      public short getId()
    • setTireInflation

      public void setTireInflation(int wheelIndex, float inflation)
    • setTireRemoved

      public void setTireRemoved(int wheelIndex, boolean removed)
    • chooseBestAttackPosition

      public org.joml.Vector3f chooseBestAttackPosition(IsoGameCharacter target, IsoGameCharacter attacker, org.joml.Vector3f worldPos)
    • getMinMaxPosition

      public BaseVehicle.MinMaxPosition getMinMaxPosition()
    • getVehicleType

      public String getVehicleType()
    • setVehicleType

      public void setVehicleType(String type)
    • getMaxSpeed

      public float getMaxSpeed()
      Specified by:
      getMaxSpeed in interface VehicleSoundOwner
    • setMaxSpeed

      public void setMaxSpeed(float maxSpeed)
    • lockServerUpdate

      public void lockServerUpdate(long lockTimeMs)
    • changeTransmission

      public void changeTransmission(TransmissionNumber newTransmission)
    • tryHotwire

      public void tryHotwire(int electricityLevel)
    • cheatHotwire

      public void cheatHotwire(boolean hotwired, boolean broken)
    • isKeyIsOnDoor

      public boolean isKeyIsOnDoor()
    • setKeyIsOnDoor

      public void setKeyIsOnDoor(boolean keyIsOnDoor)
    • isHotwired

      public boolean isHotwired()
    • setHotwired

      public void setHotwired(boolean hotwired)
    • isHotwiredBroken

      public boolean isHotwiredBroken()
    • setHotwiredBroken

      public void setHotwiredBroken(boolean hotwiredBroken)
    • getDriver

      public IsoGameCharacter getDriver()
      Specified by:
      getDriver in interface VehiclePartOwner
    • getDriverRegardlessOfTow

      public IsoGameCharacter getDriverRegardlessOfTow()
      Specified by:
      getDriverRegardlessOfTow in interface VehiclePartOwner
    • getPVPPlayerDriver

      public IsoPlayer getPVPPlayerDriver()
    • isKeysInIgnition

      public boolean isKeysInIgnition()
    • setKeysInIgnition

      public void setKeysInIgnition(boolean keysOnContact)
    • putKeyInIgnition

      public void putKeyInIgnition(InventoryItem key, int containerID)
    • removeKeyFromIgnition

      public void removeKeyFromIgnition()
    • putKeyOnDoor

      public void putKeyOnDoor(InventoryItem key)
    • removeKeyFromDoor

      public void removeKeyFromDoor()
    • syncKeyInIgnition

      public void syncKeyInIgnition(boolean inIgnition, boolean onDoor, InventoryItem key)
    • setChosenAlarmSound

      public void setChosenAlarmSound(String soundName)
    • chooseAlarmSound

      public void chooseAlarmSound()
    • onVehicleAlarmEvent

      public void onVehicleAlarmEvent(VehicleAlarmEvent event)
      Specified by:
      onVehicleAlarmEvent in interface IVehicleAlarmListener
    • onAlarmStart

      public void onAlarmStart()
    • onAlarmStop

      public void onAlarmStop()
    • onHornStart

      public void onHornStart()
    • onHornStop

      public void onHornStop()
    • hasBackSignal

      public boolean hasBackSignal()
    • isBackSignalEmitting

      public boolean isBackSignalEmitting()
    • onBackMoveSignalStart

      public void onBackMoveSignalStart()
    • onBackMoveSignalStop

      public void onBackMoveSignalStop()
    • getLightbarLightsModeObject

      public LightbarLightsMode getLightbarLightsModeObject()
      Specified by:
      getLightbarLightsModeObject in interface VehiclePartOwner
    • setLightbarLightsMode

      public void setLightbarLightsMode(int mode)
      Specified by:
      setLightbarLightsMode in interface VehiclePartOwner
    • setLightbarSirenMode

      public void setLightbarSirenMode(int mode)
      Specified by:
      setLightbarSirenMode in interface VehiclePartOwner
      Specified by:
      setLightbarSirenMode in interface VehicleSoundOwner
    • getChoosenParts

      public HashMap<String,String> getChoosenParts()
    • getMass

      public float getMass()
    • setMass

      public void setMass(float mass)
    • getInitialMass

      public float getInitialMass()
    • setInitialMass

      public void setInitialMass(float initialMass)
    • updateTotalMass

      public void updateTotalMass()
      Specified by:
      updateTotalMass in interface VehiclePartOwner
    • getBrakingForce

      public float getBrakingForce()
    • setBrakingForce

      public void setBrakingForce(float brakingForce)
    • getBaseQuality

      public float getBaseQuality()
    • setBaseQuality

      public void setBaseQuality(float baseQuality)
    • getCurrentSteering

      public float getCurrentSteering()
    • setCurrentSteering

      public void setCurrentSteering(float currentSteering)
    • isDoingOffroad

      public boolean isDoingOffroad()
    • isBraking

      public boolean isBraking()
    • setBraking

      public void setBraking(boolean isBraking)
    • updatePartStats

      public void updatePartStats()
      Specified by:
      updatePartStats in interface VehiclePartOwner
    • transmitEngine

      public void transmitEngine()
      Specified by:
      transmitEngine in interface VehiclePartOwner
    • setRust

      public void setRust(float rust)
    • getRust

      public float getRust()
    • transmitRust

      public void transmitRust()
    • transmitAlarmed

      public void transmitAlarmed()
    • transmitColorHSV

      public void transmitColorHSV()
    • transmitSkinIndex

      public void transmitSkinIndex()
    • updateBulletStats

      public void updateBulletStats()
      Specified by:
      updateBulletStats in interface VehiclePartOwner
    • setActiveInBullet

      public void setActiveInBullet(boolean active)
    • areAllDoorsLocked

      public boolean areAllDoorsLocked()
    • isAnyDoorLocked

      public boolean isAnyDoorLocked()
    • getRemainingFuelPercentage

      public float getRemainingFuelPercentage()
    • getMechanicalID

      public int getMechanicalID()
    • setMechanicalID

      public void setMechanicalID(int mechanicalId)
    • needPartsUpdate

      public boolean needPartsUpdate()
    • setNeedPartsUpdate

      public void setNeedPartsUpdate(boolean needPartsUpdate)
    • isAlarmed

      public boolean isAlarmed()
    • setAlarmed

      public void setAlarmed(boolean alarmed)
    • setVehicleAlarm

      public void setVehicleAlarm(VehicleAlarm vehicleAlarm1)
    • getVehicleAlarmObject

      public VehicleAlarm getVehicleAlarmObject()
    • isAlarmActive

      public boolean isAlarmActive()
      Specified by:
      isAlarmActive in interface VehicleSoundOwner
    • isAlarmSoundOn

      public boolean isAlarmSoundOn()
      Specified by:
      isAlarmSoundOn in interface VehicleSoundOwner
    • triggerAlarm

      public void triggerAlarm()
    • isMechanicUIOpen

      public boolean isMechanicUIOpen()
    • setMechanicUIOpen

      public void setMechanicUIOpen(boolean mechanicUiOpen)
    • damagePlayers

      public void damagePlayers(float damage)
    • addRandomDamageFromCrash

      public void addRandomDamageFromCrash(IsoGameCharacter chr, float damage)
    • isTrunkLocked

      public boolean isTrunkLocked()
    • setTrunkLocked

      public void setTrunkLocked(boolean locked)
    • getNearestBodyworkPart

      public VehiclePart getNearestBodyworkPart(IsoGameCharacter chr)
    • getSirenStartTime

      public double getSirenStartTime()
      Specified by:
      getSirenStartTime in interface VehicleSoundOwner
    • setSirenStartTime

      public void setSirenStartTime(double worldAgeHours)
      Specified by:
      setSirenStartTime in interface VehicleSoundOwner
    • repair

      public void repair()
    • isAnyListenerInside

      public boolean isAnyListenerInside()
      Specified by:
      isAnyListenerInside in interface VehicleSoundOwner
    • isSirenActive

      public boolean isSirenActive()
      Specified by:
      isSirenActive in interface VehicleSoundOwner
    • isSirenSounding

      public boolean isSirenSounding()
      Specified by:
      isSirenSounding in interface VehicleSoundOwner
    • getLightbarSirenModeObject

      public LightbarSirenMode getLightbarSirenModeObject()
      Specified by:
      getLightbarSirenModeObject in interface VehiclePartOwner
      Specified by:
      getLightbarSirenModeObject in interface VehicleSoundOwner
    • getMaxWheelSteering

      public float getMaxWheelSteering()
      Specified by:
      getMaxWheelSteering in interface VehicleSoundOwner
    • getMinWheelSkid

      public float getMinWheelSkid()
      Specified by:
      getMinWheelSkid in interface VehicleSoundOwner
    • isAnyTireMissing

      public boolean isAnyTireMissing()
      Specified by:
      isAnyTireMissing in interface VehicleSoundOwner
    • couldCrawlerAttackPassenger

      public boolean couldCrawlerAttackPassenger(IsoGameCharacter chr)
    • isGoodCar

      public boolean isGoodCar()
    • setGoodCar

      public void setGoodCar(boolean isGoodCar)
    • getCurrentKey

      public InventoryItem getCurrentKey()
    • setCurrentKey

      public void setCurrentKey(InventoryItem currentKey)
    • isInForest

      public boolean isInForest()
    • shouldNotHaveLoot

      public boolean shouldNotHaveLoot()
    • isInTrafficJam

      public boolean isInTrafficJam()
    • getOffroadEfficiency

      public float getOffroadEfficiency()
    • applyImpulseFromHitCorpse

      public void applyImpulseFromHitCorpse(IsoDeadBody chr)
    • isDoColor

      public boolean isDoColor()
    • setDoColor

      public void setDoColor(boolean doColor)
    • getBrakeSpeedBetweenUpdate

      public float getBrakeSpeedBetweenUpdate()
      Specified by:
      getBrakeSpeedBetweenUpdate in interface VehiclePartOwner
    • getSquare

      public IsoGridSquare getSquare()
      Specified by:
      getSquare in interface VehiclePartOwner
      Overrides:
      getSquare in class IsoMovingObject
    • setColor

      public void setColor(float value, float saturation, float hue)
    • setColorHSV

      public void setColorHSV(float hue, float saturation, float value)
    • getColorHue

      public float getColorHue()
    • getColorSaturation

      public float getColorSaturation()
    • getColorValue

      public float getColorValue()
    • isRemovedFromWorld

      public boolean isRemovedFromWorld()
    • getInsideTemperature

      public float getInsideTemperature()
    • getAnimationPlayer

      public AnimationPlayer getAnimationPlayer()
    • releaseAnimationPlayers

      public void releaseAnimationPlayers()
    • setAddThumpWorldSound

      public void setAddThumpWorldSound(boolean add)
    • createImpulse

      public void createImpulse(org.joml.Vector3f vec)
    • Thump

      public void Thump(IsoMovingObject thumper, int thumpEventCount)
      Specified by:
      Thump in interface Thumpable
      Overrides:
      Thump in class IsoObject
    • WeaponHit

      public void WeaponHit(IsoGameCharacter chr, HandWeapon weapon)
      Specified by:
      WeaponHit in interface Thumpable
      Overrides:
      WeaponHit in class IsoObject
    • getThumpableFor

      public Thumpable getThumpableFor(IsoGameCharacter chr)
      Specified by:
      getThumpableFor in interface Thumpable
      Overrides:
      getThumpableFor in class IsoObject
    • getThumpCondition

      public float getThumpCondition()
      Specified by:
      getThumpCondition in interface Thumpable
      Overrides:
      getThumpCondition in class IsoObject
    • isRegulator

      public boolean isRegulator()
    • setRegulator

      public void setRegulator(boolean regulator)
    • getRegulatorSpeed

      public float getRegulatorSpeed()
    • setRegulatorSpeed

      public void setRegulatorSpeed(float regulatorSpeed)
    • getCurrentSpeedForRegulator

      public float getCurrentSpeedForRegulator()
    • setVehicleTowing

      public void setVehicleTowing(BaseVehicle vehicleB, String attachmentA, String attachmentB)
    • setVehicleTowedBy

      public void setVehicleTowedBy(BaseVehicle vehicleA, String attachmentA, String attachmentB)
    • getVehicleTowing

      public BaseVehicle getVehicleTowing()
    • getVehicleTowedBy

      public BaseVehicle getVehicleTowedBy()
    • getTowingPartner

      public BaseVehicle getTowingPartner()
    • attachmentExist

      public boolean attachmentExist(String attachmentName)
    • getAttachmentLocalPos

      public org.joml.Vector3f getAttachmentLocalPos(String attachmentName, org.joml.Vector3f v)
    • getAttachmentWorldPos

      public org.joml.Vector3f getAttachmentWorldPos(String attachmentName, org.joml.Vector3f v)
    • setForceBrake

      public void setForceBrake()
    • getTowingLocalPos

      public org.joml.Vector3f getTowingLocalPos(String attachmentName, org.joml.Vector3f v)
    • getTowedByLocalPos

      public org.joml.Vector3f getTowedByLocalPos(String attachmentName, org.joml.Vector3f v)
    • getTowingWorldPos

      public org.joml.Vector3f getTowingWorldPos(String attachmentName, org.joml.Vector3f v)
    • getTowedByWorldPos

      public org.joml.Vector3f getTowedByWorldPos(String attachmentName, org.joml.Vector3f v)
    • getPlayerTrailerLocalPos

      public org.joml.Vector3f getPlayerTrailerLocalPos(String attachmentName, boolean left, org.joml.Vector3f v)
    • getPlayerTrailerWorldPos

      public org.joml.Vector3f getPlayerTrailerWorldPos(String attachmentName, boolean left, org.joml.Vector3f v)
    • drawDirectionLine

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

      public void addPointConstraint(IsoPlayer player, BaseVehicle vehicleB, String attachmentA, String attachmentB)
    • addPointConstraint

      public void addPointConstraint(IsoPlayer player, BaseVehicle vehicleB, String attachmentA, String attachmentB, Boolean remote)
    • authorizationChanged

      public void authorizationChanged(IsoGameCharacter character)
    • constraintChanged

      public void constraintChanged()
    • breakConstraint

      public void breakConstraint(boolean forgetID, boolean remote)
    • breakConstraintOnServer

      public boolean breakConstraintOnServer()
    • beginAttachingTrailer

      public void beginAttachingTrailer()
    • stopAttachingTrailer

      public void stopAttachingTrailer()
    • isAttachingTrailer

      public boolean isAttachingTrailer()
    • canAttachTrailer

      public boolean canAttachTrailer(BaseVehicle vehicleB, String attachmentA, String attachmentB)
    • canAttachTrailer

      public boolean canAttachTrailer(BaseVehicle vehicleB, String attachmentA, String attachmentB, boolean reconnect)
    • positionTrailer

      public void positionTrailer(BaseVehicle trailer)
    • getTowAttachmentSelf

      public String getTowAttachmentSelf()
    • getTowAttachmentOther

      public String getTowAttachmentOther()
    • getVehicleEngineRPM

      public VehicleEngineRPM getVehicleEngineRPM()
    • isBeingTowedBackwards

      public boolean isBeingTowedBackwards()
    • getFMODParameters

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

      public void startEvent(long eventInstance, GameSoundClip clip, boolean remote, 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, boolean remote, BitSet parameterSet)
      Specified by:
      stopEvent in interface fmod.fmod.IFMODParameterUpdater
    • getVehicleSounds

      public VehicleSounds getVehicleSounds()
    • setVehicleSounds

      public void setVehicleSounds(VehicleSounds vehicleSounds1)
    • setSmashed

      public BaseVehicle setSmashed(String location)
    • setSmashed

      public BaseVehicle setSmashed(String location, boolean flipped)
    • isCollided

      public boolean isCollided(IsoGameCharacter character)
    • checkNetworkCollision

      public BaseVehicle.HitVars checkNetworkCollision(IsoGameCharacter target)
    • onHitLandmine

      public void onHitLandmine(IsoGridSquare square)
    • onJump

      public void onJump()
    • updateNetworkHitByVehicle

      public boolean updateNetworkHitByVehicle(IsoGameCharacter target)
    • getAnimalTrailerSize

      public float getAnimalTrailerSize()
    • getAnimals

      public ArrayList<IsoAnimal> getAnimals()
    • getAnimalById

      public IsoAnimal getAnimalById(int animalId)
    • addAnimalFromHandsInTrailer

      public void addAnimalFromHandsInTrailer(IsoAnimal animal, IsoPlayer player)
    • addAnimalFromHandsInTrailer

      public void addAnimalFromHandsInTrailer(IsoDeadBody body, IsoPlayer player)
    • addAnimalInTrailer

      public void addAnimalInTrailer(IsoDeadBody body)
    • addAnimalInTrailer

      public void addAnimalInTrailer(IsoAnimal animal)
    • removeAnimalFromTrailer

      public IsoObject removeAnimalFromTrailer(IsoAnimal animal)
    • replaceGrownAnimalInTrailer

      public void replaceGrownAnimalInTrailer(IsoAnimal current, IsoAnimal grown)
    • getCurrentTotalAnimalSize

      public float getCurrentTotalAnimalSize()
    • setCurrentTotalAnimalSize

      public void setCurrentTotalAnimalSize(float totalAnimalSize)
    • keyNamerVehicle

      public void keyNamerVehicle(InventoryItem item)
    • keyNamerVehicle

      public static void keyNamerVehicle(InventoryItem item, BaseVehicle vehicle)
    • checkZombieKeyForVehicle

      public boolean checkZombieKeyForVehicle(IsoZombie zombie)
    • checkZombieKeyForVehicle

      public boolean checkZombieKeyForVehicle(IsoZombie zombie, String vehicleType)
    • checkForSpecialMatchOne

      public boolean checkForSpecialMatchOne(String one, String two, String three)
    • checkForSpecialMatchTwo

      public boolean checkForSpecialMatchTwo(String one, String two, String three)
    • checkIfGoodVehicleForKey

      public boolean checkIfGoodVehicleForKey()
    • trySpawnVehicleKeyOnZombie

      public boolean trySpawnVehicleKeyOnZombie(IsoZombie zombie)
    • trySpawnVehicleKeyInObject

      public boolean trySpawnVehicleKeyInObject(IsoObject obj)
    • checkSquareForVehicleKeySpot

      public boolean checkSquareForVehicleKeySpot(IsoGridSquare square)
    • checkSquareForVehicleKeySpot

      public boolean checkSquareForVehicleKeySpot(IsoGridSquare square, boolean crashed)
    • checkSquareForVehicleKeySpotContainer

      public boolean checkSquareForVehicleKeySpotContainer(IsoGridSquare square)
    • checkSquareForVehicleKeySpotZombie

      public boolean checkSquareForVehicleKeySpotZombie(IsoGridSquare square)
    • forceVehicleDistribution

      public void forceVehicleDistribution(String distribution)
    • canLightSmoke

      public boolean canLightSmoke(IsoGameCharacter chr)
    • getZombieType

      public ArrayList<String> getZombieType()
    • getRandomZombieType

      public String getRandomZombieType()
    • hasZombieType

      public boolean hasZombieType(String outfit)
    • getFirstZombieType

      public String getFirstZombieType()
    • notKillCrops

      public boolean notKillCrops()
    • hasLighter

      public boolean hasLighter()
    • leftSideFuel

      public boolean leftSideFuel()
    • rightSideFuel

      public boolean rightSideFuel()
    • isCreated

      public boolean isCreated()
    • getTotalContainerItemWeight

      public float getTotalContainerItemWeight()
    • isSirening

      public boolean isSirening()
    • getIntersectPoint

      public org.joml.Vector3f getIntersectPoint(org.joml.Vector3f start, org.joml.Vector3f end, org.joml.Vector3f result)
    • getNearestVehiclePart

      public VehiclePart getNearestVehiclePart(float x, float y, float z, boolean useDestroyed)
    • isInArea

      public boolean isInArea(String areaId, org.joml.Vector3f chr)
    • processHit

      public boolean processHit(IsoGameCharacter isoGameCharacter, HandWeapon weapon, float damage)
    • canAddAnimalInTrailer

      public boolean canAddAnimalInTrailer(IsoAnimal animal)
    • canAddAnimalInTrailer

      public boolean canAddAnimalInTrailer(IsoDeadBody animal)
    • isBurnt

      public boolean isBurnt()
    • isSmashed

      public boolean isSmashed()
    • isBurntOrSmashed

      public boolean isBurntOrSmashed()
    • getSpecialKeyRingChance

      public float getSpecialKeyRingChance()
    • hasLiveBattery

      public boolean hasLiveBattery()
    • setDebugPhysicsRender

      public void setDebugPhysicsRender(boolean addedToWorld)
    • testTouchingVehicle

      public boolean testTouchingVehicle(IsoGameCharacter isoGameCharacter, RagdollController ragdollController)
    • getCurrentOrLastKnownDriver

      public IsoGameCharacter getCurrentOrLastKnownDriver()
    • getSquareForArea

      public IsoGridSquare getSquareForArea(String areaId)
    • partsClear

      public void partsClear()
    • getThrottle

      public float getThrottle()
    • validateHitVehicleDistance

      public boolean validateHitVehicleDistance(float playerX, float playerY)
    • setLocked

      public void setLocked(boolean locked)
    • getNameCoordForPlayer

      public boolean getNameCoordForPlayer(IsoGameCharacter player, float zoom, Vector2 coord)
    • getNameAlignmentForPlayer

      public TextDrawHorizontal getNameAlignmentForPlayer(IsoGameCharacter player)
    • getNamePrefixForPlayer

      public String getNamePrefixForPlayer(IsoGameCharacter player)