Class VehicleType
java.lang.Object
zombie.vehicles.VehicleType
Contains all car model with their associated skin index
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfloatintintintintintbooleanbooleanbooleanbooleanintstatic final ArrayList<VehicleType> static final HashMap<String, VehicleType> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatintfloatstatic VehicleTypegetRandomVehicleType(String zoneName) static VehicleTypegetRandomVehicleType(String zoneName, Boolean doNormalWhenSpecific) static VehicleTypegetTypeFromName(String name) static booleanhasTypeForZone(String zoneName) static voidinit()static voidReset()voidsetChanceToSpawnKey(int chanceToSpawnKey)
-
Field Details
-
vehiclesDefinition
-
chanceToSpawnNormal
public int chanceToSpawnNormal -
chanceToSpawnBurnt
public int chanceToSpawnBurnt -
spawnRate
public int spawnRate -
chanceOfOverCar
public int chanceOfOverCar -
randomAngle
public boolean randomAngle -
baseVehicleQuality
public float baseVehicleQuality -
name
-
chanceToPartDamage
public int chanceToPartDamage -
isSpecialCar
public boolean isSpecialCar -
isBurntCar
public boolean isBurntCar -
chanceToSpawnSpecial
public int chanceToSpawnSpecial -
forceSpawn
public boolean forceSpawn -
vehicles
-
specialVehicles
-
-
Constructor Details
-
VehicleType
-
-
Method Details
-
init
public static void init() -
hasTypeForZone
-
getRandomVehicleType
-
getRandomVehicleType
-
getTypeFromName
-
getBaseVehicleQuality
public float getBaseVehicleQuality() -
getRandomBaseVehicleQuality
public float getRandomBaseVehicleQuality() -
getChanceToSpawnKey
public int getChanceToSpawnKey() -
setChanceToSpawnKey
public void setChanceToSpawnKey(int chanceToSpawnKey) -
Reset
public static void Reset()
-