Package zombie.randomizedWorld
Class RandomizedWorldBase
java.lang.Object
zombie.randomizedWorld.RandomizedWorldBase
- Direct Known Subclasses:
RandomizedBuildingBase
,RandomizedVehicleStoryBase
,RandomizedZoneStoryBase
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBloodSplat
(IsoGridSquare sq, int nbr) addItemOnGround
(IsoGridSquare square, String type) addItemOnGround
(IsoGridSquare square, InventoryItem item) addRandomItemOnGround
(IsoGridSquare square, ArrayList<String> types) void
addRandomItemsOnGround
(RoomDef room, String type, int count) void
addRandomItemsOnGround
(RoomDef room, ArrayList<String> types, int count) addTentNorthSouth
(int x, int y, int z) addTentWestEast
(int x, int y, int z) addTileObject
(int x, int y, int z, String spriteName) addTileObject
(IsoGridSquare sq, String spriteName) addTrailer
(BaseVehicle v, IsoMetaGrid.Zone zone, IsoChunk chunk, String zoneName, String vehicleDistrib, String trailerName) 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
(IsoMetaGrid.Zone zone, float vehicleX, float vehicleY, float vehicleZ, float direction, String zoneName, String scriptName, Integer skinIndex, String specificContainer) addVehicle
(IsoMetaGrid.Zone zone, IsoGridSquare sq, IsoChunk chunk, String zoneName, String scriptName, Integer skinIndex, IsoDirections dir, String specificContainer) addVehicle
(IsoMetaGrid.Zone zone, IsoGridSquare sq, IsoChunk chunk, String zoneName, String scriptName, IsoDirections dir) addVehicleFlipped
(IsoMetaGrid.Zone zone, float vehicleX, float vehicleY, float vehicleZ, float direction, String zoneName, String scriptName, Integer skinIndex, String specificContainer) addVehicleFlipped
(IsoMetaGrid.Zone zone, IsoGridSquare sq, IsoChunk chunk, String zoneName, String scriptName, Integer skinIndex, IsoDirections dir, String specificContainer) Create and return a weapon, if it's ranged you can ask for some bullets in itaddZombiesOnSquare
(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 & randomizing square for each zombiesstatic void
alignCorpseToSquare
(IsoGameCharacter chr, IsoGridSquare square) static IsoDeadBody
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 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
(RoomDef room) Get either the living room or kitchen (in this order)int
getName()
getRandomRoom
(BuildingDef bDef, int minArea) Get a random room in the buildingstatic IsoGridSquare
getRandomSpawnSquare
(RoomDef roomDef) static IsoGridSquare
getRandomSquareForCorpse
(RoomDef roomDef) getRoom
(BuildingDef bDef, String roomName) Return the wanted roomgetSq
(int x, int y, int z) static boolean
is1x2AreaClear
(IsoGridSquare square) static boolean
is2x1AreaClear
(IsoGridSquare square) static boolean
is2x1or1x2AreaClear
(IsoGridSquare square) static boolean
is2x2AreaClear
(IsoGridSquare square) boolean
isTimeValid
(boolean force) Check if the world age is correct for our definitionboolean
isUnique()
static void
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)
-
Constructor Details
-
RandomizedWorldBase
public RandomizedWorldBase()
-
-
Method Details
-
addVehicle
public BaseVehicle addVehicle(IsoMetaGrid.Zone zone, IsoGridSquare sq, IsoChunk chunk, String zoneName, String scriptName, IsoDirections dir) -
addVehicleFlipped
public BaseVehicle addVehicleFlipped(IsoMetaGrid.Zone zone, IsoGridSquare sq, IsoChunk chunk, String zoneName, String scriptName, Integer skinIndex, IsoDirections dir, String specificContainer) -
addVehicleFlipped
public BaseVehicle addVehicleFlipped(IsoMetaGrid.Zone zone, float vehicleX, float vehicleY, float vehicleZ, float direction, String zoneName, String scriptName, Integer skinIndex, String specificContainer) -
addVehicle
public BaseVehicle addVehicle(IsoMetaGrid.Zone zone, IsoGridSquare sq, IsoChunk chunk, String zoneName, String scriptName, Integer skinIndex, IsoDirections dir, String specificContainer) -
addVehicle
public BaseVehicle addVehicle(IsoMetaGrid.Zone zone, float vehicleX, float vehicleY, float vehicleZ, float direction, String zoneName, String scriptName, Integer skinIndex, String specificContainer) -
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 & randomizing square for each zombies- Parameters:
totalZombies
-outfit
-femaleChance
-vehicle
-- Returns:
-
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) -
addTraitOfBlood
-
addTrailOfBlood
public void addTrailOfBlood(float x, float y, float z, float direction, int count) -
addBloodSplat
-
setAttachedItem
-
createRandomZombie
-
createRandomZombieForCorpse
-
createBodyFromZombie
-
createRandomZombie
-
is1x2AreaClear
-
is2x1AreaClear
-
is2x1or1x2AreaClear
-
is2x2AreaClear
-
alignCorpseToSquare
-
getRandomRoom
Get a random room in the building- Parameters:
bDef
-- Returns:
-
getRoom
Return the wanted room- Parameters:
bDef
-roomName
-- Returns:
-
getLivingRoomOrKitchen
Get either the living room or kitchen (in this order)- Parameters:
bDef
-- Returns:
-
getRandomSpawnSquare
-
getRandomSquareForCorpse
-
addItemOnGround
-
addItemOnGround
-
addRandomItemsOnGround
-
addRandomItemsOnGround
-
addRandomItemOnGround
-
addWeapon
Create and return a weapon, if it's ranged you can ask for some bullets in it- Parameters:
type
-addRandomBullets
-- Returns:
-
createSkeletonCorpse
-
isTimeValid
public boolean isTimeValid(boolean force) Check if the world age is correct for our definition- Parameters:
force
-- Returns:
-
getName
-
getDebugLine
-
setDebugLine
-
getMaximumDays
public int getMaximumDays() -
setMaximumDays
public void setMaximumDays(int maximumDays) -
isUnique
public boolean isUnique() -
setUnique
public void setUnique(boolean unique) -
getSq
-
addTileObject
-
addTileObject
-
addTentNorthSouth
-
addTentWestEast
-
addTrailer
public BaseVehicle addTrailer(BaseVehicle v, IsoMetaGrid.Zone zone, IsoChunk chunk, String zoneName, String vehicleDistrib, String trailerName)
-