Package zombie.vehicles
Class VehicleType
java.lang.Object
zombie.vehicles.VehicleType
public 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.HashMap
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()
static VehicleType
getRandomVehicleType(java.lang.String string)
static VehicleType
getTypeFromName(java.lang.String string)
static void
init()
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 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 java.util.HashMap vehicles -
specialVehicles
public static java.util.HashMap specialVehicles
-
-
Constructor Details
-
VehicleType
public VehicleType(java.lang.String string)
-
-
Method Details
-
init
public static void init() -
getRandomVehicleType
-
getTypeFromName
-
getBaseVehicleQuality
public float getBaseVehicleQuality() -
getChanceToSpawnKey
public int getChanceToSpawnKey() -
setChanceToSpawnKey
public void setChanceToSpawnKey(int int1)
-