Package zombie.iso.areas
Class SafeHouse
java.lang.Object
zombie.iso.areas.SafeHouse
public class SafeHouse
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static java.util.ArrayList
safehouseList
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
addPlayer(java.lang.String player)
static SafeHouse
addSafeHouse(int x, int y, int w, int h, java.lang.String player, boolean remote)
static SafeHouse
addSafeHouse(IsoGridSquare square, IsoPlayer player)
static boolean
allowSafeHouse(IsoPlayer player)
SafeHouse
alreadyHaveSafehouse(IsoPlayer player)
static java.lang.String
canBeSafehouse(IsoGridSquare clickedSquare, IsoPlayer player)
int
getH()
long
getLastVisited()
int
getOpenTimer()
java.lang.String
getOwner()
int
getPlayerConnected()
java.util.ArrayList
getPlayers()
static SafeHouse
getSafeHouse(int x, int y, int w, int h)
static SafeHouse
getSafeHouse(IsoGridSquare square)
static java.util.ArrayList
getSafehouseList()
java.lang.String
getTitle()
int
getW()
int
getX()
int
getX2()
int
getY()
int
getY2()
static SafeHouse
hasSafehouse(IsoPlayer player)
static void
init()
boolean
isOwner(IsoPlayer player)
static SafeHouse
isSafeHouse(IsoGridSquare square, java.lang.String username, boolean doDisableSafehouse)
void
kickOutOfSafehouse(IsoPlayer player)
void
load(java.nio.ByteBuffer input, int WorldVersion)
boolean
playerAllowed(IsoPlayer player)
void
removePlayer(java.lang.String player)
void
removeSafeHouse(IsoPlayer player)
void
removeSafeHouse(IsoPlayer player, boolean force)
void
save(java.nio.ByteBuffer output)
void
setH(int h)
void
setLastVisited(long lastVisited)
void
setOpenTimer(int openTimer)
void
setOwner(java.lang.String owner)
void
setPlayerConnected(int playerConnected)
void
setPlayers(java.util.ArrayList players)
static void
setSafehouseList(java.util.ArrayList safehouseList)
void
setTitle(java.lang.String title)
void
setW(int w)
void
setX(int x)
void
setY(int y)
void
syncSafehouse()
void
updateSafehouse(IsoPlayer player)
static void
updateSafehousePlayersConnected()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
safehouseList
public static java.util.ArrayList safehouseList
-
-
Constructor Details
-
SafeHouse
public SafeHouse(int x, int y, int w, int h, java.lang.String player) -
SafeHouse
public SafeHouse()
-
-
Method Details
-
init
public static void init() -
addSafeHouse
public static SafeHouse addSafeHouse(int x, int y, int w, int h, java.lang.String player, boolean remote) -
addSafeHouse
-
hasSafehouse
-
updateSafehousePlayersConnected
public static void updateSafehousePlayersConnected() -
getSafeHouse
-
getSafeHouse
-
isSafeHouse
public static SafeHouse isSafeHouse(IsoGridSquare square, java.lang.String username, boolean doDisableSafehouse) -
playerAllowed
-
addPlayer
public void addPlayer(java.lang.String player) -
removePlayer
public void removePlayer(java.lang.String player) -
syncSafehouse
public void syncSafehouse() -
removeSafeHouse
-
removeSafeHouse
-
save
public void save(java.nio.ByteBuffer output) -
load
public void load(java.nio.ByteBuffer input, int WorldVersion) -
canBeSafehouse
-
kickOutOfSafehouse
-
alreadyHaveSafehouse
-
allowSafeHouse
-
updateSafehouse
-
getX
public int getX() -
setX
public void setX(int x) -
getY
public int getY() -
setY
public void setY(int y) -
getW
public int getW() -
setW
public void setW(int w) -
getH
public int getH() -
setH
public void setH(int h) -
getX2
public int getX2() -
getY2
public int getY2() -
getPlayers
public java.util.ArrayList getPlayers() -
setPlayers
public void setPlayers(java.util.ArrayList players) -
getSafehouseList
public static java.util.ArrayList getSafehouseList() -
setSafehouseList
public static void setSafehouseList(java.util.ArrayList safehouseList) -
getOwner
public java.lang.String getOwner() -
setOwner
public void setOwner(java.lang.String owner) -
isOwner
-
getLastVisited
public long getLastVisited() -
setLastVisited
public void setLastVisited(long lastVisited) -
getTitle
public java.lang.String getTitle() -
setTitle
public void setTitle(java.lang.String title) -
getPlayerConnected
public int getPlayerConnected() -
setPlayerConnected
public void setPlayerConnected(int playerConnected) -
getOpenTimer
public int getOpenTimer() -
setOpenTimer
public void setOpenTimer(int openTimer)
-