Class RandomizedVehicleStoryBase

java.lang.Object
zombie.randomizedWorld.RandomizedWorldBase
zombie.randomizedWorld.randomizedVehicleStory.RandomizedVehicleStoryBase
Direct Known Subclasses:
RVSAmbulanceCrash, RVSBanditRoad, RVSBurntCar, RVSCarCrash, RVSCarCrashCorpse, RVSChangingTire, RVSConstructionSite, RVSCrashHorde, RVSFlippedCrash, RVSPoliceBlockade, RVSPoliceBlockadeShooting, RVSTrailerCrash, RVSUtilityVehicle

public class RandomizedVehicleStoryBase extends RandomizedWorldBase
  • Field Details

  • Constructor Details

    • RandomizedVehicleStoryBase

      public RandomizedVehicleStoryBase()
  • Method Details

    • initAllRVSMapChance

      public static void initAllRVSMapChance(IsoMetaGrid.Zone zone, IsoChunk chunk)
      We init a map with every possible stories for this zone
      Parameters:
      zone -
      chunk -
    • doRandomStory

      public static boolean doRandomStory(IsoMetaGrid.Zone zone, IsoChunk chunk, boolean force)
    • getMinZoneWidth

      public int getMinZoneWidth()
    • getMinZoneHeight

      public int getMinZoneHeight()
    • randomizeVehicleStory

      public void randomizeVehicleStory(IsoMetaGrid.Zone zone, IsoChunk chunk)
    • getCenterOfChunk

      public IsoGridSquare getCenterOfChunk(IsoMetaGrid.Zone zone, IsoChunk chunk)
      Get the center of the chunk according to the zone (so center of the 10x10 chunk AND the zone)
      Parameters:
      zone -
      chunk -
      Returns:
    • isValid

      public boolean isValid(IsoMetaGrid.Zone zone, IsoChunk chunk, boolean force)
    • initSpawnDataForChunk

      public VehicleStorySpawnData initSpawnDataForChunk(IsoMetaGrid.Zone zone, IsoChunk chunk)
    • getSpawnPoint

      public boolean getSpawnPoint(IsoMetaGrid.Zone zone, IsoChunk chunk, float[] result)
    • getRectangleSpawnPoint

      public boolean getRectangleSpawnPoint(IsoMetaGrid.Zone zone, IsoChunk chunk, float[] result)
    • getPolylineSpawnPoint

      public boolean getPolylineSpawnPoint(IsoMetaGrid.Zone zone, IsoChunk chunk, float[] result)
    • isFullyStreamedIn

      public boolean isFullyStreamedIn(int x1, int y1, int x2, int y2)
    • isChunkLoaded

      public boolean isChunkLoaded(int wx, int wy)
    • initVehicleStorySpawner

      public boolean initVehicleStorySpawner(IsoMetaGrid.Zone zone, IsoChunk chunk, boolean debug)
    • callVehicleStorySpawner

      public boolean callVehicleStorySpawner(IsoMetaGrid.Zone zone, IsoChunk chunk, float additionalRotationRadians)
    • spawnElement

      public void spawnElement(VehicleStorySpawner spawner, VehicleStorySpawner.Element element)
    • addSmashedOverlay

      public BaseVehicle[] addSmashedOverlay(BaseVehicle v1, BaseVehicle v2, int xOffset, int yOffset, boolean horizontalZone, boolean addBlood)
    • getChance

      public int getChance()
    • setChance

      public void setChance(int chance)
    • getMinimumDays

      public int getMinimumDays()
    • setMinimumDays

      public void setMinimumDays(int minimumDays)
    • getMaximumDays

      public int getMaximumDays()
      Overrides:
      getMaximumDays in class RandomizedWorldBase
    • setMaximumDays

      public void setMaximumDays(int maximumDays)
      Overrides:
      setMaximumDays in class RandomizedWorldBase
    • getName

      public String getName()
      Overrides:
      getName in class RandomizedWorldBase
    • getDebugLine

      public String getDebugLine()
      Overrides:
      getDebugLine in class RandomizedWorldBase
    • registerCustomOutfits

      public void registerCustomOutfits()