Package zombie.iso
Class IsoMetaGrid.Zone
java.lang.Object
zombie.iso.IsoMetaGrid.Zone
- Direct Known Subclasses:
IsoMetaGrid.VehicleZone
- Enclosing class:
- IsoMetaGrid
public static class IsoMetaGrid.Zone
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description int
h
boolean
haveConstruction
int
hourLastSeen
int
lastActionTimestamp
java.lang.String
name
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)
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
-
hourLastSeen
public int hourLastSeen -
lastActionTimestamp
public int lastActionTimestamp -
haveConstruction
public boolean haveConstruction -
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
-
-
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() -
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)
-