Class SafeHouse

java.lang.Object
zombie.iso.areas.SafeHouse

public class SafeHouse extends Object
  • Constructor Details

    • SafeHouse

      public SafeHouse(int x, int y, int w, int h, String player)
  • Method Details

    • init

      public static void init()
    • addSafeHouse

      public static SafeHouse addSafeHouse(int x, int y, int w, int h, String player)
    • addSafeHouse

      public static SafeHouse addSafeHouse(IsoGridSquare square, IsoPlayer player)
    • hasSafehouse

      public static SafeHouse hasSafehouse(String username)
    • getSafehouseByOwner

      public static SafeHouse getSafehouseByOwner(String username)
    • hasSafehouse

      public static SafeHouse hasSafehouse(IsoPlayer player)
    • updateSafehousePlayersConnected

      public static void updateSafehousePlayersConnected()
    • updatePlayersConnected

      public void updatePlayersConnected()
    • getSafeHouse

      public static SafeHouse getSafeHouse(IsoGridSquare square)
    • getSafeHouse

      public static SafeHouse getSafeHouse(String title)
    • getSafeHouse

      public static SafeHouse getSafeHouse(int x, int y, int w, int h)
    • getSafehouseOverlapping

      public static SafeHouse getSafehouseOverlapping(int x1, int y1, int x2, int y2)
    • getSafehouseOverlapping

      public static SafeHouse getSafehouseOverlapping(int x1, int y1, int x2, int y2, SafeHouse ignore)
    • 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

      public static boolean isSafehouseAllowTrepass(IsoGridSquare square, IsoPlayer player)
    • isSafehouseAllowInteract

      public static boolean isSafehouseAllowInteract(IsoGridSquare square, IsoPlayer player)
    • isSafehouseAllowLoot

      public static boolean isSafehouseAllowLoot(IsoGridSquare square, IsoPlayer player)
    • isSafehouseAllowClaim

      public static boolean isSafehouseAllowClaim(SafeHouse safehouse, IsoPlayer player)
    • clearSafehouseList

      public static void clearSafehouseList()
    • playerAllowed

      public boolean playerAllowed(IsoPlayer player)
    • playerAllowed

      public boolean playerAllowed(String name)
    • addPlayer

      public void addPlayer(String player)
    • removePlayer

      public void removePlayer(String player)
    • removeSafeHouse

      public static void removeSafeHouse(SafeHouse safeHouse)
    • save

      public void save(ByteBuffer output)
    • load

      public static SafeHouse load(ByteBuffer bb, int WorldVersion)
    • canBeSafehouse

      public static String canBeSafehouse(IsoGridSquare clickedSquare, IsoPlayer player)
    • checkTrespass

      public void checkTrespass(IsoPlayer player)
    • alreadyHaveSafehouse

      public SafeHouse alreadyHaveSafehouse(String username)
    • alreadyHaveSafehouse

      public SafeHouse alreadyHaveSafehouse(IsoPlayer player)
    • allowSafeHouse

      public static boolean allowSafeHouse(IsoPlayer player)
    • updateSafehouse

      public 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.
    • getOnlineID

      public static int getOnlineID(int x, int y)
    • getId

      public String 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

      public ArrayList<String> getPlayers()
    • setPlayers

      public void setPlayers(ArrayList<String> players)
    • getPlayersRespawn

      public ArrayList<String> getPlayersRespawn()
    • getSafehouseList

      public static ArrayList<SafeHouse> getSafehouseList()
    • getOwner

      public String getOwner()
    • setOwner

      public void setOwner(String owner)
    • isOwner

      public boolean isOwner(IsoPlayer player)
    • isOwner

      public boolean isOwner(String username)
    • getLastVisited

      public long getLastVisited()
    • setLastVisited

      public void setLastVisited(long lastVisited)
    • getDatetimeCreated

      public long getDatetimeCreated()
    • getDatetimeCreatedStr

      public String getDatetimeCreatedStr()
    • setDatetimeCreated

      public void setDatetimeCreated(long _datetimeCreated)
    • getLocation

      public String getLocation()
    • setLocation

      public void setLocation(String _location)
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String title)
    • 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

      public void setRespawnInSafehouse(boolean b, String username)
    • isRespawnInSafehouse

      public boolean isRespawnInSafehouse(String username)
    • isPlayerAllowedOnSquare

      public static boolean isPlayerAllowedOnSquare(IsoPlayer player, IsoGridSquare sq)
    • getOnlineID

      public int getOnlineID()
    • setOnlineID

      public void setOnlineID(int value)
    • getSafeHouse

      public static SafeHouse getSafeHouse(int onlineID)
    • isInSameSafehouse

      public static boolean isInSameSafehouse(String player1, String player2)
    • intersects

      public static boolean intersects(int startX, int startY, int endX, int endY)
    • haveInvite

      public boolean haveInvite(String player)
    • removeInvite

      public void removeInvite(String player)
    • addInvite

      public void addInvite(String invited)
    • hitPoint

      public static void hitPoint(int onlineID)