Class RandomizedBuildingBase
java.lang.Object
zombie.randomizedWorld.RandomizedWorldBase
zombie.randomizedWorld.randomizedBuilding.RandomizedBuildingBase
- Direct Known Subclasses:
RandomizedDeadSurvivorBase
,RBBar
,RBBasic
,RBBurnt
,RBBurntCorpse
,RBBurntFireman
,RBCafe
,RBClinic
,RBHairSalon
,RBKateAndBaldspot
,RBLooted
,RBOffice
,RBOther
,RBPileOCrepe
,RBPizzaWhirled
,RBSafehouse
,RBSchool
,RBShopLooted
,RBSpiffo
,RBStripclub
,RBTableStory
,RBTableStoryBase
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBarricade
(IsoGridSquare sq, int numPlanks) addRandomRangedWeapon
(ItemContainer container, boolean addBulletsInGun, boolean addBoxInContainer, boolean attachPart) addWorldItem
(String item, IsoGridSquare sq, float xoffset, float yoffset, float zoffset) addWorldItem
(String item, IsoGridSquare sq, float xoffset, float yoffset, float zoffset, int worldZ) addWorldItem
(String item, IsoGridSquare sq, IsoObject obj) addZombies
(BuildingDef def, int totalZombies, String outfit, Integer femaleChance, RoomDef room) If you specify a outfit, make sure it works for both gender! (or force femaleChance to 0 or 1 if it's gender-specific)addZombiesOnSquare
(int totalZombies, String outfit, Integer femaleChance, IsoGridSquare square) static void
ChunkLoaded
(IsoBuilding building) int
getDoor
(IsoGridSquare sq) int
int
void
init()
static void
boolean
boolean
isTableFor3DItems
(IsoObject obj, IsoGridSquare sq) boolean
isValid
(BuildingDef def, boolean force) Don't do any building change in a player's building Also check if the building have a bathroom, a kitchen and a bedroom This is ignored for the alwaysDo building (so i can do stuff in spiffo, pizzawhirled, etc..)void
void
setAlwaysDo
(boolean alwaysDo) void
setChance
(int chance) void
setMinimumDays
(int minimumDays) void
setMinimumRooms
(int minimumRooms) void
spawnItemsInContainers
(BuildingDef def, String distribName, int chance) Methods inherited from class zombie.randomizedWorld.RandomizedWorldBase
addBloodSplat, addItemOnGround, addItemOnGround, addRandomItemOnGround, addRandomItemsOnGround, addRandomItemsOnGround, addTentNorthSouth, addTentWestEast, addTileObject, addTileObject, addTrailer, addTrailOfBlood, addTraitOfBlood, addVehicle, addVehicle, addVehicle, addVehicleFlipped, addVehicleFlipped, addWeapon, addZombiesOnVehicle, alignCorpseToSquare, createBodyFromZombie, createRandomDeadBody, createRandomDeadBody, createRandomDeadBody, createRandomDeadBody, createRandomDeadBody, createRandomZombie, createRandomZombie, createRandomZombieForCorpse, createSkeletonCorpse, getDebugLine, getLivingRoomOrKitchen, getMaximumDays, getName, getRandomRoom, getRandomSpawnSquare, getRandomSquareForCorpse, getRoom, getSq, is1x2AreaClear, is2x1AreaClear, is2x1or1x2AreaClear, is2x2AreaClear, isTimeValid, isUnique, removeAllVehiclesOnZone, setAttachedItem, setDebugLine, setMaximumDays, setUnique, spawnCarOnNearestNav
-
Constructor Details
-
RandomizedBuildingBase
public RandomizedBuildingBase()
-
-
Method Details
-
randomizeBuilding
-
init
public void init() -
initAllRBMapChance
public static void initAllRBMapChance() -
isValid
Don't do any building change in a player's building Also check if the building have a bathroom, a kitchen and a bedroom This is ignored for the alwaysDo building (so i can do stuff in spiffo, pizzawhirled, etc..)- Parameters:
def
-- Returns:
-
getMinimumDays
public int getMinimumDays() -
setMinimumDays
public void setMinimumDays(int minimumDays) -
getMinimumRooms
public int getMinimumRooms() -
setMinimumRooms
public void setMinimumRooms(int minimumRooms) -
ChunkLoaded
-
getChance
public int getChance() -
setChance
public void setChance(int chance) -
isAlwaysDo
public boolean isAlwaysDo() -
setAlwaysDo
public void setAlwaysDo(boolean alwaysDo) -
addZombiesOnSquare
public ArrayList<IsoZombie> addZombiesOnSquare(int totalZombies, String outfit, Integer femaleChance, IsoGridSquare square) - Overrides:
addZombiesOnSquare
in classRandomizedWorldBase
-
addZombies
public ArrayList<IsoZombie> addZombies(BuildingDef def, int totalZombies, String outfit, Integer femaleChance, RoomDef room) If you specify a outfit, make sure it works for both gender! (or force femaleChance to 0 or 1 if it's gender-specific)- Parameters:
def
- buildingDeftotalZombies
- zombies to spawn (if 0 we gonna randomize it)outfit
- force zombies spanwed in a specific outfit (not mandatory)femaleChance
- force female zombies (if not set it'll be 50% chance, you can set it to 0 to exclude female from spawning, or 100 to force only female)room
- force spawn zombies inside a certain room (not mandatory)
-
addRandomRangedWeapon
public HandWeapon addRandomRangedWeapon(ItemContainer container, boolean addBulletsInGun, boolean addBoxInContainer, boolean attachPart) -
spawnItemsInContainers
-
getWindow
-
getDoor
-
addBarricade
-
addWorldItem
public InventoryItem addWorldItem(String item, IsoGridSquare sq, float xoffset, float yoffset, float zoffset) -
addWorldItem
public InventoryItem addWorldItem(String item, IsoGridSquare sq, float xoffset, float yoffset, float zoffset, int worldZ) -
addWorldItem
-
isTableFor3DItems
-