Class VirtualVehicle
java.lang.Object
zombie.vehicles.VirtualVehicle
- All Implemented Interfaces:
IVehicleAlarmListener, IVehicleEngineListener, VehiclePartOwner, VehicleSoundOwner
public final class VirtualVehicle
extends Object
implements VehiclePartOwner, VehicleSoundOwner, IVehicleAlarmListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatintintdoublebooleanshortgetId()floatfloatfloatgetParts()doubleintgetSqlId()intfloatgetX()intgetXi()floatgetY()intgetYi()floatgetZ()intgetZi()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisListenerInRange(float range) booleanbooleanvoidonEngineStateChanged(BaseVehicle.engineStateTypes oldState, BaseVehicle.engineStateTypes newState, VehicleEngineStateChangeReason reason) voidvoidremoveFromMeta(BaseVehicle vehicle) voidsave()voidset(BaseVehicle vehicle) voidsetEngineFeature(int quality, int loudness, int engineForce) voidsetLightbarSirenMode(int mode) setModelVisible(VehiclePart part, VehicleScript.Model scriptModel, boolean visible) voidsetNeedPartsUpdate(boolean needPartsUpdate) voidsetSirenStartTime(double worldAgeHours) booleanvoidvoidvoidvoidtransmitPartDoor(VehiclePart part) voidtransmitPartItem(VehiclePart part) voidtransmitPartLight(VehiclePart part) voidvoidvoidvoidupdate()voidvoidvoidvoidMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface VehiclePartOwner
getBattery, getBatteryCharge, getDriver, getDriverRegardlessOfTow, getEngine, getGasRemaining, getGasTank, getHeater, getLightbarLightsMode, getNumberOfPartsWithContainers, getPartById, getPartByIndex, getPartByPartId, getPartCount, getPartIndex, getTrailerTrunkPart, getTrunkDoorPart, getTrunkPart, setLightbarLightsMode, windowsOpenMethods inherited from interface VehicleSoundOwner
getLightbarSirenMode, hasAlarm, hasHorn, hasLightbar, hasSiren, sirenShutoffTimeExpired
-
Constructor Details
-
VirtualVehicle
public VirtualVehicle()
-
-
Method Details
-
getId
public short getId() -
getSqlId
public int getSqlId() -
getVehicleSounds
-
setNeedPartsUpdate
public void setNeedPartsUpdate(boolean needPartsUpdate) -
set
-
update
public void update() -
shouldUpdateInMeta
public boolean shouldUpdateInMeta() -
stopUpdatingInMeta
public void stopUpdatingInMeta() -
removeFromMeta
-
save
public void save() -
getX
public float getX()- Specified by:
getXin interfaceVehiclePartOwner- Specified by:
getXin interfaceVehicleSoundOwner
-
getY
public float getY()- Specified by:
getYin interfaceVehiclePartOwner- Specified by:
getYin interfaceVehicleSoundOwner
-
getZ
public float getZ()- Specified by:
getZin interfaceVehiclePartOwner- Specified by:
getZin interfaceVehicleSoundOwner
-
getXi
public int getXi()- Specified by:
getXiin interfaceVehiclePartOwner- Specified by:
getXiin interfaceVehicleSoundOwner
-
getYi
public int getYi()- Specified by:
getYiin interfaceVehiclePartOwner- Specified by:
getYiin interfaceVehicleSoundOwner
-
getZi
public int getZi()- Specified by:
getZiin interfaceVehiclePartOwner- Specified by:
getZiin interfaceVehicleSoundOwner
-
getSquare
- Specified by:
getSquarein interfaceVehiclePartOwner
-
getParts
- Specified by:
getPartsin interfaceVehiclePartOwner
-
isListenerInRange
public boolean isListenerInRange(float range) - Specified by:
isListenerInRangein interfaceVehicleSoundOwner
-
getScriptName
- Specified by:
getScriptNamein interfaceVehicleSoundOwner
-
getScript
- Specified by:
getScriptin interfaceVehiclePartOwner- Specified by:
getScriptin interfaceVehicleSoundOwner
-
getLightbarLightsModeObject
- Specified by:
getLightbarLightsModeObjectin interfaceVehiclePartOwner
-
getHeadlightsOn
public boolean getHeadlightsOn()- Specified by:
getHeadlightsOnin interfaceVehiclePartOwner
-
setEngineFeature
public void setEngineFeature(int quality, int loudness, int engineForce) - Specified by:
setEngineFeaturein interfaceVehiclePartOwner
-
isEngineWorking
public boolean isEngineWorking()- Specified by:
isEngineWorkingin interfaceVehiclePartOwner
-
getBrakeSpeedBetweenUpdate
public float getBrakeSpeedBetweenUpdate()- Specified by:
getBrakeSpeedBetweenUpdatein interfaceVehiclePartOwner
-
setModelVisible
public BaseVehicle.ModelInfo setModelVisible(VehiclePart part, VehicleScript.Model scriptModel, boolean visible) - Specified by:
setModelVisiblein interfaceVehiclePartOwner
-
updateDamageOverlayLater
public void updateDamageOverlayLater()- Specified by:
updateDamageOverlayLaterin interfaceVehiclePartOwner
-
updateTotalMass
public void updateTotalMass()- Specified by:
updateTotalMassin interfaceVehiclePartOwner
-
updateBulletStats
public void updateBulletStats()- Specified by:
updateBulletStatsin interfaceVehiclePartOwner
-
updatePartStats
public void updatePartStats()- Specified by:
updatePartStatsin interfaceVehiclePartOwner
-
transmitEngine
public void transmitEngine()- Specified by:
transmitEnginein interfaceVehiclePartOwner
-
transmitPartCondition
- Specified by:
transmitPartConditionin interfaceVehiclePartOwner
-
transmitPartDoor
- Specified by:
transmitPartDoorin interfaceVehiclePartOwner
-
transmitPartItem
- Specified by:
transmitPartItemin interfaceVehiclePartOwner
-
transmitPartLight
- Specified by:
transmitPartLightin interfaceVehiclePartOwner
-
transmitPartModData
- Specified by:
transmitPartModDatain interfaceVehiclePartOwner
-
transmitPartUsedDelta
- Specified by:
transmitPartUsedDeltain interfaceVehiclePartOwner
-
transmitPartWindow
- Specified by:
transmitPartWindowin interfaceVehiclePartOwner
-
getEngineCondition
public int getEngineCondition()- Specified by:
getEngineConditionin interfaceVehicleSoundOwner
-
getEngineQuality
public int getEngineQuality()- Specified by:
getEngineQualityin interfaceVehicleSoundOwner
-
getEngineState
- Specified by:
getEngineStatein interfaceVehicleSoundOwner
-
isEngineRunning
public boolean isEngineRunning()- Specified by:
isEngineRunningin interfaceVehicleSoundOwner
-
isEngineSounding
public boolean isEngineSounding()- Specified by:
isEngineSoundingin interfaceVehicleSoundOwner
-
getEngineSpeed
public double getEngineSpeed()- Specified by:
getEngineSpeedin interfaceVehicleSoundOwner
-
getTransmissionNumber
public int getTransmissionNumber()- Specified by:
getTransmissionNumberin interfaceVehicleSoundOwner
-
getCurrentSpeedKmHour
public float getCurrentSpeedKmHour()- Specified by:
getCurrentSpeedKmHourin interfaceVehicleSoundOwner
-
getMaxSpeed
public float getMaxSpeed()- Specified by:
getMaxSpeedin interfaceVehicleSoundOwner
-
isAlarmActive
public boolean isAlarmActive()- Specified by:
isAlarmActivein interfaceVehicleSoundOwner
-
isAlarmSoundOn
public boolean isAlarmSoundOn()- Specified by:
isAlarmSoundOnin interfaceVehicleSoundOwner
-
isAlarmSounding
public boolean isAlarmSounding()- Specified by:
isAlarmSoundingin interfaceVehicleSoundOwner
-
isBrakePedalPressed
public boolean isBrakePedalPressed()- Specified by:
isBrakePedalPressedin interfaceVehicleSoundOwner
-
isGasPedalPressed
public boolean isGasPedalPressed()- Specified by:
isGasPedalPressedin interfaceVehicleSoundOwner
-
getRoadMaterial
- Specified by:
getRoadMaterialin interfaceVehicleSoundOwner
-
getChosenAlarmSound
- Specified by:
getChosenAlarmSoundin interfaceVehicleSoundOwner
-
isBackupBeeperSounding
public boolean isBackupBeeperSounding()- Specified by:
isBackupBeeperSoundingin interfaceVehicleSoundOwner
-
isDoorAlarmSounding
public boolean isDoorAlarmSounding()- Specified by:
isDoorAlarmSoundingin interfaceVehicleSoundOwner
-
isHornSounding
public boolean isHornSounding()- Specified by:
isHornSoundingin interfaceVehicleSoundOwner
-
getVehicleSoundEmitter
- Specified by:
getVehicleSoundEmitterin interfaceVehicleSoundOwner
-
isAnyListenerInside
public boolean isAnyListenerInside()- Specified by:
isAnyListenerInsidein interfaceVehicleSoundOwner
-
isSirenActive
public boolean isSirenActive()- Specified by:
isSirenActivein interfaceVehicleSoundOwner
-
isSirenSounding
public boolean isSirenSounding()- Specified by:
isSirenSoundingin interfaceVehicleSoundOwner
-
getSirenStartTime
public double getSirenStartTime()- Specified by:
getSirenStartTimein interfaceVehicleSoundOwner
-
setSirenStartTime
public void setSirenStartTime(double worldAgeHours) - Specified by:
setSirenStartTimein interfaceVehicleSoundOwner
-
getLightbarSirenModeObject
- Specified by:
getLightbarSirenModeObjectin interfaceVehiclePartOwner- Specified by:
getLightbarSirenModeObjectin interfaceVehicleSoundOwner
-
setLightbarSirenMode
public void setLightbarSirenMode(int mode) - Specified by:
setLightbarSirenModein interfaceVehiclePartOwner- Specified by:
setLightbarSirenModein interfaceVehicleSoundOwner
-
getMaxWheelSteering
public float getMaxWheelSteering()- Specified by:
getMaxWheelSteeringin interfaceVehicleSoundOwner
-
getMinWheelSkid
public float getMinWheelSkid()- Specified by:
getMinWheelSkidin interfaceVehicleSoundOwner
-
isAnyTireMissing
public boolean isAnyTireMissing()- Specified by:
isAnyTireMissingin interfaceVehicleSoundOwner
-
onEngineStateChanged
public void onEngineStateChanged(BaseVehicle.engineStateTypes oldState, BaseVehicle.engineStateTypes newState, VehicleEngineStateChangeReason reason) - Specified by:
onEngineStateChangedin interfaceIVehicleEngineListener
-
onVehicleAlarmEvent
- Specified by:
onVehicleAlarmEventin interfaceIVehicleAlarmListener
-