Class RandomizedWorldBase
java.lang.Object
zombie.randomizedWorld.RandomizedWorldBase
- Direct Known Subclasses:
RandomizedBuildingBase
,RandomizedRanchBase
,RandomizedVehicleStoryBase
,RandomizedZoneStoryBase
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBloodSplat
(IsoGridSquare sq, int nbr) void
addBrazier
(IsoGridSquare isoGridSquare) void
addCampfire
(IsoGridSquare isoGridSquare) void
addCampfireOrPit
(IsoGridSquare isoGridSquare) void
addCharcoalBurner
(IsoGridSquare isoGridSquare) void
addCookingPit
(IsoGridSquare isoGridSquare) void
addGrindstone
(IsoGridSquare isoGridSquare) addItemOnGround
(IsoGridSquare square, String type) addItemOnGround
(IsoGridSquare square, InventoryItem item) addItemOnGround
(IsoGridSquare isoGridSquare, InventoryItem inventoryItem, boolean boolean0) addItemOnGroundNoLoot
(IsoGridSquare isoGridSquare, String string) addItemOnGroundNoLoot
(IsoGridSquare isoGridSquare, InventoryItem inventoryItem) static InventoryItem
addItemOnGroundStatic
(IsoGridSquare isoGridSquare, String string) static InventoryItem
addItemOnGroundStatic
(IsoGridSquare isoGridSquare, InventoryItem inventoryItem) addItemToObjectSurface
(String string, IsoObject isoObject) void
addMattressNorthSouth
(int int0, int int2, int int1) void
addMattressWestEast
(int int2, int int0, int int1) void
addRandomFirepit
(IsoGridSquare isoGridSquare) addRandomItemOnGround
(IsoGridSquare square, ArrayList<String> types) void
addRandomItemsOnGround
(RoomDef room, String type, int count) void
addRandomItemsOnGround
(RoomDef room, ArrayList<String> types, int count) void
addRandomShelterNorthSouth
(int int0, int int1, int int2) void
addRandomShelterWestEast
(int int0, int int1, int int2) void
addRandomTentNorthSouth
(int int0, int int2, int int1) void
addRandomTentWestEast
(int int2, int int0, int int1) void
addShelterNorthSouth
(int int1, int int3, int int2) void
addShelterWestEast
(int int3, int int1, int int2) void
addSimpleCookingPit
(IsoGridSquare isoGridSquare) void
addSimpleFire
(IsoGridSquare isoGridSquare) void
addSleepingBagNorthSouth
(int int1, int int3, int int2) void
addSleepingBagOrTentNorthSouth
(int int0, int int1, int int2) void
addSleepingBagOrTentWestEast
(int int0, int int1, int int2) void
addSleepingBagWestEast
(int int3, int int1, int int2) void
addStoneAnvil
(IsoGridSquare isoGridSquare) void
addTentNorthSouth
(int int0, int int2, int int1) void
addTentNorthSouthNew
(int int3, int int0, int int2) void
addTentWestEast
(int int2, int int0, int int1) void
addTentWestEastNew
(int int3, int int2, int int1) addTileObject
(int x, int y, int z, String spriteName) addTileObject
(int int0, int int1, int int2, String string, boolean boolean0) addTileObject
(IsoGridSquare sq, String spriteName) addTileObject
(IsoGridSquare isoGridSquare, String string, boolean boolean0) addTileObject
(IsoGridSquare isoGridSquare, IsoObject isoObject) addTileObject
(IsoGridSquare isoGridSquare, IsoObject isoObject, boolean boolean0) addTrailer
(BaseVehicle baseVehicle0, Zone zone, IsoChunk isoChunk, String string0, String string2, String string1) void
addTrailOfBlood
(float x, float y, float z, float direction, int count) void
addTraitOfBlood
(IsoDirections dir, int time, int x, int y, int z) addVehicle
(float float0, float float1, float float2, float float3, String string0, String string1, Integer integer, String string2) addVehicle
(float float2, float float1, float float0, float float3, String string0, String string2, Integer integer, String string1, boolean boolean0) addVehicle
(IsoGridSquare isoGridSquare, IsoChunk var2, String string0, String string1, Integer integer, IsoDirections isoDirections, String string2) addVehicle
(Zone zone, float float0, float float1, float float2, float float3, String string0, String string1, Integer integer, String string2) addVehicle
(Zone zone, float float2, float float1, float float0, float float3, String string0, String string2, Integer integer, String string1, boolean boolean0) addVehicle
(Zone zone, IsoGridSquare isoGridSquare, IsoChunk var3, String string0, String string1, Integer integer, IsoDirections isoDirections, String string2) addVehicle
(Zone zone, IsoGridSquare isoGridSquare, IsoChunk var3, String string0, String string1, Integer integer, IsoDirections isoDirections, String string2, boolean boolean0) addVehicle
(Zone zone, IsoGridSquare isoGridSquare, IsoChunk isoChunk, String string0, String string1, IsoDirections isoDirections) addVehicleFlipped
(Zone zone, float float2, float float1, float float0, float float3, String string0, String string2, Integer integer, String string1) addVehicleFlipped
(Zone zone, IsoGridSquare isoGridSquare, IsoChunk var3, String string0, String string1, Integer integer, IsoDirections isoDirections, String string2) Create and return a weapon, if it's ranged you can ask for some bullets in itvoid
addWorkstationEntity
(IsoGridSquare isoGridSquare, GameEntityScript gameEntityScript, String string) void
addWorkstationEntity
(IsoThumpable isoThumpable, IsoGridSquare isoGridSquare, GameEntityScript gameEntityScript, String var4) addZombiesOnSquare
(int totalZombies, String outfit, Integer femaleChance, IsoGridSquare square) addZombiesOnVehicle
(int totalZombies, String outfit, Integer femaleChance, BaseVehicle vehicle) Add zombies near the vehicles, around a 4x4 square around it, avoiding being ON the vehicle invalid input: '&' randomizing square for each zombiesstatic void
alignCorpseToSquare
(IsoGameCharacter chr, IsoGridSquare square) boolean
checkAreaForCarsSpawn
(IsoGridSquare isoGridSquare) boolean
checkRadiusForCarSpawn
(IsoGridSquare isoGridSquare, int int0) void
cleanSquareAndNeighbors
(IsoGridSquare isoGridSquare) static IsoDeadBody
createCorpse
(IsoGridSquare isoGridSquare, boolean boolean0) createCorpse
(IsoGridSquare isoGridSquare, IsoZombie isoZombie) createCorpse
(RoomDef roomDef) createCorpse
(RoomDef roomDef, boolean boolean0) static IsoDeadBody
createRandomDeadBody
(float x, float y, float z, float direction, boolean alignToSquare, int blood, int crawlerChance, String outfit) static IsoDeadBody
createRandomDeadBody
(int x, int y, int z, IsoDirections dir, int blood) static IsoDeadBody
createRandomDeadBody
(int x, int y, int z, IsoDirections dir, int blood, int crawlerChance) static IsoDeadBody
createRandomDeadBody
(IsoGridSquare isoGridSquare, IsoDirections isoDirections0, boolean boolean1, int int2, int int0, String string, Integer integer) static IsoDeadBody
createRandomDeadBody
(IsoGridSquare sq, IsoDirections dir, int blood, int crawlerChance, String outfit) static IsoDeadBody
createRandomDeadBody
(RoomDef room, int blood) static IsoGameCharacter
createRandomZombie
(int x, int y, int z) static IsoGameCharacter
createRandomZombie
(RoomDef room) static IsoGameCharacter
createSkeletonCorpse
(IsoGridSquare isoGridSquare) createSkeletonCorpse
(RoomDef room) void
dirtBomb
(IsoGridSquare isoGridSquare) static String
static String
getClutterCopy
(ArrayList<String> arrayList) static String
getClutterItem
(ArrayList<String> arrayList) static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
Get either the living room or kitchen (in this order)int
static String
static String
getName()
static String
static String
static String
static String
static String
static String
static String
getRandomRoom
(BuildingDef bDef, int minArea) Get a random room in the buildinggetRandomRoomNoKids
(BuildingDef buildingDef, int int0) static IsoGridSquare
getRandomSpawnSquare
(RoomDef roomDef) static IsoGridSquare
getRandomSquareForCorpse
(RoomDef roomDef) getRoom
(BuildingDef bDef, String roomName) Return the wanted roomgetRoomNoKids
(BuildingDef buildingDef, String string) static IsoGridSquare
getSq
(int int0, int int1, int int2) static String
static String
void
graffSquare
(IsoGridSquare isoGridSquare, boolean boolean0) void
graffSquare
(IsoGridSquare isoGridSquare, String string, boolean boolean0) static boolean
is1x1AreaClear
(IsoGridSquare isoGridSquare) static boolean
is1x2AreaClear
(IsoGridSquare square) static boolean
is2x1AreaClear
(IsoGridSquare square) static boolean
is2x1or1x2AreaClear
(IsoGridSquare square) static boolean
is2x2AreaClear
(IsoGridSquare square) boolean
isRat()
boolean
isTimeValid
(boolean force) Check if the world age is correct for our definitionboolean
isUnique()
boolean
isValidGraffSquare
(IsoGridSquare isoGridSquare, boolean boolean0, boolean boolean1) static void
removeAllVehiclesOnZone
(Zone zone) void
setAttachedItem
(IsoZombie zombie, String location, String item, String ensureItem) void
setDebugLine
(String _debugLine) void
setMaximumDays
(int _maximumDays) void
setUnique
(boolean _unique) spawnCarOnNearestNav
(String carName, BuildingDef def) spawnCarOnNearestNav
(String string0, BuildingDef buildingDef, String string1) void
trashSquare
(IsoGridSquare isoGridSquare)
-
Field Details
-
minimumDays
protected int minimumDays -
maximumDays
protected int maximumDays -
minimumRooms
protected int minimumRooms -
unique
protected boolean unique -
isRat
protected boolean isRat -
name
-
debugLine
-
reallyAlwaysForce
protected boolean reallyAlwaysForce
-
-
Constructor Details
-
RandomizedWorldBase
public RandomizedWorldBase()
-
-
Method Details
-
addVehicle
public BaseVehicle addVehicle(Zone zone, IsoGridSquare isoGridSquare, IsoChunk isoChunk, String string0, String string1, IsoDirections isoDirections) -
addVehicleFlipped
public BaseVehicle addVehicleFlipped(Zone zone, IsoGridSquare isoGridSquare, IsoChunk var3, String string0, String string1, Integer integer, IsoDirections isoDirections, String string2) -
addVehicleFlipped
-
addVehicle
public BaseVehicle addVehicle(Zone zone, IsoGridSquare isoGridSquare, IsoChunk var3, String string0, String string1, Integer integer, IsoDirections isoDirections, String string2) -
addVehicle
public BaseVehicle addVehicle(Zone zone, IsoGridSquare isoGridSquare, IsoChunk var3, String string0, String string1, Integer integer, IsoDirections isoDirections, String string2, boolean boolean0) -
addVehicle
public BaseVehicle addVehicle(IsoGridSquare isoGridSquare, IsoChunk var2, String string0, String string1, Integer integer, IsoDirections isoDirections, String string2) -
addVehicle
-
addVehicle
-
addVehicle
public BaseVehicle addVehicle(float float0, float float1, float float2, float float3, String string0, String string1, Integer integer, String string2) -
addVehicle
public BaseVehicle addVehicle(float float2, float float1, float float0, float float3, String string0, String string2, Integer integer, String string1, boolean boolean0) -
removeAllVehiclesOnZone
-
addZombiesOnVehicle
public ArrayList<IsoZombie> addZombiesOnVehicle(int totalZombies, String outfit, Integer femaleChance, BaseVehicle vehicle) Add zombies near the vehicles, around a 4x4 square around it, avoiding being ON the vehicle invalid input: '&' randomizing square for each zombies -
createRandomDeadBody
-
addZombiesOnSquare
public ArrayList<IsoZombie> addZombiesOnSquare(int totalZombies, String outfit, Integer femaleChance, IsoGridSquare square) -
createRandomDeadBody
-
createRandomDeadBody
public static IsoDeadBody createRandomDeadBody(int x, int y, int z, IsoDirections dir, int blood, int crawlerChance) -
createRandomDeadBody
public static IsoDeadBody createRandomDeadBody(IsoGridSquare sq, IsoDirections dir, int blood, int crawlerChance, String outfit) -
createRandomDeadBody
public static IsoDeadBody createRandomDeadBody(float x, float y, float z, float direction, boolean alignToSquare, int blood, int crawlerChance, String outfit) -
createRandomDeadBody
public static IsoDeadBody createRandomDeadBody(IsoGridSquare isoGridSquare, IsoDirections isoDirections0, boolean boolean1, int int2, int int0, String string, Integer integer) -
addTraitOfBlood
-
addTrailOfBlood
public void addTrailOfBlood(float x, float y, float z, float direction, int count) -
addBloodSplat
-
setAttachedItem
-
createRandomZombie
-
createRandomZombieForCorpse
-
createBodyFromZombie
-
createRandomZombie
-
is1x1AreaClear
-
is1x2AreaClear
-
is2x1AreaClear
-
is2x1or1x2AreaClear
-
is2x2AreaClear
-
alignCorpseToSquare
-
getRandomRoom
Get a random room in the building -
getRandomRoomNoKids
-
getRoom
Return the wanted room -
getRoomNoKids
-
getLivingRoomOrKitchen
Get either the living room or kitchen (in this order) -
getRandomSpawnSquare
-
getRandomSquareForCorpse
-
checkAreaForCarsSpawn
-
checkRadiusForCarSpawn
-
addItemOnGround
-
addItemOnGroundNoLoot
-
addItemOnGroundStatic
-
addItemOnGround
-
addItemOnGround
public InventoryItem addItemOnGround(IsoGridSquare isoGridSquare, InventoryItem inventoryItem, boolean boolean0) -
addItemOnGroundNoLoot
public InventoryItem addItemOnGroundNoLoot(IsoGridSquare isoGridSquare, InventoryItem inventoryItem) -
addItemOnGroundStatic
public static InventoryItem addItemOnGroundStatic(IsoGridSquare isoGridSquare, InventoryItem inventoryItem) -
addRandomItemsOnGround
-
addRandomItemsOnGround
-
addRandomItemOnGround
-
addWeapon
Create and return a weapon, if it's ranged you can ask for some bullets in it -
createSkeletonCorpse
-
createSkeletonCorpse
-
createCorpse
-
createCorpse
-
createCorpse
-
createCorpse
-
isTimeValid
public boolean isTimeValid(boolean force) Check if the world age is correct for our definition -
getName
-
getDebugLine
-
setDebugLine
-
getMaximumDays
public int getMaximumDays() -
setMaximumDays
public void setMaximumDays(int _maximumDays) -
isUnique
public boolean isUnique() -
isRat
public boolean isRat() -
setUnique
public void setUnique(boolean _unique) -
getSq
-
addTileObject
-
addTileObject
-
addTileObject
-
addTileObject
-
addTileObject
-
addTileObject
-
addSleepingBagOrTentNorthSouth
public void addSleepingBagOrTentNorthSouth(int int0, int int1, int int2) -
addSleepingBagOrTentWestEast
public void addSleepingBagOrTentWestEast(int int0, int int1, int int2) -
addRandomTentNorthSouth
public void addRandomTentNorthSouth(int int0, int int2, int int1) -
addRandomTentWestEast
public void addRandomTentWestEast(int int2, int int0, int int1) -
addRandomShelterNorthSouth
public void addRandomShelterNorthSouth(int int0, int int1, int int2) -
addRandomShelterWestEast
public void addRandomShelterWestEast(int int0, int int1, int int2) -
addTentNorthSouth
public void addTentNorthSouth(int int0, int int2, int int1) -
addTentWestEast
public void addTentWestEast(int int2, int int0, int int1) -
addMattressNorthSouth
public void addMattressNorthSouth(int int0, int int2, int int1) -
addMattressWestEast
public void addMattressWestEast(int int2, int int0, int int1) -
addSleepingBagNorthSouth
public void addSleepingBagNorthSouth(int int1, int int3, int int2) -
addSleepingBagWestEast
public void addSleepingBagWestEast(int int3, int int1, int int2) -
addShelterNorthSouth
public void addShelterNorthSouth(int int1, int int3, int int2) -
addShelterWestEast
public void addShelterWestEast(int int3, int int1, int int2) -
addTentNorthSouthNew
public void addTentNorthSouthNew(int int3, int int0, int int2) -
addTentWestEastNew
public void addTentWestEastNew(int int3, int int2, int int1) -
addTrailer
public BaseVehicle addTrailer(BaseVehicle baseVehicle0, Zone zone, IsoChunk isoChunk, String string0, String string2, String string1) -
addCampfire
-
addSimpleCookingPit
-
addCookingPit
-
addBrazier
-
addSimpleFire
-
addRandomFirepit
-
addCampfireOrPit
-
dirtBomb
-
cleanSquareAndNeighbors
-
addGrindstone
-
addStoneAnvil
-
addCharcoalBurner
-
addWorkstationEntity
public void addWorkstationEntity(IsoGridSquare isoGridSquare, GameEntityScript gameEntityScript, String string) -
addWorkstationEntity
public void addWorkstationEntity(IsoThumpable isoThumpable, IsoGridSquare isoGridSquare, GameEntityScript gameEntityScript, String var4) -
addItemToObjectSurface
-
isValidGraffSquare
-
graffSquare
-
graffSquare
-
trashSquare
-
getBBQClutterItem
-
getBBQClutter
-
getBarnClutterItem
-
getBarnClutter
-
getBathroomSinkClutterItem
-
getBathroomSinkClutter
-
getBeachPartyClutterItem
-
getBeachPartyClutter
-
getBedClutterItem
-
getBedClutter
-
getCarpentryToolClutterItem
-
getCarpentryToolClutter
-
getCafeClutterItem
-
getCafeClutter
-
getDeadEndClutterItem
-
getDeadEndClutter
-
getDormClutterItem
-
getDormClutter
-
getFarmStorageClutterItem
-
getFarmStorageClutter
-
getFootballNightDrinkItem
-
getFootballNightDrinks
-
getFootballNightSnackItem
-
getFootballNightSnacks
-
getGarageStorageClutterItem
-
getGarageStorageClutter
-
getGigamartClutterItem
-
getGigamartClutter
-
getGroceryClutterItem
-
getGroceryClutter
-
getHairSalonClutterItem
-
getHairSalonClutter
-
getHallClutterItem
-
getHallClutter
-
getHenDoDrinkItem
-
getHenDoDrinks
-
getHenDoSnackItem
-
getHenDoSnacks
-
getHoedownClutterItem
-
getHoedownClutter
-
getHousePartyClutterItem
-
getHousePartyClutter
-
getJudgeClutterItem
-
getJudgeClutter
-
getKidClutterItem
-
getKidClutter
-
getKitchenCounterClutterItem
-
getKitchenCounterClutter
-
getKitchenSinkClutterItem
-
getKitchenSinkClutter
-
getKitchenStoveClutterItem
-
getKitchenStoveClutter
-
getLaundryRoomClutterItem
-
getLaundryRoomClutter
-
getLivingroomClutterItem
-
getLivingroomClutter
-
getMedicallutterItem
-
getMedicalClutter
-
getMurderSceneClutterItem
-
getMurderSceneClutter
-
getNastyMattressClutterItem
-
getNastyMattressClutter
-
getOldShelterClutterItem
-
getOldShelterClutter
-
getOfficeCarDealerClutterItem
-
getOfficeCarDealerClutter
-
getOfficePaperworkClutterItem
-
getOfficePaperworkClutter
-
getOfficePenClutterItem
-
getOfficePenClutter
-
getOfficeOtherClutterItem
-
getOfficeOtherClutter
-
getOfficeTreatClutterItem
-
getOfficeTreatClutter
-
getOvenFoodClutterItem
-
getOvenFoodClutter
-
getPillowClutterItem
-
getPillowClutter
-
getPokerNightClutterItem
-
getPokerNightClutter
-
getRichJerkClutterItem
-
getRichJerkClutter
-
getSadCampsiteClutterItem
-
getSadCampsiteClutter
-
getSidetableClutterItem
-
getSidetableClutter
-
getSurvivalistCampsiteClutterItem
-
getSurvivalistCampsiteClutter
-
getTwiggyClutterItem
-
getTwiggyClutter
-
getUtilityToolClutterItem
-
getUtilityToolClutter
-
getVanCampClutterItem
-
getVanCampClutter
-
getWatchClutterItem
-
getWatchClutter
-
getWoodcraftClutterItem
-
getWoodcraftClutter
-
getClutterItem
-
getClutterCopy
-