Package zombie.vehicles
Class VehicleType
java.lang.Object
zombie.vehicles.VehicleType
public final class VehicleType
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VehicleType.VehicleTypeDefinition
-
Field Summary
Fields Modifier and Type Field Description float
baseVehicleQuality
int
chanceOfOverCar
int
chanceToPartDamage
int
chanceToSpawnBurnt
int
chanceToSpawnNormal
int
chanceToSpawnSpecial
boolean
isBurntCar
boolean
isSpecialCar
java.lang.String
name
boolean
randomAngle
int
spawnRate
static java.util.ArrayList
specialVehicles
static java.util.HashMap
vehicles
java.util.ArrayList
vehiclesDefinition
-
Constructor Summary
Constructors Constructor Description VehicleType(java.lang.String string)
-
Method Summary
Modifier and Type Method Description float
getBaseVehicleQuality()
int
getChanceToSpawnKey()
float
getRandomBaseVehicleQuality()
static VehicleType
getRandomVehicleType(java.lang.String string)
static VehicleType
getRandomVehicleType(java.lang.String string, java.lang.Boolean Boolean1)
static VehicleType
getTypeFromName(java.lang.String string)
static boolean
hasTypeForZone(java.lang.String string)
static void
init()
static void
Reset()
void
setChanceToSpawnKey(int int1)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
vehiclesDefinition
public final java.util.ArrayList 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
public java.lang.String name -
chanceToPartDamage
public int chanceToPartDamage -
isSpecialCar
public boolean isSpecialCar -
isBurntCar
public boolean isBurntCar -
chanceToSpawnSpecial
public int chanceToSpawnSpecial -
vehicles
public static final java.util.HashMap vehicles -
specialVehicles
public static final java.util.ArrayList specialVehicles
-
-
Constructor Details
-
VehicleType
public VehicleType(java.lang.String string)
-
-
Method Details
-
init
public static void init() -
hasTypeForZone
public static boolean hasTypeForZone(java.lang.String string) -
getRandomVehicleType
-
getRandomVehicleType
public static VehicleType getRandomVehicleType(java.lang.String string, java.lang.Boolean Boolean1) -
getTypeFromName
-
getBaseVehicleQuality
public float getBaseVehicleQuality() -
getRandomBaseVehicleQuality
public float getRandomBaseVehicleQuality() -
getChanceToSpawnKey
public int getChanceToSpawnKey() -
setChanceToSpawnKey
public void setChanceToSpawnKey(int int1) -
Reset
public static void Reset()
-