Class IsoWindow

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

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

    • Health

      public int Health
    • MaxHealth

      public int MaxHealth
    • type

      public IsoWindow.WindowType type
    • north

      public boolean north
    • Locked

      public boolean Locked
    • PermaLocked

      public boolean PermaLocked
    • open

      public boolean open
    • OldNumPlanks

      public int OldNumPlanks
  • Constructor Details

  • Method Details

    • HasCurtains

      public IsoCurtain HasCurtains()
    • getIndoorSquare

      public IsoGridSquare getIndoorSquare()
    • getAddSheetSquare

      public IsoGridSquare getAddSheetSquare​(IsoGameCharacter gameCharacter)
    • AttackObject

      public void AttackObject​(IsoGameCharacter gameCharacter)
      Overrides:
      AttackObject in class IsoObject
    • getInsideSquare

      public IsoGridSquare getInsideSquare()
    • getOppositeSquare

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

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

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

      public void smashWindow​(boolean boolean1, boolean boolean2)
    • smashWindow

      public void smashWindow​(boolean boolean1)
    • smashWindow

      public void smashWindow()
    • isDestroyed

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

      public boolean IsOpen()
    • onMouseLeftClick

      public boolean onMouseLeftClick​(int int1, int int2)
      Overrides:
      onMouseLeftClick 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
    • 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
    • openCloseCurtain

      public void openCloseCurtain​(IsoGameCharacter gameCharacter)
    • removeSheet

      public void removeSheet​(IsoGameCharacter gameCharacter)
    • addSheet

      public void addSheet​(IsoGameCharacter gameCharacter)
    • ToggleWindow

      public void ToggleWindow​(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
    • isTopOfSheetRopeHere

      public static boolean isTopOfSheetRopeHere​(IsoGridSquare square)
    • isTopOfSheetRopeHere

      public static boolean isTopOfSheetRopeHere​(IsoGridSquare square, boolean boolean1)
    • haveSheetRope

      public boolean haveSheetRope()
    • isSheetRopeHere

      public static boolean isSheetRopeHere​(IsoGridSquare square)
    • canClimbHere

      public static boolean canClimbHere​(IsoGridSquare square)
    • countAddSheetRope

      public static int countAddSheetRope​(IsoGridSquare square, boolean boolean1)
    • countAddSheetRope

      public int countAddSheetRope()
    • canAddSheetRope

      public static boolean canAddSheetRope​(IsoGridSquare square, boolean boolean1)
    • canAddSheetRope

      public boolean canAddSheetRope()
    • addSheetRope

      public boolean addSheetRope​(IsoPlayer player, java.lang.String string)
    • addSheetRope

      public static boolean addSheetRope​(IsoPlayer player, IsoGridSquare square, boolean boolean1, java.lang.String string)
    • removeSheetRope

      public boolean removeSheetRope​(IsoPlayer player)
    • removeSheetRope

      public static boolean removeSheetRope​(IsoPlayer player, IsoGridSquare square, boolean boolean1)
    • Damage

      public void Damage​(float float1)
      Overrides:
      Damage in class IsoObject
    • Damage

      public void Damage​(float float1, boolean boolean1)
    • isLocked

      public boolean isLocked()
    • isSmashed

      public boolean isSmashed()
    • 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
    • getNorth

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

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

      public void setIsLocked​(boolean boolean1)
    • getOpenSprite

      public IsoSprite getOpenSprite()
    • setOpenSprite

      public void setOpenSprite​(IsoSprite sprite)
    • setSmashed

      public void setSmashed​(boolean boolean1)
    • getSmashedSprite

      public IsoSprite getSmashedSprite()
    • setSmashedSprite

      public void setSmashedSprite​(IsoSprite sprite)
    • setPermaLocked

      public void setPermaLocked​(java.lang.Boolean Boolean1)
    • isPermaLocked

      public boolean isPermaLocked()
    • canClimbThrough

      public boolean canClimbThrough​(IsoGameCharacter gameCharacter)
    • isGlassRemoved

      public boolean isGlassRemoved()
    • setGlassRemoved

      public void setGlassRemoved​(boolean boolean1)
    • removeBrokenGlass

      public void removeBrokenGlass()
    • addRandomBarricades

      public void addRandomBarricades()