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 int0, int int1, int int2, int int3, String string)
    • addSafeHouse

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

      public static SafeHouse hasSafehouse(String username)
    • getSafehouseByOwner

      public static SafeHouse getSafehouseByOwner(String string)
    • 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 string)
    • getSafeHouse

      public static SafeHouse getSafeHouse(int _x, int _y, int _w, int _h)
    • getSafehouseOverlapping

      public static SafeHouse getSafehouseOverlapping(int int3, int int1, int int2, int int0)
    • getSafehouseOverlapping

      public static SafeHouse getSafehouseOverlapping(int int3, int int1, int int2, int int0, SafeHouse safeHouse1)
    • 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 isoGridSquare, IsoPlayer isoPlayer)
    • isSafehouseAllowInteract

      public static boolean isSafehouseAllowInteract(IsoGridSquare isoGridSquare, IsoPlayer isoPlayer)
    • isSafehouseAllowLoot

      public static boolean isSafehouseAllowLoot(IsoGridSquare isoGridSquare, IsoPlayer isoPlayer)
    • isSafehouseAllowClaim

      public static boolean isSafehouseAllowClaim(SafeHouse safeHouse, IsoPlayer isoPlayer)
    • 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 int0, int int1)
    • 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 string)
    • getLastVisited

      public long getLastVisited()
    • setLastVisited

      public void setLastVisited(long _lastVisited)
    • getDatetimeCreated

      public long getDatetimeCreated()
    • getDatetimeCreatedStr

      public String getDatetimeCreatedStr()
    • setDatetimeCreated

      public void setDatetimeCreated(long long0)
    • getLocation

      public String getLocation()
    • setLocation

      public void setLocation(String string0)
    • 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 int0)
    • 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 int0)
    • getSafeHouse

      public static SafeHouse getSafeHouse(int int0)
    • isInSameSafehouse

      public static boolean isInSameSafehouse(String string1, String string0)
    • intersects

      public static boolean intersects(int int1, int int4, int int2, int int5)
    • haveInvite

      public boolean haveInvite(String string)
    • removeInvite

      public void removeInvite(String string)
    • addInvite

      public void addInvite(String string)
    • hitPoint

      public static void hitPoint(int int0)