Class VehiclePart

java.lang.Object
zombie.vehicles.VehiclePart
All Implemented Interfaces:
ChatElementOwner, WaveSignalDevice

public class VehiclePart
extends java.lang.Object
implements ChatElementOwner, WaveSignalDevice
  • Field Details

    • vehicle

      protected BaseVehicle vehicle
    • bCreated

      protected boolean bCreated
    • partId

      protected java.lang.String partId
    • scriptPart

      protected VehicleScript.Part scriptPart
    • container

      protected ItemContainer container
    • item

      protected InventoryItem item
    • modData

      protected KahluaTable modData
    • lastUpdated

      protected float lastUpdated
    • updateFlags

      protected short updateFlags
    • parent

      protected VehiclePart parent
    • door

      protected VehicleDoor door
    • window

      protected VehicleWindow window
    • children

      protected java.util.ArrayList children
    • category

      protected java.lang.String category
    • condition

      protected int condition
    • specificItem

      protected boolean specificItem
    • wheelFriction

      protected float wheelFriction
    • mechanicSkillInstaller

      protected int mechanicSkillInstaller
    • light

      protected VehicleLight light
    • deviceData

      protected DeviceData deviceData
    • chatElement

      protected ChatElement chatElement
    • hasPlayerInRange

      protected boolean hasPlayerInRange
  • Constructor Details

    • VehiclePart

      public VehiclePart​(BaseVehicle baseVehicle)
  • Method Details

    • getVehicle

      public BaseVehicle getVehicle()
    • setScriptPart

      public void setScriptPart​(VehicleScript.Part part)
    • getScriptPart

      public VehicleScript.Part getScriptPart()
    • getItemContainer

      public ItemContainer getItemContainer()
    • setItemContainer

      public void setItemContainer​(ItemContainer itemContainer)
    • hasModData

      public boolean hasModData()
    • getModData

      public KahluaTable getModData()
    • getLastUpdated

      public float getLastUpdated()
    • setLastUpdated

      public void setLastUpdated​(float float1)
    • getId

      public java.lang.String getId()
    • getIndex

      public int getIndex()
    • getArea

      public java.lang.String getArea()
    • getItemType

      public java.util.ArrayList getItemType()
    • getTable

      public KahluaTable getTable​(java.lang.String string)
    • getInventoryItem

      public InventoryItem getInventoryItem()
    • setInventoryItem

      public void setInventoryItem​(InventoryItem inventoryItem, int int1)
    • setInventoryItem

      public void setInventoryItem​(InventoryItem inventoryItem)
    • doInventoryItemStats

      public void doInventoryItemStats​(InventoryItem inventoryItem, int int1)
    • setRandomCondition

      public void setRandomCondition​(InventoryItem inventoryItem)
    • getNumberByCondition

      public static float getNumberByCondition​(float float1, float float2, float float3)
    • isContainer

      public boolean isContainer()
    • getContainerCapacity

      public int getContainerCapacity()
    • getContainerCapacity

      public int getContainerCapacity​(IsoGameCharacter gameCharacter)
    • setContainerCapacity

      public void setContainerCapacity​(int int1)
    • getContainerContentType

      public java.lang.String getContainerContentType()
    • getContainerContentAmount

      public float getContainerContentAmount()
    • setContainerContentAmount

      public void setContainerContentAmount​(float float1)
    • setContainerContentAmount

      public void setContainerContentAmount​(float float1, boolean boolean1, boolean boolean2)
    • getContainerSeatNumber

      public int getContainerSeatNumber()
    • getLuaFunction

      public java.lang.String getLuaFunction​(java.lang.String string)
    • getScriptModelById

      protected VehicleScript.Model getScriptModelById​(java.lang.String string)
    • setModelVisible

      public void setModelVisible​(java.lang.String string, boolean boolean1)
    • getParent

      public VehiclePart getParent()
    • addChild

      public void addChild​(VehiclePart vehiclePart)
    • getChildCount

      public int getChildCount()
    • getChild

      public VehiclePart getChild​(int int1)
    • getDoor

      public VehicleDoor getDoor()
    • getWindow

      public VehicleWindow getWindow()
    • getChildWindow

      public VehiclePart getChildWindow()
    • findWindow

      public VehicleWindow findWindow()
    • getAnimById

      public VehicleScript.Anim getAnimById​(java.lang.String string)
    • save

      public void save​(java.nio.ByteBuffer byteBuffer) throws java.io.IOException
      Throws:
      java.io.IOException
    • load

      public void load​(java.nio.ByteBuffer byteBuffer, int int1) throws java.io.IOException
      Throws:
      java.io.IOException
    • getWheelIndex

      public int getWheelIndex()
    • createSpotLight

      public void createSpotLight​(float float1, float float2, float float3, float float4, float float5, int int1)
    • getLight

      public VehicleLight getLight()
    • setLightActive

      public void setLightActive​(boolean boolean1)
    • createSignalDevice

      public DeviceData createSignalDevice()
    • hasDevicePower

      public boolean hasDevicePower()
    • getDeviceData

      public DeviceData getDeviceData()
      Specified by:
      getDeviceData in interface WaveSignalDevice
    • setDeviceData

      public void setDeviceData​(DeviceData deviceData)
      Specified by:
      setDeviceData in interface WaveSignalDevice
    • getDelta

      public float getDelta()
      Specified by:
      getDelta in interface WaveSignalDevice
    • setDelta

      public void setDelta​(float float1)
      Specified by:
      setDelta in interface WaveSignalDevice
    • getX

      public float getX()
      Specified by:
      getX in interface ChatElementOwner
      Specified by:
      getX in interface WaveSignalDevice
    • getY

      public float getY()
      Specified by:
      getY in interface ChatElementOwner
      Specified by:
      getY in interface WaveSignalDevice
    • getZ

      public float getZ()
      Specified by:
      getZ in interface ChatElementOwner
      Specified by:
      getZ in interface WaveSignalDevice
    • getSquare

      public IsoGridSquare getSquare()
      Specified by:
      getSquare in interface ChatElementOwner
      Specified by:
      getSquare in interface WaveSignalDevice
    • AddDeviceText

      public void AddDeviceText​(java.lang.String string, float float1, float float2, float float3, java.lang.String string2, int int1)
      Specified by:
      AddDeviceText in interface WaveSignalDevice
    • HasPlayerInRange

      public boolean HasPlayerInRange()
      Specified by:
      HasPlayerInRange in interface WaveSignalDevice
    • updateSignalDevice

      public void updateSignalDevice()
    • getCategory

      public java.lang.String getCategory()
    • setCategory

      public void setCategory​(java.lang.String string)
    • getCondition

      public int getCondition()
    • setCondition

      public void setCondition​(int int1)
    • damage

      public void damage​(int int1)
    • isSpecificItem

      public boolean isSpecificItem()
    • setSpecificItem

      public void setSpecificItem​(boolean boolean1)
    • getWheelFriction

      public float getWheelFriction()
    • setWheelFriction

      public void setWheelFriction​(float float1)
    • getMechanicSkillInstaller

      public int getMechanicSkillInstaller()
    • setMechanicSkillInstaller

      public void setMechanicSkillInstaller​(int int1)
    • getSuspensionDamping

      public float getSuspensionDamping()
    • setSuspensionDamping

      public void setSuspensionDamping​(float float1)
    • getSuspensionCompression

      public float getSuspensionCompression()
    • setSuspensionCompression

      public void setSuspensionCompression​(float float1)
    • getEngineLoudness

      public float getEngineLoudness()
    • setEngineLoudness

      public void setEngineLoudness​(float float1)
    • repair

      public void repair()