Class SafeHouse
java.lang.Object
zombie.iso.areas.SafeHouse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
static SafeHouse
addSafeHouse
(int int0, int int1, int int2, int int3, String string) static SafeHouse
addSafeHouse
(IsoGridSquare square, IsoPlayer player) static boolean
allowSafeHouse
(IsoPlayer player) alreadyHaveSafehouse
(String username) alreadyHaveSafehouse
(IsoPlayer player) static String
canBeSafehouse
(IsoGridSquare clickedSquare, IsoPlayer player) void
checkTrespass
(IsoPlayer player) static void
boolean
containsLocation
(float _x, float _y) long
int
getH()
int
getId()
long
int
static int
getOnlineID
(int int0, int int1) int
getOwner()
int
static SafeHouse
getSafeHouse
(int int0) static SafeHouse
getSafeHouse
(int _x, int _y, int _w, int _h) static SafeHouse
getSafeHouse
(String string) static SafeHouse
getSafeHouse
(IsoGridSquare square) static SafeHouse
getSafehouseByOwner
(String string) static SafeHouse
getSafehouseOverlapping
(int int3, int int1, int int2, int int0) static SafeHouse
getSafehouseOverlapping
(int int3, int int1, int int2, int int0, SafeHouse safeHouse1) getTitle()
int
getW()
int
getX()
int
getX2()
int
getY()
int
getY2()
static SafeHouse
hasSafehouse
(String username) static SafeHouse
hasSafehouse
(IsoPlayer player) boolean
haveInvite
(String string) static void
hitPoint
(int int0) static void
init()
static boolean
intersects
(int int1, int int4, int int2, int int5) static boolean
isInSameSafehouse
(String string1, String string0) boolean
boolean
static boolean
isPlayerAllowedOnSquare
(IsoPlayer player, IsoGridSquare sq) boolean
isRespawnInSafehouse
(String username) static SafeHouse
isSafeHouse
(IsoGridSquare square, String username, boolean doDisableSafehouse) Return if the square is a safehouse non allowed for the player You need to be on a safehouse AND not be allowed to return the safe If you're allowed, you'll have null in return If username is null, you basically just return if there's a safehouse herestatic boolean
isSafehouseAllowClaim
(SafeHouse safeHouse, IsoPlayer isoPlayer) static boolean
isSafehouseAllowInteract
(IsoGridSquare isoGridSquare, IsoPlayer isoPlayer) static boolean
isSafehouseAllowLoot
(IsoGridSquare isoGridSquare, IsoPlayer isoPlayer) static boolean
isSafehouseAllowTrepass
(IsoGridSquare isoGridSquare, IsoPlayer isoPlayer) static SafeHouse
load
(ByteBuffer bb, int WorldVersion) boolean
playerAllowed
(String name) boolean
playerAllowed
(IsoPlayer player) void
removeInvite
(String string) void
removePlayer
(String player) static void
removeSafeHouse
(SafeHouse safeHouse) void
save
(ByteBuffer output) void
setDatetimeCreated
(long long0) void
setH
(int _h) void
setHitPoints
(int int0) void
setLastVisited
(long _lastVisited) void
setLocation
(String string0) void
setOnlineID
(int int0) void
setOpenTimer
(int _openTimer) void
void
setPlayerConnected
(int _playerConnected) void
setPlayers
(ArrayList<String> _players) void
setRespawnInSafehouse
(boolean b, String username) void
void
setW
(int _w) void
setX
(int _x) void
setY
(int _y) void
void
updateSafehouse
(IsoPlayer player) Update the last visited value everytime someone is in this safehouse If it's not visited for some time (SafehouseRemoval serveroption) it's automatically removed.static void
-
Constructor Details
-
SafeHouse
-
-
Method Details
-
init
public static void init() -
addSafeHouse
-
addSafeHouse
-
hasSafehouse
-
getSafehouseByOwner
-
hasSafehouse
-
updateSafehousePlayersConnected
public static void updateSafehousePlayersConnected() -
updatePlayersConnected
public void updatePlayersConnected() -
getSafeHouse
-
getSafeHouse
-
getSafeHouse
-
getSafehouseOverlapping
-
getSafehouseOverlapping
-
isSafeHouse
public static SafeHouse isSafeHouse(IsoGridSquare square, String username, boolean doDisableSafehouse) Return if the square is a safehouse non allowed for the player You need to be on a safehouse AND not be allowed to return the safe If you're allowed, you'll have null in return If username is null, you basically just return if there's a safehouse here -
isSafehouseAllowTrepass
-
isSafehouseAllowInteract
-
isSafehouseAllowLoot
-
isSafehouseAllowClaim
-
clearSafehouseList
public static void clearSafehouseList() -
playerAllowed
-
playerAllowed
-
addPlayer
-
removePlayer
-
removeSafeHouse
-
save
-
load
-
canBeSafehouse
-
checkTrespass
-
alreadyHaveSafehouse
-
alreadyHaveSafehouse
-
allowSafeHouse
-
updateSafehouse
Update the last visited value everytime someone is in this safehouse If it's not visited for some time (SafehouseRemoval serveroption) it's automatically removed. -
getOnlineID
public static int getOnlineID(int int0, int int1) -
getId
-
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() -
containsLocation
public boolean containsLocation(float _x, float _y) -
getPlayers
-
setPlayers
-
getPlayersRespawn
-
getSafehouseList
-
getOwner
-
setOwner
-
isOwner
-
isOwner
-
getLastVisited
public long getLastVisited() -
setLastVisited
public void setLastVisited(long _lastVisited) -
getDatetimeCreated
public long getDatetimeCreated() -
getDatetimeCreatedStr
-
setDatetimeCreated
public void setDatetimeCreated(long long0) -
getLocation
-
setLocation
-
getTitle
-
setTitle
-
getPlayerConnected
public int getPlayerConnected() -
setPlayerConnected
public void setPlayerConnected(int _playerConnected) -
getOpenTimer
public int getOpenTimer() -
setOpenTimer
public void setOpenTimer(int _openTimer) -
getHitPoints
public int getHitPoints() -
setHitPoints
public void setHitPoints(int int0) -
setRespawnInSafehouse
-
isRespawnInSafehouse
-
isPlayerAllowedOnSquare
-
getOnlineID
public int getOnlineID() -
setOnlineID
public void setOnlineID(int int0) -
getSafeHouse
-
isInSameSafehouse
-
intersects
public static boolean intersects(int int1, int int4, int int2, int int5) -
haveInvite
-
removeInvite
-
addInvite
-
hitPoint
public static void hitPoint(int int0)
-