Package zombie.iso
Class IsoMetaGrid.Zone
java.lang.Object
zombie.iso.IsoMetaGrid.Zone
- Enclosing class:
- IsoMetaGrid
public static class IsoMetaGrid.Zone
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description java.util.ArrayList
adjacent
java.util.ArrayList
buildings
short
gridSquaresSeenForEvaluation
int
h
boolean
haveConstruction
int
hourLastSeen
int
lastActionTimestamp
java.lang.String
name
boolean
respawnFinished
static short
ThresholdToCountZoneSeen
java.lang.String
type
int
w
int
x
int
y
int
z
-
Constructor Summary
Constructors Constructor Description Zone(java.lang.String name, java.lang.String type, int x, int y, int z, int w, int h)
-
Method Summary
Modifier and Type Method Description void
addSquare(IsoGridSquare sq)
void
difference(int x, int y, int z, int w, int h, java.util.ArrayList result)
int
getHeight()
float
getHoursSinceLastSeen()
int
getLastActionTimestamp()
java.lang.String
getName()
java.lang.String
getOriginalName()
IsoGridSquare
getRandomSquareInZone()
IsoGridSquare
getRandomUnseenSquareInZone()
java.util.ArrayList
getSquares()
java.lang.String
getType()
int
getWidth()
int
getX()
int
getY()
int
getZombieDensity()
boolean
haveCons()
boolean
intersects(int x, int y, int z, int w, int h)
boolean
isInside(int x, int y)
boolean
isInsideOrAdjacent(int x, int y)
void
removeSquare(IsoGridSquare sq)
void
sendToServer()
void
setHaveConstruction(boolean have)
void
setHourSeenToCurrent()
void
setLastActionTimestamp(int lastActionTimestamp)
void
setName(java.lang.String name)
void
setOriginalName(java.lang.String originalName)
void
setType(java.lang.String type)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ThresholdToCountZoneSeen
public static final short ThresholdToCountZoneSeen- See Also:
- Constant Field Values
-
hourLastSeen
public int hourLastSeen -
lastActionTimestamp
public int lastActionTimestamp -
gridSquaresSeenForEvaluation
public short gridSquaresSeenForEvaluation -
haveConstruction
public boolean haveConstruction -
respawnFinished
public boolean respawnFinished -
name
public java.lang.String name -
type
public java.lang.String type -
x
public int x -
y
public int y -
z
public int z -
w
public int w -
h
public int h -
adjacent
public java.util.ArrayList adjacent -
buildings
public java.util.ArrayList buildings
-
-
Constructor Details
-
Zone
public Zone(java.lang.String name, java.lang.String type, int x, int y, int z, int w, int h)
-
-
Method Details
-
getHoursSinceLastSeen
public float getHoursSinceLastSeen() -
setHourSeenToCurrent
public void setHourSeenToCurrent() -
setHaveConstruction
public void setHaveConstruction(boolean have) -
haveCons
public boolean haveCons() -
getZombieDensity
public int getZombieDensity() -
isInsideOrAdjacent
public boolean isInsideOrAdjacent(int x, int y) -
isInside
public boolean isInside(int x, int y) -
intersects
public boolean intersects(int x, int y, int z, int w, int h) -
difference
public void difference(int x, int y, int z, int w, int h, java.util.ArrayList result) -
getRandomSquareInZone
-
getRandomUnseenSquareInZone
-
addSquare
-
getSquares
public java.util.ArrayList getSquares() -
removeSquare
-
getName
public java.lang.String getName() -
getType
public java.lang.String getType() -
setType
public void setType(java.lang.String type) -
setName
public void setName(java.lang.String name) -
getLastActionTimestamp
public int getLastActionTimestamp() -
setLastActionTimestamp
public void setLastActionTimestamp(int lastActionTimestamp) -
getX
public int getX() -
getY
public int getY() -
getHeight
public int getHeight() -
getWidth
public int getWidth() -
sendToServer
public void sendToServer() -
getOriginalName
public java.lang.String getOriginalName() -
setOriginalName
public void setOriginalName(java.lang.String originalName)
-