zombie.iso.objects
Class IsoWindow

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

public class IsoWindow
extends IsoObject
implements Thumpable

Author:
LEMMY
See Also:
Serialized Form

Nested Class Summary
static class IsoWindow.WindowType
           
 
Nested classes/interfaces inherited from class zombie.iso.IsoObject
IsoObject.VisionResult
 
Field Summary
 int Barricaded
           
 java.lang.Integer BarricideMaxStrength
           
 java.lang.Integer BarricideStrength
           
 java.lang.Integer Health
           
 boolean Locked
           
 java.lang.Integer MaxHealth
           
 boolean north
           
 boolean open
           
 boolean PermaLocked
           
 IsoWindow.WindowType type
           
 
Fields inherited from class zombie.iso.IsoObject
alpha, alphaStep, AttachedAnimSprite, AttachedAnimSpriteActual, container, Damage, dir, lastRendered, lastRenderedRendered, name, NoPicking, offsetX, offsetY, OutlineOnMouseover, rerouteCollide, rerouteMask, sprite, square, stCol, table, targetAlpha, tintb, tintg, tintr
 
Constructor Summary
IsoWindow(IsoCell cell)
           
IsoWindow(IsoCell cell, IsoGridSquare gridSquare, IsoSprite gid, boolean north)
           
 
Method Summary
 void addSheet(IsoGameCharacter chr)
           
 boolean addSheetRope(IsoPlayer player)
           
 void AttackObject(IsoGameCharacter owner)
           
 void Barricade(InventoryItem plank)
           
 void DoTooltip(ObjectTooltip tooltipUI)
           
 int getBarricade()
           
 IsoGridSquare getIndoorSquare()
           
 IsoGridSquare getInsideSquare()
           
 boolean getNorth()
           
 java.lang.String getObjectName()
           
 IsoCurtain HasCurtains()
           
 boolean HasTooltip()
           
 boolean haveSheetRope()
           
 boolean isDestroyed()
           
 boolean isLocked()
           
 boolean IsOpen()
           
 boolean isSmashed()
           
 void load(java.nio.ByteBuffer input)
           
 boolean onMouseLeftClick(int x, int y)
           
 void openCloseCurtain(IsoGameCharacter chr)
           
 void removeSheet(IsoGameCharacter chr)
           
 void save(java.nio.ByteBuffer output)
           
 void setIsLocked(boolean lock)
           
 boolean TestCollide(IsoMovingObject obj, IsoGridSquare from, IsoGridSquare to)
           
 IsoObject.VisionResult TestVision(IsoGridSquare from, IsoGridSquare to)
           
 void Thump(IsoMovingObject thumper)
           
 void ToggleWindow(IsoGameCharacter chr)
           
 void Unbarricade(IsoGameCharacter chr)
           
 void WeaponHit(IsoGameCharacter owner, HandWeapon weapon)
           
 
Methods inherited from class zombie.iso.IsoObject
addChild, AttachAnim, AttachExistingAnim, AttachExistingAnim, createChecksum, DirtySlice, DoChecksumCheck, DoChecksumCheck, factoryClassFromFileInput, factoryFromFileInput, factoryFromFileInput, getAlpha, getAlphaStep, getAttachedAnimSprite, getCell, getChildSprites, getContainer, getDamage, getDir, getItemContainer, getLastRendered, getLastRenderedRendered, getMaskClickedY, getMD5Checksum, getModData, getName, getOffsetX, getOffsetY, getProperties, getRerouteCollide, getRerouteMask, getRerouteMaskObject, getScriptName, getSprite, getSquare, getTable, getTargetAlpha, getTextureName, getType, getX, getY, getZ, hasWater, isCharacter, isMaskClicked, isMaskClicked, isNoPicking, isOutlineOnMouseover, isZombie, onMouseRightClick, onMouseRightReleased, RemoveAttachedAnims, render, renderlast, renderObjectPicker, replaceItem, reset, Serialize, setAlpha, setAlphaStep, setAttachedAnimSprite, setChildSprites, setContainer, setDamage, setDefaultCondition, setDir, setDir, setLastRendered, setLastRenderedRendered, setName, SetName, setNoPicking, setOffsetX, setOffsetY, setOutlineOnMouseover, setRerouteCollide, setRerouteMask, setSprite, setSquare, setTable, setTargetAlpha, setType, TestPathfindCollide, update, useItemOn, useWater
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Barricaded

public int Barricaded

BarricideMaxStrength

public java.lang.Integer BarricideMaxStrength

BarricideStrength

public java.lang.Integer BarricideStrength

Health

public java.lang.Integer Health

MaxHealth

public java.lang.Integer MaxHealth

type

public IsoWindow.WindowType type

north

public boolean north

Locked

public boolean Locked

PermaLocked

public boolean PermaLocked

open

public boolean open
Constructor Detail

IsoWindow

public IsoWindow(IsoCell cell)

IsoWindow

public IsoWindow(IsoCell cell,
                 IsoGridSquare gridSquare,
                 IsoSprite gid,
                 boolean north)
Method Detail

HasCurtains

public IsoCurtain HasCurtains()

getIndoorSquare

public IsoGridSquare getIndoorSquare()

AttackObject

public void AttackObject(IsoGameCharacter owner)
Overrides:
AttackObject in class IsoObject

getInsideSquare

public IsoGridSquare getInsideSquare()

getObjectName

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

WeaponHit

public void WeaponHit(IsoGameCharacter owner,
                      HandWeapon weapon)

Barricade

public void Barricade(InventoryItem plank)

DoTooltip

public void DoTooltip(ObjectTooltip tooltipUI)
Overrides:
DoTooltip in class IsoObject

HasTooltip

public boolean HasTooltip()
Overrides:
HasTooltip in class IsoObject

isDestroyed

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

IsOpen

public boolean IsOpen()

onMouseLeftClick

public boolean onMouseLeftClick(int x,
                                int y)
Overrides:
onMouseLeftClick in class IsoObject

TestCollide

public boolean TestCollide(IsoMovingObject obj,
                           IsoGridSquare from,
                           IsoGridSquare to)
Overrides:
TestCollide in class IsoObject

TestVision

public IsoObject.VisionResult TestVision(IsoGridSquare from,
                                         IsoGridSquare to)
Overrides:
TestVision in class IsoObject

Thump

public void Thump(IsoMovingObject thumper)
Specified by:
Thump in interface Thumpable

load

public void load(java.nio.ByteBuffer input)
          throws java.io.IOException
Overrides:
load in class IsoObject
Throws:
java.io.IOException

save

public void save(java.nio.ByteBuffer output)
          throws java.io.IOException
Overrides:
save in class IsoObject
Throws:
java.io.IOException

openCloseCurtain

public void openCloseCurtain(IsoGameCharacter chr)

removeSheet

public void removeSheet(IsoGameCharacter chr)

addSheet

public void addSheet(IsoGameCharacter chr)

ToggleWindow

public void ToggleWindow(IsoGameCharacter chr)

Unbarricade

public void Unbarricade(IsoGameCharacter chr)

haveSheetRope

public boolean haveSheetRope()

addSheetRope

public boolean addSheetRope(IsoPlayer player)

isLocked

public boolean isLocked()

isSmashed

public boolean isSmashed()

getBarricade

public int getBarricade()

getNorth

public boolean getNorth()

setIsLocked

public void setIsLocked(boolean lock)