Class SafeHouse
java.lang.Object
zombie.iso.areas.SafeHouse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidstatic SafeHouseaddSafeHouse(int x, int y, int w, int h, String player) 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 x, int y) intgetOwner()intstatic SafeHousegetSafeHouse(int onlineID) static SafeHousegetSafeHouse(int x, int y, int w, int h) static SafeHousegetSafeHouse(String title) static SafeHousegetSafeHouse(IsoGridSquare square) static SafeHousegetSafehouseByOwner(String username) static SafeHousegetSafehouseOverlapping(int x1, int y1, int x2, int y2) static SafeHousegetSafehouseOverlapping(int x1, int y1, int x2, int y2, SafeHouse ignore) getTitle()intgetW()intgetX()intgetX2()intgetY()intgetY2()static SafeHousehasSafehouse(String username) static SafeHousehasSafehouse(IsoPlayer player) booleanhaveInvite(String player) static voidhitPoint(int onlineID) static voidinit()static booleanintersects(int startX, int startY, int endX, int endY) static booleanisInSameSafehouse(String player1, String player2) 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 player) voidremovePlayer(String player) static voidremoveSafeHouse(SafeHouse safeHouse) voidsave(ByteBuffer output) voidsetDatetimeCreated(long _datetimeCreated) voidsetH(int h) voidsetHitPoints(int hitPoints) voidsetLastVisited(long lastVisited) voidsetLocation(String _location) voidsetOnlineID(int value) 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 x, int y) -
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 _datetimeCreated) -
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 hitPoints) -
setRespawnInSafehouse
-
isRespawnInSafehouse
-
isPlayerAllowedOnSquare
-
getOnlineID
public int getOnlineID() -
setOnlineID
public void setOnlineID(int value) -
getSafeHouse
-
isInSameSafehouse
-
intersects
public static boolean intersects(int startX, int startY, int endX, int endY) -
haveInvite
-
removeInvite
-
addInvite
-
hitPoint
public static void hitPoint(int onlineID)
-