Class SafeHouse
java.lang.Object
zombie.iso.areas.SafeHouse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidstatic SafeHouseaddSafeHouse(int int0, int int1, int int2, int int3, String string) static SafeHouseaddSafeHouse(IsoGridSquare square, IsoPlayer player) static booleanallowSafeHouse(IsoPlayer player) alreadyHaveSafehouse(String username) alreadyHaveSafehouse(IsoPlayer player) static StringcanBeSafehouse(IsoGridSquare clickedSquare, IsoPlayer player) voidcheckTrespass(IsoPlayer player) static voidbooleancontainsLocation(float _x, float _y) longintgetH()intgetId()longintstatic intgetOnlineID(int int0, int int1) intgetOwner()intstatic SafeHousegetSafeHouse(int int0) static SafeHousegetSafeHouse(int _x, int _y, int _w, int _h) static SafeHousegetSafeHouse(String string) static SafeHousegetSafeHouse(IsoGridSquare square) static SafeHousegetSafehouseByOwner(String string) static SafeHousegetSafehouseOverlapping(int int3, int int1, int int2, int int0) static SafeHousegetSafehouseOverlapping(int int3, int int1, int int2, int int0, SafeHouse safeHouse1) getTitle()intgetW()intgetX()intgetX2()intgetY()intgetY2()static SafeHousehasSafehouse(String username) static SafeHousehasSafehouse(IsoPlayer player) booleanhaveInvite(String string) static voidhitPoint(int int0) static voidinit()static booleanintersects(int int1, int int4, int int2, int int5) static booleanisInSameSafehouse(String string1, String string0) booleanbooleanstatic booleanisPlayerAllowedOnSquare(IsoPlayer player, IsoGridSquare sq) booleanisRespawnInSafehouse(String username) static SafeHouseisSafeHouse(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 booleanisSafehouseAllowClaim(SafeHouse safeHouse, IsoPlayer player) static booleanisSafehouseAllowInteract(IsoGridSquare square, IsoPlayer player) static booleanisSafehouseAllowLoot(IsoGridSquare square, IsoPlayer player) static booleanisSafehouseAllowTrepass(IsoGridSquare square, IsoPlayer player) static SafeHouseload(ByteBuffer bb, int WorldVersion) booleanplayerAllowed(String name) booleanplayerAllowed(IsoPlayer player) voidremoveInvite(String string) voidremovePlayer(String player) static voidremoveSafeHouse(SafeHouse safeHouse) voidsave(ByteBuffer output) voidsetDatetimeCreated(long long0) voidsetH(int _h) voidsetHitPoints(int int0) voidsetLastVisited(long _lastVisited) voidsetLocation(String string0) voidsetOnlineID(int int0) voidsetOpenTimer(int _openTimer) voidvoidsetPlayerConnected(int _playerConnected) voidsetPlayers(ArrayList<String> _players) voidsetRespawnInSafehouse(boolean b, String username) voidvoidsetW(int _w) voidsetX(int _x) voidsetY(int _y) voidvoidupdateSafehouse(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)
-