Package zombie.iso.objects
Class IsoBarricade
java.lang.Object
zombie.iso.IsoObject
zombie.iso.objects.IsoBarricade
- All Implemented Interfaces:
java.io.Serializable
,Thumpable
public class IsoBarricade extends IsoObject implements Thumpable
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class zombie.iso.IsoObject
IsoObject.VisionResult
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_PLANKS
static int
METAL_BAR_HEALTH
static int
METAL_HEALTH
static int
METAL_HEALTH_DAMAGED
static int
PLANK_HEALTH
Fields inherited from class zombie.iso.IsoObject
alpha, alphaStep, AttachedAnimSprite, AttachedAnimSpriteActual, bmod, bNeverDoneAlpha, container, Damage, dir, doNotSync, emitter, externalWaterSource, gmod, highlightFlags, keyId, lastRendered, lastRenderedRendered, LowLightingQualityHack, MAX_WALL_SPLATS, name, NoPicking, OBF_Blink, OBF_Highlighted, OBF_HighlightRenderOnce, objectRenderEffects, offsetX, offsetY, OutlineOnMouseover, overlaySprite, overlaySpriteColor, rerouteCollide, rerouteMask, rmod, sheetRope, sheetRopeHealth, sprite, spriteName, square, stCol, sx, sy, table, targetAlpha, tintb, tintg, tintr, usesExternalWaterSource, wallBloodSplats, windRenderEffects
-
Constructor Summary
Constructors Constructor Description IsoBarricade(IsoCell cell)
IsoBarricade(IsoCell cell, IsoGridSquare square, IsoDirections directions)
-
Method Summary
Modifier and Type Method Description static IsoBarricade
AddBarricadeToObject(BarricadeAble barricadeAble, boolean boolean1)
static IsoBarricade
AddBarricadeToObject(BarricadeAble barricadeAble, IsoGameCharacter gameCharacter)
void
addMetal(IsoGameCharacter gameCharacter, InventoryItem inventoryItem)
void
addMetalBar(IsoGameCharacter gameCharacter, InventoryItem inventoryItem)
void
addPlank(IsoGameCharacter gameCharacter, InventoryItem inventoryItem)
boolean
canAddPlank()
void
Damage(int int1)
BarricadeAble
getBarricadedObject()
static IsoBarricade
GetBarricadeForCharacter(BarricadeAble barricadeAble, IsoGameCharacter gameCharacter)
static IsoBarricade
GetBarricadeOnSquare(IsoGridSquare square, IsoDirections directions)
static IsoBarricade
GetBarricadeOppositeCharacter(BarricadeAble barricadeAble, IsoGameCharacter gameCharacter)
Vector2
getFacingPosition(Vector2 vector2)
int
getNumPlanks()
java.lang.String
getObjectName()
boolean
isBlockVision()
boolean
isDestroyed()
boolean
isMetal()
boolean
isMetalBar()
void
load(java.nio.ByteBuffer byteBuffer, int int1)
void
loadChange(java.lang.String string, java.nio.ByteBuffer byteBuffer)
InventoryItem
removeMetal(IsoGameCharacter gameCharacter)
InventoryItem
removeMetalBar(IsoGameCharacter gameCharacter)
InventoryItem
removePlank(IsoGameCharacter gameCharacter)
void
render(float float1, float float2, float float3, ColorInfo colorInfo, boolean boolean1)
void
save(java.nio.ByteBuffer byteBuffer)
void
saveChange(java.lang.String string, KahluaTable kahluaTable, java.nio.ByteBuffer byteBuffer)
boolean
TestCollide(IsoMovingObject movingObject, IsoGridSquare square, IsoGridSquare square2)
IsoObject.VisionResult
TestVision(IsoGridSquare square, IsoGridSquare square2)
void
Thump(IsoMovingObject movingObject)
void
WeaponHit(IsoGameCharacter gameCharacter, HandWeapon handWeapon)
Methods inherited from class zombie.iso.IsoObject
addChild, addSecondaryContainer, addToWorld, AttachAnim, AttachExistingAnim, AttachExistingAnim, AttackObject, checkHaveElectricity, checkMoveWithWind, checkMoveWithWind, cleanWallBlood, Collision, createChecksum, createContainersFromSpriteProperties, customHashCode, Damage, debugPrintout, DirtySlice, DoChecksumCheck, DoChecksumCheck, doFindExternalWaterSource, DoSpecialTooltip, DoTooltip, factoryClassFromFileInput, factoryFromFileInput, factoryFromFileInput, FindExternalWaterSource, getAlpha, getAlphaStep, getAttachedAnimSprite, getCell, getChildSprites, getContainer, getContainerByEitherType, getContainerByIndex, getContainerByType, getContainerCount, getContainerIndex, getCustomColor, getDamage, getDir, getFacingPositionAlt, getHighlightColor, getIsSurfaceNormalOffset, getItemContainer, getKeyId, getLastRendered, getLastRenderedRendered, getMaskClickedY, getMD5Checksum, getModData, getMovingObjectIndex, getName, getNew, getNew, getObjectIndex, getObjectRenderEffects, getObjectRenderEffectsToApply, getOffsetX, getOffsetY, getOverlaySprite, getOverlaySpriteColor, getProperties, getRenderYOffset, getRerouteCollide, getRerouteMask, getRerouteMaskObject, getScriptName, getSpecialObjectIndex, getSprite, getSpriteName, getSquare, getStaticMovingObjectIndex, getSurfaceNormalOffset, getSurfaceOffset, getTable, getTargetAlpha, getTextureName, getTile, getType, getUsesExternalWaterSource, GetVehicleSlowFactor, getWaterAmount, getWindRenderEffects, getWorldObjectIndex, getX, getY, getZ, hasExternalWaterSource, hasModData, HasTooltip, hasWater, haveSpecialTooltip, Hit, isBlink, isCharacter, isHighlighted, isMaskClicked, isMaskClicked, isNoPicking, isOutlineOnMouseover, isStairsNorth, isStairsObject, isStairsWest, isTableSurface, isTableTopObject, isTaintedWater, isZombie, loadFromRemoteBuffer, loadFromRemoteBuffer, loadState, onMouseLeftClick, onMouseRightClick, onMouseRightReleased, removeAllContainers, RemoveAttachedAnim, RemoveAttachedAnims, removeFromSquare, removeFromWorld, removeRenderEffect, render, renderFxMask, renderlast, renderObjectPicker, replaceItem, reset, reuseGridSquare, revisionUp, saveState, sendObjectChange, sendObjectChange, sendObjectChange, Serialize, setAlpha, setAlphaStep, setAttachedAnimSprite, setBlink, setChildSprites, setContainer, setCustomColor, setCustomColor, setDamage, setDefaultCondition, setDir, setDir, setHighlightColor, setHighlightColor, setHighlighted, setHighlighted, setKeyId, setLastRendered, setLastRenderedRendered, setName, SetName, setNoPicking, setOffsetX, setOffsetY, setOutlineOnMouseover, setOverlaySprite, setOverlaySprite, setOverlaySprite, setOverlaySpriteColor, setRenderEffect, setRenderEffect, setRenderYOffset, setRerouteCollide, setRerouteMask, setSpecialTooltip, setSprite, setSprite, setSpriteFromName, setSquare, setTable, setTaintedWater, setTargetAlpha, setType, setUsesExternalWaterSource, setWaterAmount, softReset, syncIsoObject, syncIsoObjectSend, TestPathfindCollide, transmitCompleteItemToClients, transmitCompleteItemToServer, transmitCustomColor, transmitModData, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToServer, UnCollision, update, useItemOn, useWater, writeToRemoteBuffer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
MAX_PLANKS
public static final int MAX_PLANKS- See Also:
- Constant Field Values
-
PLANK_HEALTH
public static final int PLANK_HEALTH- See Also:
- Constant Field Values
-
METAL_HEALTH
public static final int METAL_HEALTH- See Also:
- Constant Field Values
-
METAL_HEALTH_DAMAGED
public static final int METAL_HEALTH_DAMAGED- See Also:
- Constant Field Values
-
METAL_BAR_HEALTH
public static final int METAL_BAR_HEALTH- See Also:
- Constant Field Values
-
-
Constructor Details
-
IsoBarricade
-
IsoBarricade
-
-
Method Details
-
getObjectName
public java.lang.String getObjectName()- Overrides:
getObjectName
in classIsoObject
-
addPlank
-
removePlank
-
getNumPlanks
public int getNumPlanks() -
canAddPlank
public boolean canAddPlank() -
addMetalBar
-
removeMetalBar
-
addMetal
-
isMetalBar
public boolean isMetalBar() -
removeMetal
-
isMetal
public boolean isMetal() -
isBlockVision
public boolean isBlockVision() -
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyed
in interfaceThumpable
-
TestCollide
public boolean TestCollide(IsoMovingObject movingObject, IsoGridSquare square, IsoGridSquare square2)- Overrides:
TestCollide
in classIsoObject
-
TestVision
- Overrides:
TestVision
in classIsoObject
-
Thump
-
getFacingPosition
- Overrides:
getFacingPosition
in classIsoObject
-
WeaponHit
-
Damage
public void Damage(int int1) -
load
public void load(java.nio.ByteBuffer byteBuffer, int int1) throws java.io.IOException -
save
public void save(java.nio.ByteBuffer byteBuffer) throws java.io.IOException -
saveChange
public void saveChange(java.lang.String string, KahluaTable kahluaTable, java.nio.ByteBuffer byteBuffer)- Overrides:
saveChange
in classIsoObject
-
loadChange
public void loadChange(java.lang.String string, java.nio.ByteBuffer byteBuffer)- Overrides:
loadChange
in classIsoObject
-
getBarricadedObject
-
render
public void render(float float1, float float2, float float3, ColorInfo colorInfo, boolean boolean1) -
GetBarricadeOnSquare
-
GetBarricadeForCharacter
public static IsoBarricade GetBarricadeForCharacter(BarricadeAble barricadeAble, IsoGameCharacter gameCharacter) -
GetBarricadeOppositeCharacter
public static IsoBarricade GetBarricadeOppositeCharacter(BarricadeAble barricadeAble, IsoGameCharacter gameCharacter) -
AddBarricadeToObject
-
AddBarricadeToObject
public static IsoBarricade AddBarricadeToObject(BarricadeAble barricadeAble, IsoGameCharacter gameCharacter)
-