Class IsoDoor

java.lang.Object
zombie.iso.IsoObject
zombie.iso.objects.IsoDoor
All Implemented Interfaces:
java.io.Serializable, BarricadeAble, Thumpable

public class IsoDoor
extends IsoObject
implements BarricadeAble, Thumpable
See Also:
Serialized Form
  • Field Details

    • Health

      public int Health
    • Locked

      public boolean Locked
    • MaxHealth

      public int MaxHealth
    • PushedMaxStrength

      public int PushedMaxStrength
    • PushedStrength

      public int PushedStrength
    • type

      public IsoDoor.DoorType type
    • north

      public boolean north
    • open

      public boolean open
    • OldNumPlanks

      public int OldNumPlanks
    • tempo

      public static Vector2 tempo
  • Constructor Details

  • Method Details

    • getObjectName

      public java.lang.String getObjectName()
      Overrides:
      getObjectName in class IsoObject
    • render

      public void render​(float float1, float float2, float float3, ColorInfo colorInfo, boolean boolean1, boolean boolean2)
      Overrides:
      render in class IsoObject
    • load

      public void load​(java.nio.ByteBuffer byteBuffer, int int1) throws java.io.IOException
      Overrides:
      load in class IsoObject
      Throws:
      java.io.IOException
    • save

      public void save​(java.nio.ByteBuffer byteBuffer) throws java.io.IOException
      Overrides:
      save in class IsoObject
      Throws:
      java.io.IOException
    • saveState

      public void saveState​(java.nio.ByteBuffer byteBuffer)
      Overrides:
      saveState in class IsoObject
    • loadState

      public void loadState​(java.nio.ByteBuffer byteBuffer)
      Overrides:
      loadState in class IsoObject
    • isDestroyed

      public boolean isDestroyed()
      Specified by:
      isDestroyed in interface Thumpable
    • IsOpen

      public boolean IsOpen()
    • IsStrengthenedByPushedItems

      public boolean IsStrengthenedByPushedItems()
    • onMouseLeftClick

      public boolean onMouseLeftClick​(int int1, int int2)
      Overrides:
      onMouseLeftClick in class IsoObject
    • TestPathfindCollide

      public boolean TestPathfindCollide​(IsoMovingObject movingObject, IsoGridSquare square, IsoGridSquare square2)
      Overrides:
      TestPathfindCollide in class IsoObject
    • TestCollide

      public boolean TestCollide​(IsoMovingObject movingObject, IsoGridSquare square, IsoGridSquare square2)
      Overrides:
      TestCollide in class IsoObject
    • TestVision

      public IsoObject.VisionResult TestVision​(IsoGridSquare square, IsoGridSquare square2)
      Overrides:
      TestVision in class IsoObject
    • Thump

      public void Thump​(IsoMovingObject movingObject)
      Specified by:
      Thump in interface Thumpable
    • WeaponHit

      public void WeaponHit​(IsoGameCharacter gameCharacter, HandWeapon handWeapon)
    • destroy

      public void destroy()
    • getOtherSideOfDoor

      public IsoGridSquare getOtherSideOfDoor​(IsoGameCharacter gameCharacter)
    • isExteriorDoor

      public boolean isExteriorDoor​(IsoGameCharacter gameCharacter)
    • ToggleDoorActual

      public void ToggleDoorActual​(IsoGameCharacter gameCharacter)
    • syncIsoObjectSend

      public void syncIsoObjectSend​(ByteBufferWriter byteBufferWriter)
      Overrides:
      syncIsoObjectSend in class IsoObject
    • syncIsoObject

      public void syncIsoObject​(boolean boolean1, byte byte1, UdpConnection udpConnection, java.nio.ByteBuffer byteBuffer)
      Overrides:
      syncIsoObject in class IsoObject
    • ToggleDoor

      public void ToggleDoor​(IsoGameCharacter gameCharacter)
    • ToggleDoorSilent

      public void ToggleDoorSilent()
    • getBarricadeOnSameSquare

      public IsoBarricade getBarricadeOnSameSquare()
      Specified by:
      getBarricadeOnSameSquare in interface BarricadeAble
    • getBarricadeOnOppositeSquare

      public IsoBarricade getBarricadeOnOppositeSquare()
      Specified by:
      getBarricadeOnOppositeSquare in interface BarricadeAble
    • isBarricaded

      public boolean isBarricaded()
      Specified by:
      isBarricaded in interface BarricadeAble
    • getBarricadeForCharacter

      public IsoBarricade getBarricadeForCharacter​(IsoGameCharacter gameCharacter)
      Specified by:
      getBarricadeForCharacter in interface BarricadeAble
    • getBarricadeOppositeCharacter

      public IsoBarricade getBarricadeOppositeCharacter​(IsoGameCharacter gameCharacter)
      Specified by:
      getBarricadeOppositeCharacter in interface BarricadeAble
    • isLocked

      public boolean isLocked()
    • getNorth

      public boolean getNorth()
      Specified by:
      getNorth in interface BarricadeAble
    • getFacingPosition

      public Vector2 getFacingPosition​(Vector2 vector2)
      Overrides:
      getFacingPosition in class IsoObject
    • getFacingPositionAlt

      public Vector2 getFacingPositionAlt​(Vector2 vector2)
      Overrides:
      getFacingPositionAlt in class IsoObject
    • setIsLocked

      public void setIsLocked​(boolean boolean1)
    • getOpenSprite

      public IsoSprite getOpenSprite()
    • setOpenSprite

      public void setOpenSprite​(IsoSprite sprite)
    • getKeyId

      public int getKeyId()
      Overrides:
      getKeyId in class IsoObject
    • syncDoorKey

      public void syncDoorKey()
    • setKeyId

      public void setKeyId​(int int1)
      Overrides:
      setKeyId in class IsoObject
    • isLockedByKey

      public boolean isLockedByKey()
    • setLockedByKey

      public void setLockedByKey​(boolean boolean1)
    • haveKey

      public boolean haveKey()
    • setHaveKey

      public void setHaveKey​(boolean boolean1)
    • getOppositeSquare

      public IsoGridSquare getOppositeSquare()
      Specified by:
      getOppositeSquare in interface BarricadeAble
    • checkKeyId

      public int checkKeyId()
    • setHealth

      public void setHealth​(int int1)
    • HasCurtains

      public IsoDoor HasCurtains()
    • isCurtainOpen

      public boolean isCurtainOpen()
    • setCurtainOpen

      public void setCurtainOpen​(boolean boolean1)
    • transmitSetCurtainOpen

      public void transmitSetCurtainOpen​(boolean boolean1)
    • toggleCurtain

      public void toggleCurtain()
    • addSheet

      public void addSheet​(IsoGameCharacter gameCharacter)
    • addSheet

      public void addSheet​(boolean boolean1, IsoGameCharacter gameCharacter)
    • removeSheet

      public void removeSheet​(IsoGameCharacter gameCharacter)
    • getAddSheetSquare

      public IsoGridSquare getAddSheetSquare​(IsoGameCharacter gameCharacter)
    • getSheetSquare

      public IsoGridSquare getSheetSquare()
    • getHealth

      public int getHealth()
    • getMaxHealth

      public int getMaxHealth()
    • isFacingSheet

      public boolean isFacingSheet​(IsoGameCharacter gameCharacter)
    • saveChange

      public void saveChange​(java.lang.String string, KahluaTable kahluaTable, java.nio.ByteBuffer byteBuffer)
      Overrides:
      saveChange in class IsoObject
    • loadChange

      public void loadChange​(java.lang.String string, java.nio.ByteBuffer byteBuffer)
      Overrides:
      loadChange in class IsoObject
    • addRandomBarricades

      public void addRandomBarricades()
    • isObstructed

      public boolean isObstructed()
    • isDoorObstructed

      public static boolean isDoorObstructed​(IsoObject object)
    • toggleDoubleDoor

      public static void toggleDoubleDoor​(IsoObject object, boolean boolean1)
    • getDoubleDoorIndex

      public static int getDoubleDoorIndex​(IsoObject object)
    • getDoubleDoorObject

      public static IsoObject getDoubleDoorObject​(IsoObject object, int int1)
    • isDoubleDoorObstructed

      public static boolean isDoubleDoorObstructed​(IsoObject object)