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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddSmashedOverlay
(BaseVehicle v1, BaseVehicle v2, int xOffset, int yOffset, boolean horizontalZone, boolean addBlood) boolean
callVehicleStorySpawner
(IsoMetaGrid.Zone zone, IsoChunk chunk, float additionalRotationRadians) static boolean
doRandomStory
(IsoMetaGrid.Zone zone, IsoChunk chunk, boolean force) 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)int
int
int
int
int
getName()
boolean
getPolylineSpawnPoint
(IsoMetaGrid.Zone zone, IsoChunk chunk, float[] result) boolean
getRectangleSpawnPoint
(IsoMetaGrid.Zone zone, IsoChunk chunk, float[] result) boolean
getSpawnPoint
(IsoMetaGrid.Zone zone, IsoChunk chunk, float[] result) static void
initAllRVSMapChance
(IsoMetaGrid.Zone zone, IsoChunk chunk) We init a map with every possible stories for this zoneinitSpawnDataForChunk
(IsoMetaGrid.Zone zone, IsoChunk chunk) boolean
initVehicleStorySpawner
(IsoMetaGrid.Zone zone, IsoChunk chunk, boolean debug) boolean
isChunkLoaded
(int wx, int wy) boolean
isFullyStreamedIn
(int x1, int y1, int x2, int y2) boolean
isValid
(IsoMetaGrid.Zone zone, IsoChunk chunk, boolean force) void
randomizeVehicleStory
(IsoMetaGrid.Zone zone, IsoChunk chunk) void
void
setChance
(int chance) void
setMaximumDays
(int maximumDays) void
setMinimumDays
(int minimumDays) void
spawnElement
(VehicleStorySpawner spawner, VehicleStorySpawner.Element element) 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, addZombiesOnSquare, addZombiesOnVehicle, alignCorpseToSquare, createBodyFromZombie, createRandomDeadBody, createRandomDeadBody, createRandomDeadBody, createRandomDeadBody, createRandomDeadBody, createRandomZombie, createRandomZombie, createRandomZombieForCorpse, createSkeletonCorpse, getLivingRoomOrKitchen, getRandomRoom, getRandomSpawnSquare, getRandomSquareForCorpse, getRoom, getSq, is1x2AreaClear, is2x1AreaClear, is2x1or1x2AreaClear, is2x2AreaClear, isTimeValid, isUnique, removeAllVehiclesOnZone, setAttachedItem, setDebugLine, setUnique, spawnCarOnNearestNav
-
Field Details
-
baseChance
public static final float baseChance- See Also:
-
-
Constructor Details
-
RandomizedVehicleStoryBase
public RandomizedVehicleStoryBase()
-
-
Method Details
-
initAllRVSMapChance
We init a map with every possible stories for this zone- Parameters:
zone
-chunk
-
-
doRandomStory
-
getMinZoneWidth
public int getMinZoneWidth() -
getMinZoneHeight
public int getMinZoneHeight() -
randomizeVehicleStory
-
getCenterOfChunk
Get the center of the chunk according to the zone (so center of the 10x10 chunk AND the zone)- Parameters:
zone
-chunk
-- Returns:
-
isValid
-
initSpawnDataForChunk
-
getSpawnPoint
-
getRectangleSpawnPoint
-
getPolylineSpawnPoint
-
isFullyStreamedIn
public boolean isFullyStreamedIn(int x1, int y1, int x2, int y2) -
isChunkLoaded
public boolean isChunkLoaded(int wx, int wy) -
initVehicleStorySpawner
-
callVehicleStorySpawner
public boolean callVehicleStorySpawner(IsoMetaGrid.Zone zone, IsoChunk chunk, float additionalRotationRadians) -
spawnElement
-
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 classRandomizedWorldBase
-
setMaximumDays
public void setMaximumDays(int maximumDays) - Overrides:
setMaximumDays
in classRandomizedWorldBase
-
getName
- Overrides:
getName
in classRandomizedWorldBase
-
getDebugLine
- Overrides:
getDebugLine
in classRandomizedWorldBase
-
registerCustomOutfits
public void registerCustomOutfits()
-