zombie.iso.objects
Class IsoCrate

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

public class IsoCrate
extends IsoObject
implements Thumpable

Author:
LEMMY
See Also:
Serialized Form

Nested Class Summary
static class IsoCrate.DoorType
           
 
Nested classes/interfaces inherited from class zombie.iso.IsoObject
IsoObject.VisionResult
 
Field Summary
 boolean Barricaded
           
 java.lang.Integer BarricideMaxStrength
           
 java.lang.Integer BarricideStrength
           
 java.lang.Integer Health
           
 boolean Locked
           
 java.lang.Integer MaxHealth
           
 java.lang.Integer PushedMaxStrength
           
 java.lang.Integer PushedStrength
           
 IsoCrate.DoorType 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
IsoCrate(IsoCell cell)
           
IsoCrate(IsoCell cell, IsoGridSquare gridSquare, int gid)
           
 
Method Summary
 void Barricade(IsoGameCharacter chr)
           
 void DoTooltip(ObjectTooltip tooltipUI)
           
 java.lang.String getObjectName()
           
 boolean HasTooltip()
           
 boolean isDestroyed()
           
 boolean IsOpen()
           
 boolean IsStrengthenedByPushedItems()
           
 void load(java.nio.ByteBuffer b)
           
 boolean onMouseLeftClick(int x, int y)
           
 void save(java.nio.ByteBuffer b)
           
 boolean TestCollide(IsoMovingObject obj, IsoGridSquare from, IsoGridSquare to)
           
 IsoObject.VisionResult TestVision(IsoGridSquare from, IsoGridSquare to)
           
 void Thump(IsoMovingObject thumper)
           
 void ToggleDoor(IsoGameCharacter chr)
           
 void ToggleDoorSilent()
           
 void Unbarricade()
           
 void WeaponHit(IsoGameCharacter owner, HandWeapon weapon)
           
 
Methods inherited from class zombie.iso.IsoObject
addChild, AttachAnim, AttachExistingAnim, AttachExistingAnim, AttackObject, 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 boolean Barricaded

BarricideMaxStrength

public java.lang.Integer BarricideMaxStrength

BarricideStrength

public java.lang.Integer BarricideStrength

Health

public java.lang.Integer Health

Locked

public boolean Locked

MaxHealth

public java.lang.Integer MaxHealth

PushedMaxStrength

public java.lang.Integer PushedMaxStrength

PushedStrength

public java.lang.Integer PushedStrength

type

public IsoCrate.DoorType type
Constructor Detail

IsoCrate

public IsoCrate(IsoCell cell)

IsoCrate

public IsoCrate(IsoCell cell,
                IsoGridSquare gridSquare,
                int gid)
Method Detail

getObjectName

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

Barricade

public void Barricade(IsoGameCharacter chr)

save

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

load

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

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()

IsStrengthenedByPushedItems

public boolean IsStrengthenedByPushedItems()

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

WeaponHit

public void WeaponHit(IsoGameCharacter owner,
                      HandWeapon weapon)

ToggleDoor

public void ToggleDoor(IsoGameCharacter chr)

ToggleDoorSilent

public void ToggleDoorSilent()

Unbarricade

public void Unbarricade()