Class RandomizedBuildingBase
java.lang.Object
zombie.randomizedWorld.RandomizedWorldBase
zombie.randomizedWorld.randomizedBuilding.RandomizedBuildingBase
- Direct Known Subclasses:
RandomizedDeadSurvivorBase
,RBBar
,RBBarn
,RBBasic
,RBBurnt
,RBBurntCorpse
,RBBurntFireman
,RBCafe
,RBClinic
,RBDorm
,RBGunstoreSiege
,RBHairSalon
,RBHeatBreakAfternoon
,RBJackieJaye
,RBJoanHartford
,RBJudge
,RBKateAndBaldspot
,RBLooted
,RBMayorWestPoint
,RBNolans
,RBOffice
,RBOther
,RBPileOCrepe
,RBPizzaWhirled
,RBPoliceSiege
,RBReverend
,RBSafehouse
,RBSchool
,RBShopLooted
,RBSpiffo
,RBStripclub
,RBTableStory
,RBTableStoryBase
,RBTrashed
,RBTwiggy
,RBWoodcraft
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final int
protected static final int
static int
Fields inherited from class zombie.randomizedWorld.RandomizedWorldBase
debugLine, isRat, maximumDays, minimumDays, minimumRooms, name, reallyAlwaysForce, unique
-
Constructor Summary
Constructors -
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 string, IsoGridSquare isoGridSquare, float float0, float float1, float float2, boolean boolean0) addWorldItem
(String item, IsoGridSquare sq, float xoffset, float yoffset, float zoffset, int worldZ) addWorldItem
(String item, IsoGridSquare sq, IsoObject obj) addWorldItem
(String string, IsoGridSquare isoGridSquare, IsoObject isoObject, boolean boolean0) 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
int
getChance
(IsoGridSquare isoGridSquare) 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
protected void
removeAllZombies
(BuildingDef buildingDef) 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, addBrazier, addCampfire, addCampfireOrPit, addCharcoalBurner, addCookingPit, addGrindstone, addItemOnGround, addItemOnGround, addItemOnGround, addItemOnGroundNoLoot, addItemOnGroundNoLoot, addItemOnGroundStatic, addItemOnGroundStatic, addItemToObjectSurface, addMattressNorthSouth, addMattressWestEast, addRandomFirepit, addRandomItemOnGround, addRandomItemsOnGround, addRandomItemsOnGround, addRandomShelterNorthSouth, addRandomShelterWestEast, addRandomTentNorthSouth, addRandomTentWestEast, addShelterNorthSouth, addShelterWestEast, addSimpleCookingPit, addSimpleFire, addSleepingBagNorthSouth, addSleepingBagOrTentNorthSouth, addSleepingBagOrTentWestEast, addSleepingBagWestEast, addStoneAnvil, addTentNorthSouth, addTentNorthSouthNew, addTentWestEast, addTentWestEastNew, addTileObject, addTileObject, addTileObject, addTileObject, addTileObject, addTileObject, addTrailer, addTrailOfBlood, addTraitOfBlood, addVehicle, addVehicle, addVehicle, addVehicle, addVehicle, addVehicle, addVehicle, addVehicle, addVehicleFlipped, addVehicleFlipped, addWeapon, addWorkstationEntity, addWorkstationEntity, addZombiesOnVehicle, alignCorpseToSquare, checkAreaForCarsSpawn, checkRadiusForCarSpawn, cleanSquareAndNeighbors, createBodyFromZombie, createCorpse, createCorpse, createCorpse, createCorpse, createRandomDeadBody, createRandomDeadBody, createRandomDeadBody, createRandomDeadBody, createRandomDeadBody, createRandomDeadBody, createRandomZombie, createRandomZombie, createRandomZombieForCorpse, createSkeletonCorpse, createSkeletonCorpse, dirtBomb, getBarnClutter, getBarnClutterItem, getBathroomSinkClutter, getBathroomSinkClutterItem, getBBQClutter, getBBQClutterItem, getBeachPartyClutter, getBeachPartyClutterItem, getBedClutter, getBedClutterItem, getCafeClutter, getCafeClutterItem, getCarpentryToolClutter, getCarpentryToolClutterItem, getClutterCopy, getClutterItem, getDeadEndClutter, getDeadEndClutterItem, getDebugLine, getDormClutter, getDormClutterItem, getFarmStorageClutter, getFarmStorageClutterItem, getFootballNightDrinkItem, getFootballNightDrinks, getFootballNightSnackItem, getFootballNightSnacks, getGarageStorageClutter, getGarageStorageClutterItem, getGigamartClutter, getGigamartClutterItem, getGroceryClutter, getGroceryClutterItem, getHairSalonClutter, getHairSalonClutterItem, getHallClutter, getHallClutterItem, getHenDoDrinkItem, getHenDoDrinks, getHenDoSnackItem, getHenDoSnacks, getHoedownClutter, getHoedownClutterItem, getHousePartyClutter, getHousePartyClutterItem, getJudgeClutter, getJudgeClutterItem, getKidClutter, getKidClutterItem, getKitchenCounterClutter, getKitchenCounterClutterItem, getKitchenSinkClutter, getKitchenSinkClutterItem, getKitchenStoveClutter, getKitchenStoveClutterItem, getLaundryRoomClutter, getLaundryRoomClutterItem, getLivingroomClutter, getLivingroomClutterItem, getLivingRoomOrKitchen, getMaximumDays, getMedicalClutter, getMedicallutterItem, getMurderSceneClutter, getMurderSceneClutterItem, getName, getNastyMattressClutter, getNastyMattressClutterItem, getOfficeCarDealerClutter, getOfficeCarDealerClutterItem, getOfficeOtherClutter, getOfficeOtherClutterItem, getOfficePaperworkClutter, getOfficePaperworkClutterItem, getOfficePenClutter, getOfficePenClutterItem, getOfficeTreatClutter, getOfficeTreatClutterItem, getOldShelterClutter, getOldShelterClutterItem, getOvenFoodClutter, getOvenFoodClutterItem, getPillowClutter, getPillowClutterItem, getPokerNightClutter, getPokerNightClutterItem, getRandomRoom, getRandomRoomNoKids, getRandomSpawnSquare, getRandomSquareForCorpse, getRichJerkClutter, getRichJerkClutterItem, getRoom, getRoomNoKids, getSadCampsiteClutter, getSadCampsiteClutterItem, getSidetableClutter, getSidetableClutterItem, getSq, getSurvivalistCampsiteClutter, getSurvivalistCampsiteClutterItem, getTwiggyClutter, getTwiggyClutterItem, getUtilityToolClutter, getUtilityToolClutterItem, getVanCampClutter, getVanCampClutterItem, getWatchClutter, getWatchClutterItem, getWoodcraftClutter, getWoodcraftClutterItem, graffSquare, graffSquare, is1x1AreaClear, is1x2AreaClear, is2x1AreaClear, is2x1or1x2AreaClear, is2x2AreaClear, isRat, isTimeValid, isUnique, isValidGraffSquare, removeAllVehiclesOnZone, setAttachedItem, setDebugLine, setMaximumDays, setUnique, spawnCarOnNearestNav, spawnCarOnNearestNav, trashSquare
-
Field Details
-
KBBuildingX
protected static final int KBBuildingX- See Also:
-
KBBuildingY
protected static final int KBBuildingY- See Also:
-
maximumRoomCount
public static int maximumRoomCount
-
-
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..) -
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() -
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
-
removeAllZombies
-
getWindow
-
getDoor
-
addBarricade
-
addWorldItem
public InventoryItem addWorldItem(String item, IsoGridSquare sq, float xoffset, float yoffset, float zoffset) -
addWorldItem
public InventoryItem addWorldItem(String string, IsoGridSquare isoGridSquare, float float0, float float1, float float2, boolean boolean0) -
addWorldItem
public InventoryItem addWorldItem(String item, IsoGridSquare sq, float xoffset, float yoffset, float zoffset, int worldZ) -
addWorldItem
-
addWorldItem
public InventoryItem addWorldItem(String string, IsoGridSquare isoGridSquare, IsoObject isoObject, boolean boolean0) -
isTableFor3DItems
-