Package zombie.vehicles
Class VehicleType
java.lang.Object
zombie.vehicles.VehicleType
Contains all car model with their associated skin index
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionfloat
int
int
int
int
int
boolean
boolean
boolean
int
static final ArrayList<VehicleType>
static final HashMap<String,
VehicleType> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
int
float
static VehicleType
getRandomVehicleType
(String zoneName) static VehicleType
getRandomVehicleType
(String zoneName, Boolean doNormalWhenSpecific) static VehicleType
getTypeFromName
(String name) static boolean
hasTypeForZone
(String zoneName) static void
init()
static void
Reset()
void
setChanceToSpawnKey
(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 -
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()
-