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

public class RandomizedBuildingBase extends RandomizedWorldBase
  • Constructor Details

    • RandomizedBuildingBase

      public RandomizedBuildingBase()
  • Method Details

    • randomizeBuilding

      public void randomizeBuilding(BuildingDef def)
    • init

      public void init()
    • initAllRBMapChance

      public static void initAllRBMapChance()
    • isValid

      public 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..)
      Parameters:
      def -
      Returns:
    • getMinimumDays

      public int getMinimumDays()
    • setMinimumDays

      public void setMinimumDays(int minimumDays)
    • getMinimumRooms

      public int getMinimumRooms()
    • setMinimumRooms

      public void setMinimumRooms(int minimumRooms)
    • ChunkLoaded

      public static void ChunkLoaded(IsoBuilding building)
    • 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 class RandomizedWorldBase
    • 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 - buildingDef
      totalZombies - 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

      public void spawnItemsInContainers(BuildingDef def, String distribName, int chance)
    • getWindow

      public IsoWindow getWindow(IsoGridSquare sq)
    • getDoor

      public IsoDoor getDoor(IsoGridSquare sq)
    • addBarricade

      public void addBarricade(IsoGridSquare sq, int numPlanks)
    • 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

      public InventoryItem addWorldItem(String item, IsoGridSquare sq, IsoObject obj)
    • isTableFor3DItems

      public boolean isTableFor3DItems(IsoObject obj, IsoGridSquare sq)