Class AnimalZone
java.lang.Object
zombie.iso.zones.Zone
zombie.characters.animals.AnimalZone
-
Field Summary
FieldsFields inherited from class Zone
clipper, geometryType, h, haveConstruction, hourLastSeen, id, isPreferredZoneForSquare, lastActionTimestamp, name, pickedRzStory, pickedXForZoneStory, pickedYForZoneStory, points, polylineOutlinePoints, polylineWidth, spawnedZombies, spawnSpecialZombies, totalArea, triangleAreas, triangles, type, w, x, y, z, zombiesTypeToSpawn -
Constructor Summary
ConstructorsConstructorDescriptionAnimalZone(String name, String type, int x, int y, int z, int w, int h, String action, String animalType, boolean spawnAnimal) AnimalZone(String name, String type, int x, int y, int z, int w, int h, se.krka.kahlua.vm.KahluaTable properties) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddJunction(int pointIndexSelf, AnimalZone other, int pointIndexOther) voidaddJunction(AnimalZoneJunction junction) voidvoidDispose()floatfloatgetClosestPointOnPolyline(float px, float py, org.joml.Vector2f out) booleangetDirectionOnPolyline(float t, org.joml.Vector2f out) floatgetDistanceOfPointFromStart(int pointIndex) intgetIndexOfPoint(int x, int y) voidgetJunctionsBetween(float t1, float t2, ArrayList<AnimalZoneJunction> junctions) booleangetPointOnPolyline(float t, org.joml.Vector2f out) load(ByteBuffer input, int WorldVersion) load(ByteBuffer input, int WorldVersion, Map<Integer, String> stringMap, SharedStrings sharedStrings) voidsave(ByteBuffer output) voidsave(ByteBuffer output, Map<String, Integer> stringMap) toString()Methods inherited from class Zone
addSquare, contains, difference, getClippedSegmentOfPolyline, getHeight, getHoursSinceLastSeen, getLastActionTimestamp, getName, getOriginalName, getPolygonTriangles, getPolylineLength, getPolylineOutlineTriangles, getRandomFreeSquareInZone, getRandomSquareInZone, getRandomUnseenSquareInZone, getSquares, getTotalArea, getType, getWidth, getX, getY, getZ, getZombieDensity, haveCons, intersects, isFullyStreamed, isPoint, isPolygon, isPolyline, isPreferredZoneForSquare, isRectangle, pickRandomLocation, removeSquare, sendToServer, setH, setHaveConstruction, setHourSeenToCurrent, setLastActionTimestamp, setName, setOriginalName, setPickedXForZoneStory, setPickedYForZoneStory, setType, setW, setX, setY
-
Field Details
-
action
-
junctions
-
-
Constructor Details
-
AnimalZone
public AnimalZone() -
AnimalZone
-
AnimalZone
-
-
Method Details
-
save
-
save
-
load
-
Dispose
-
getIndexOfPoint
public int getIndexOfPoint(int x, int y) -
getAction
-
addJunctionsWithOtherZone
-
addJunction
-
addJunction
-
getJunctionsBetween
-
getClosedPolylineLength
public float getClosedPolylineLength() -
getPointOnPolyline
public boolean getPointOnPolyline(float t, org.joml.Vector2f out) -
getClosestPointOnPolyline
public float getClosestPointOnPolyline(float px, float py, org.joml.Vector2f out) -
getDistanceOfPointFromStart
public float getDistanceOfPointFromStart(int pointIndex) -
getDirectionOnPolyline
public boolean getDirectionOnPolyline(float t, org.joml.Vector2f out) -
toString
-