Package zombie.vehicles
Class VehiclePart
java.lang.Object
zombie.vehicles.VehiclePart
- All Implemented Interfaces:
ChatElementOwner
,WaveSignalDevice
public class VehiclePart extends java.lang.Object implements ChatElementOwner, WaveSignalDevice
-
Field Summary
Fields Modifier and Type Field Description protected boolean
bCreated
protected java.lang.String
category
protected ChatElement
chatElement
protected java.util.ArrayList
children
protected int
condition
protected ItemContainer
container
protected DeviceData
deviceData
protected VehicleDoor
door
protected boolean
hasPlayerInRange
protected InventoryItem
item
protected float
lastUpdated
protected VehicleLight
light
protected int
mechanicSkillInstaller
protected KahluaTable
modData
protected VehiclePart
parent
protected java.lang.String
partId
protected VehicleScript.Part
scriptPart
protected boolean
specificItem
protected short
updateFlags
protected BaseVehicle
vehicle
protected float
wheelFriction
protected VehicleWindow
window
-
Constructor Summary
Constructors Constructor Description VehiclePart(BaseVehicle baseVehicle)
-
Method Summary
Modifier and Type Method Description void
addChild(VehiclePart vehiclePart)
void
AddDeviceText(java.lang.String string, float float1, float float2, float float3, java.lang.String string2, int int1)
DeviceData
createSignalDevice()
void
createSpotLight(float float1, float float2, float float3, float float4, float float5, int int1)
void
damage(int int1)
void
doInventoryItemStats(InventoryItem inventoryItem, int int1)
VehicleWindow
findWindow()
VehicleScript.Anim
getAnimById(java.lang.String string)
java.lang.String
getArea()
java.lang.String
getCategory()
VehiclePart
getChild(int int1)
int
getChildCount()
VehiclePart
getChildWindow()
int
getCondition()
int
getContainerCapacity()
int
getContainerCapacity(IsoGameCharacter gameCharacter)
float
getContainerContentAmount()
java.lang.String
getContainerContentType()
int
getContainerSeatNumber()
float
getDelta()
DeviceData
getDeviceData()
VehicleDoor
getDoor()
float
getEngineLoudness()
java.lang.String
getId()
int
getIndex()
InventoryItem
getInventoryItem()
ItemContainer
getItemContainer()
java.util.ArrayList
getItemType()
float
getLastUpdated()
VehicleLight
getLight()
java.lang.String
getLuaFunction(java.lang.String string)
int
getMechanicSkillInstaller()
KahluaTable
getModData()
static float
getNumberByCondition(float float1, float float2, float float3)
VehiclePart
getParent()
protected VehicleScript.Model
getScriptModelById(java.lang.String string)
VehicleScript.Part
getScriptPart()
IsoGridSquare
getSquare()
float
getSuspensionCompression()
float
getSuspensionDamping()
KahluaTable
getTable(java.lang.String string)
BaseVehicle
getVehicle()
float
getWheelFriction()
int
getWheelIndex()
VehicleWindow
getWindow()
float
getX()
float
getY()
float
getZ()
boolean
hasDevicePower()
boolean
hasModData()
boolean
HasPlayerInRange()
boolean
isContainer()
boolean
isSpecificItem()
void
load(java.nio.ByteBuffer byteBuffer, int int1)
void
repair()
void
save(java.nio.ByteBuffer byteBuffer)
void
setCategory(java.lang.String string)
void
setCondition(int int1)
void
setContainerCapacity(int int1)
void
setContainerContentAmount(float float1)
void
setContainerContentAmount(float float1, boolean boolean1, boolean boolean2)
void
setDelta(float float1)
void
setDeviceData(DeviceData deviceData)
void
setEngineLoudness(float float1)
void
setInventoryItem(InventoryItem inventoryItem)
void
setInventoryItem(InventoryItem inventoryItem, int int1)
void
setItemContainer(ItemContainer itemContainer)
void
setLastUpdated(float float1)
void
setLightActive(boolean boolean1)
void
setMechanicSkillInstaller(int int1)
void
setModelVisible(java.lang.String string, boolean boolean1)
void
setRandomCondition(InventoryItem inventoryItem)
void
setScriptPart(VehicleScript.Part part)
void
setSpecificItem(boolean boolean1)
void
setSuspensionCompression(float float1)
void
setSuspensionDamping(float float1)
void
setWheelFriction(float float1)
void
updateSignalDevice()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
vehicle
-
bCreated
protected boolean bCreated -
partId
protected java.lang.String partId -
scriptPart
-
container
-
item
-
modData
-
lastUpdated
protected float lastUpdated -
updateFlags
protected short updateFlags -
parent
-
door
-
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
-
deviceData
-
chatElement
-
hasPlayerInRange
protected boolean hasPlayerInRange
-
-
Constructor Details
-
VehiclePart
-
-
Method Details
-
getVehicle
-
setScriptPart
-
getScriptPart
-
getItemContainer
-
setItemContainer
-
hasModData
public boolean hasModData() -
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
-
getInventoryItem
-
setInventoryItem
-
setInventoryItem
-
doInventoryItemStats
-
setRandomCondition
-
getNumberByCondition
public static float getNumberByCondition(float float1, float float2, float float3) -
isContainer
public boolean isContainer() -
getContainerCapacity
public int getContainerCapacity() -
getContainerCapacity
-
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
-
setModelVisible
public void setModelVisible(java.lang.String string, boolean boolean1) -
getParent
-
addChild
-
getChildCount
public int getChildCount() -
getChild
-
getDoor
-
getWindow
-
getChildWindow
-
findWindow
-
getAnimById
-
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
-
setLightActive
public void setLightActive(boolean boolean1) -
createSignalDevice
-
hasDevicePower
public boolean hasDevicePower() -
getDeviceData
- Specified by:
getDeviceData
in interfaceWaveSignalDevice
-
setDeviceData
- Specified by:
setDeviceData
in interfaceWaveSignalDevice
-
getDelta
public float getDelta()- Specified by:
getDelta
in interfaceWaveSignalDevice
-
setDelta
public void setDelta(float float1)- Specified by:
setDelta
in interfaceWaveSignalDevice
-
getX
public float getX()- Specified by:
getX
in interfaceChatElementOwner
- Specified by:
getX
in interfaceWaveSignalDevice
-
getY
public float getY()- Specified by:
getY
in interfaceChatElementOwner
- Specified by:
getY
in interfaceWaveSignalDevice
-
getZ
public float getZ()- Specified by:
getZ
in interfaceChatElementOwner
- Specified by:
getZ
in interfaceWaveSignalDevice
-
getSquare
- Specified by:
getSquare
in interfaceChatElementOwner
- Specified by:
getSquare
in interfaceWaveSignalDevice
-
AddDeviceText
public void AddDeviceText(java.lang.String string, float float1, float float2, float float3, java.lang.String string2, int int1)- Specified by:
AddDeviceText
in interfaceWaveSignalDevice
-
HasPlayerInRange
public boolean HasPlayerInRange()- Specified by:
HasPlayerInRange
in interfaceWaveSignalDevice
-
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()
-