Class IsoBarricade
java.lang.Object
zombie.entity.GameEntity
zombie.iso.IsoObject
zombie.iso.objects.IsoBarricade
-
Nested Class Summary
Nested classes/interfaces inherited from class zombie.iso.IsoObject
IsoObject.IsoObjectFactory, IsoObject.OutlineShader, IsoObject.VisionResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
Fields inherited from class zombie.iso.IsoObject
alpha, AttachedAnimSprite, bAlphaForced, bmod, bNeverDoneAlpha, bSatChair, container, Damage, dir, doNotSync, emitter, fireColor, gmod, keyId, lastRendered, lastRenderedRendered, LowLightingQualityHack, MAX_WALL_SPLATS, name, NoPicking, offsetX, offsetY, OutlineOnMouseover, overlaySprite, overlaySpriteColor, partialThumpDmg, ppfBlink, ppfHighlighted, ppfHighlightRenderOnce, renderDepthAdjust, renderSquareOverride, renderSquareOverride2, rerouteCollide, rerouteMask, rmod, sheetRope, sheetRopeHealth, sprite, spriteName, square, sx, sy, table, tintb, tintg, tintr, wallBloodSplats
Fields inherited from class zombie.entity.GameEntity
DEFAULT_ENTITY_DISPLAY_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionIsoBarricade
(IsoCell cell) IsoBarricade
(IsoGridSquare square, IsoDirections directions) -
Method Summary
Modifier and TypeMethodDescriptionstatic IsoBarricade
AddBarricadeToObject
(BarricadeAble to, boolean addOpposite) static IsoBarricade
void
addMetal
(IsoGameCharacter chr, InventoryItem metal) void
addMetalBar
(IsoGameCharacter chr, InventoryItem metalBar) void
addPlank
(IsoGameCharacter chr, InventoryItem plank) static void
static void
static void
barricadeCurrentCellWithPlanks
(int int0) boolean
boolean
canAttackBypassIsoBarricade
(IsoGameCharacter character, HandWeapon weapon) void
Damage
(float float0) static IsoBarricade
static IsoBarricade
GetBarricadeOnSquare
(IsoGridSquare square, IsoDirections dir) static IsoBarricade
getFacingPosition
(Vector2 pos) int
int
int
float
boolean
boolean
boolean
isMetal()
boolean
void
load
(ByteBuffer input, int WorldVersion, boolean IS_DEBUG_SAVE) void
loadChange
(String change, ByteBuffer bb) void
render
(float x, float y, float z, ColorInfo col, boolean bDoAttached, boolean bWallLightingPass, Shader shader) void
save
(ByteBuffer output, boolean IS_DEBUG_SAVE) void
saveChange
(String string, se.krka.kahlua.vm.KahluaTable var2, ByteBuffer byteBuffer) void
setHealth
(int int0) void
syncIsoObject
(boolean boolean0, byte var2, UdpConnection udpConnection1, ByteBuffer byteBuffer) void
syncIsoObjectReceive
(ByteBuffer byteBuffer) void
syncIsoObjectSend
(ByteBufferWriter byteBufferWriter) boolean
TestCollide
(IsoMovingObject obj, IsoGridSquare from, IsoGridSquare to) TestVision
(IsoGridSquare from, IsoGridSquare to) void
Thump
(IsoMovingObject thumper) void
WeaponHit
(IsoGameCharacter owner, HandWeapon weapon) Methods inherited from class zombie.iso.IsoObject
addAttachedAnimSprite, addAttachedAnimSpriteByName, addAttachedAnimSpriteInstance, addChild, addFluid, addItemToObjectSurface, addItemToObjectSurface, addSecondaryContainer, addSheetRope, addToWorld, afterRotated, AttachAnim, AttachExistingAnim, AttachExistingAnim, AttackObject, canAddSheetRope, canTransferFluidFrom, canTransferFluidTo, checkAmbientSound, checkHaveElectricity, checkLightSourceActive, cleanWallBlood, clearAttachedAnimSprite, clearOnOverlay, Collision, countAddSheetRope, createContainersFromSpriteProperties, createFluidContainersFromSpriteProperties, customHashCode, debugPrintout, destroyFence, DirtySlice, doFindExternalWaterSource, DoSpecialTooltip, DoTooltip, dumpContentsInSquare, emptyFluid, factoryClassFromFileInput, factoryFromFileInput, factoryFromFileInput, factoryFromFileInput_OLD, factoryGetClassID, FindExternalWaterSource, FindExternalWaterSource, FindExternalWaterSource, FindWaterSourceOnSquare, flagForHotSave, getAlpha, getAlpha, getAttachedAnimSprite, getAttachedAnimSpriteCount, getCell, getChildSprites, getChunk, getContainer, getContainerByEitherType, getContainerByIndex, getContainerByType, getContainerCount, getContainerIndex, getCurrentFrameTex, getCustomColor, getDamage, getDir, getEntityNetID, getFacing, getFacingPositionAlt, getFactoryVehicle, getFasciaAttachedSquare, getFluidAmount, getFluidCapacity, getFluidUiName, getForwardIsoDirection, getGameEntityType, getHighlightColor, getHighlightColor, getIsSurfaceNormalOffset, getItemContainer, getKeyId, getLastRendered, getLastRenderedRendered, getLightSource, getMaskClickedY, getMasterObject, getModData, getMovingObjectIndex, getName, getNew, getNew, getObjectIndex, getObjectRenderEffects, getObjectRenderEffectsToApply, getOffsetX, getOffsetY, getOnOverlay, getOutlineHighlightCol, getOutlineThickness, getOverlaySprite, getOverlaySpriteColor, getPipedFuelAmount, getPosition, getPosition, getProperties, getRenderEffectMaster, getRenderEffectObjectByIndex, getRenderEffectObjectCount, getRenderInfo, getRenderSquare, getRenderYOffset, getRerouteCollide, getRerouteMask, getRerouteMaskObject, getScriptName, getSpecialObjectIndex, getSprite, getSpriteGrid, getSpriteGridObjects, getSpriteGridObjects, getSpriteGridObjectsExcludingSelf, getSpriteGridObjectsIncludingSelf, getSpriteModel, getSpriteName, getSquare, getStaticMovingObjectIndex, getSurfaceNormalOffset, getSurfaceOffset, getSurfaceOffsetNoTable, getTable, getTargetAlpha, getTargetAlpha, getTextureName, getTile, getTileName, getType, getUsesExternalWaterSource, GetVehicleSlowFactor, getWindRenderEffects, getWorldObjectIndex, getX, getY, getZ, hasAnimatedAttachments, hasAttachedAnimSprites, hasExternalWaterSource, hasFluid, hasGridPower, hasModData, hasOverlaySprite, hasSpriteGrid, HasTooltip, hasWater, haveSheetRope, haveSpecialTooltip, Hit, HitByVehicle, invalidateRenderChunkLevel, invalidateVispolyChunkLevel, isAlphaAndTargetZero, isAlphaAndTargetZero, isAlphaZero, isAlphaZero, isAnimating, isBlink, isBlink, isBush, isCanPath, isCharacter, isConnectedSpriteGridObject, isEntityValid, isExistInTheWorld, isFascia, isFloor, isFluidInputLocked, isGenericCraftingSurface, isGrave, isHighlighted, isHighlighted, isHighlightRenderOnce, isHighlightRenderOnce, isHoppable, isItemAllowedInContainer, isMaskClicked, isMaskClicked, isMovedThumpable, isNoPicking, isNorthHoppable, isOnScreen, isOutlineHighlight, isOutlineHighlight, isOutlineHlAttached, isOutlineHlAttached, isOutlineHlBlink, isOutlineHlBlink, isOutlineOnMouseover, isRemoveItemAllowedFromContainer, isSatChair, isSpriteInvisible, isStairsNorth, isStairsObject, isStairsWest, isTableSurface, isTableTopObject, isTaintedWater, isTallHoppable, isTargetAlphaZero, isTent, isWall, isWallN, isWallW, isZombie, load, loadFromRemoteBuffer, loadFromRemoteBuffer, loadState, moveFluidToTemporaryContainer, onAnimationFinished, onMouseLeftClick, onMouseRightClick, onMouseRightReleased, removeAllContainers, RemoveAttachedAnim, RemoveAttachedAnims, removeFromSquare, removeFromWorld, removeFromWorldToMeta, removeRenderEffect, removeSheetRope, renderAnimatedAttachments, renderAttachedAndOverlaySprites, renderFloorTile, renderFxMask, renderlast, renderObjectPicker, renderWallTile, renderWallTileDepth, renderWallTileOnly, replaceItem, reset, reuseGridSquare, save, saveState, sendObjectChange, sendObjectChange, sendObjectChange, Serialize, setAlpha, setAlpha, setAlphaAndTarget, setAlphaAndTarget, setAlphaToTarget, setAnimating, setAttachedAnimSprite, setBlink, setBlink, setChildSprites, setContainer, setCustomColor, setCustomColor, setDamage, setDir, setExplored, setForwardIsoDirection, setForwardIsoDirection, setHighlightColor, setHighlightColor, setHighlightColor, setHighlightColor, setHighlighted, setHighlighted, setHighlighted, setHighlighted, setHighlightRenderOnce, setHighlightRenderOnce, setKeyId, setLastRendered, setLastRenderedRendered, setLightSource, setModData, setMovedThumpable, setName, SetName, setNoPicking, setOffsetX, setOffsetY, setOnOverlay, setOutlineHighlight, setOutlineHighlight, setOutlineHighlightCol, setOutlineHighlightCol, setOutlineHighlightCol, setOutlineHighlightCol, setOutlineHlAttached, setOutlineHlAttached, setOutlineHlBlink, setOutlineHlBlink, setOutlineOnMouseover, setOutlineThickness, setOverlaySprite, setOverlaySprite, setOverlaySprite, setOverlaySprite, setOverlaySpriteColor, setPipedFuelAmount, setRenderEffect, setRenderEffect, setRenderYOffset, setRerouteCollide, setRerouteMask, setSatChair, setSpecialTooltip, setSprite, setSprite, setSpriteFromName, setSpriteModelName, setSquare, setTable, setTargetAlpha, setTargetAlpha, setTile, setType, setUsesExternalWaterSource, shouldShowOnOverlay, softReset, sync, syncFluidContainerReceive, syncFluidContainerSend, TestPathfindCollide, toString, transferFluidFrom, transferFluidTo, transmitCompleteItemToClients, transmitCompleteItemToServer, transmitCustomColorToClients, transmitModData, transmitUpdatedSprite, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToServer, UnCollision, unsetOutlineHighlight, update, useFluid, useItemOn, writeToRemoteBuffer
Methods inherited from class zombie.entity.GameEntity
attrib, componentSize, containsComponent, getAttributes, getComponent, getComponentForIndex, getComponentFromID, getDefaultEntityDisplayName, getDurabilityComponent, getEntityDisplayName, getEntityFullTypeDebug, getExceptionCompatibleString, getFluidContainer, getSpriteConfig, getUsingPlayer, hasComponent, hasComponents, hasRenderers, isAddedToEngine, isMeta, isRemovingFromEngine, isScheduledForBucketUpdate, isScheduledForEngineRemoval, isUsingPlayer, isValidEngineEntity, loadEntity, onEquip, onEquip, onFluidContainerUpdate, onUnEquip, removeFromWorld, renderlastComponents, requiresEntitySave, saveEntity, sendSyncEntity, setUsingPlayer
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface zombie.iso.ILuaIsoObject
setDir
-
Field Details
-
MAX_PLANKS
public static final int MAX_PLANKS- See Also:
-
PLANK_HEALTH
public static final int PLANK_HEALTH- See Also:
-
METAL_BAR_HEALTH
public static final int METAL_BAR_HEALTH- See Also:
-
METAL_HEALTH
public static final int METAL_HEALTH- See Also:
-
METAL_HEALTH_DAMAGED
public static final int METAL_HEALTH_DAMAGED- See Also:
-
-
Constructor Details
-
IsoBarricade
-
IsoBarricade
-
-
Method Details
-
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
- Overrides:
isDestroyed
in classIsoObject
-
TestCollide
- Overrides:
TestCollide
in classIsoObject
-
TestVision
- Overrides:
TestVision
in classIsoObject
-
Thump
-
getThumpableFor
- Specified by:
getThumpableFor
in interfaceThumpable
- Overrides:
getThumpableFor
in classIsoObject
-
getFacingPosition
- Overrides:
getFacingPosition
in classIsoObject
-
WeaponHit
-
Damage
-
syncIsoObjectSend
- Overrides:
syncIsoObjectSend
in classIsoObject
-
syncIsoObjectReceive
- Overrides:
syncIsoObjectReceive
in classIsoObject
-
syncIsoObject
public void syncIsoObject(boolean boolean0, byte var2, UdpConnection udpConnection1, ByteBuffer byteBuffer) - Overrides:
syncIsoObject
in classIsoObject
-
getThumpCondition
public float getThumpCondition()- Specified by:
getThumpCondition
in interfaceThumpable
- Overrides:
getThumpCondition
in classIsoObject
-
setHealth
public void setHealth(int int0) -
getHealth
public int getHealth()- Specified by:
getHealth
in interfaceIHasHealth
-
getMaxHealth
public int getMaxHealth()- Specified by:
getMaxHealth
in interfaceIHasHealth
-
load
- Overrides:
load
in classIsoObject
- Throws:
IOException
-
save
- Overrides:
save
in classIsoObject
- Throws:
IOException
-
saveChange
- Overrides:
saveChange
in classIsoObject
-
loadChange
- Overrides:
loadChange
in classIsoObject
-
getBarricadedObject
-
render
-
GetBarricadeOnSquare
-
GetBarricadeForCharacter
-
GetBarricadeOppositeCharacter
-
AddBarricadeToObject
-
AddBarricadeToObject
-
canAttackBypassIsoBarricade
-
barricadeCurrentCellWithMetalPlate
public static void barricadeCurrentCellWithMetalPlate() -
barricadeCurrentCellWithMetalBars
public static void barricadeCurrentCellWithMetalBars() -
barricadeCurrentCellWithPlanks
public static void barricadeCurrentCellWithPlanks(int int0)
-