Package zombie.iso
Class IsoMovingObject
java.lang.Object
zombie.iso.IsoObject
zombie.iso.IsoMovingObject
- All Implemented Interfaces:
Serializable
,Mover
,Thumpable
- Direct Known Subclasses:
BaseVehicle
,IsoDeadBody
,IsoGameCharacter
,IsoPhysicsObject
,IsoPushableObject
,IsoZombieHead
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class zombie.iso.IsoObject
IsoObject.IsoObjectFactory, IsoObject.OutlineShader, IsoObject.VisionResult
-
Field Summary
Modifier and TypeFieldDescriptionfinal boolean[]
float
float
float
static final int
boolean
float
float
final ColorInfo[]
float
float
float
Fields inherited from class zombie.iso.IsoObject
AttachedAnimSprite, bAlphaForced, bmod, bNeverDoneAlpha, container, Damage, dir, doNotSync, emitter, gmod, highlightFlags, keyId, lastRendered, lastRenderedRendered, LowLightingQualityHack, MAX_WALL_SPLATS, name, NoPicking, OBF_Blink, OBF_Highlighted, OBF_HighlightRenderOnce, offsetX, offsetY, OutlineOnMouseover, overlaySprite, overlaySpriteColor, partialThumpDmg, rerouteCollide, rerouteMask, rmod, sheetRope, sheetRopeHealth, sprite, spriteName, square, sx, sy, table, tintb, tintg, tintr, wallBloodSplats
-
Constructor Summary
ConstructorDescriptionIsoMovingObject
(IsoCell cell) IsoMovingObject
(IsoCell cell, boolean bObjectListAdd) IsoMovingObject
(IsoCell cell, IsoGridSquare square, IsoSprite spr, boolean bObjectListAdd) -
Method Summary
Modifier and TypeMethodDescriptionbyte
This function calculate count of attackersvoid
collideWith
(IsoObject obj) int
compareToY
(IsoMovingObject other) void
Despawn()
float
DistTo
(int x, int y) float
DistTo
(IsoMovingObject other) float
float
DistToProper
(IsoObject other) float
DistToSquared
(float x, float y) float
DistToSquared
(IsoMovingObject other) void
void
void
doStairs()
void
getBumpedType
(IsoGameCharacter bumped) float
getDistanceSq
(IsoMovingObject other) getFacingPosition
(Vector2 pos) float
getFeelerTile
(float dist) float
float
getGlobalMovementMod
(boolean bDoNoises) float
float
int
getID()
static int
float
float
float
float
float
float
getLx()
float
getLy()
float
getLz()
boolean
float
getNx()
float
getNy()
int
getPosition
(Vector3 out) Get the object's position.float
float
float
float
float
int
getVectorFromDirection
(Vector2 moveForwardVec) static Vector2
getVectorFromDirection
(Vector2 moveForwardVec, IsoDirections dir) float
float
getWeight
(float x, float y) float
getWidth()
float
getX()
float
getY()
float
getZ()
float
Hit
(HandWeapon weapon, IsoGameCharacter wielder, float damageSplit, boolean bIgnoreDamage, float modDelta) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isEatingOther
(IsoMovingObject other) boolean
boolean
boolean
boolean
boolean
boolean
isSolid()
boolean
boolean
void
load
(ByteBuffer input, int WorldVersion, boolean IS_DEBUG_SAVE) void
void
MoveUnmodded
(Vector2 dir) void
onMouseRightClick
(int lx, int ly) void
void
void
void
void
void
void
save
(ByteBuffer output, boolean IS_DEBUG_SAVE) void
separate()
Collision detectionvoid
setbAltCollide
(boolean bAltCollide) void
setCloseKilled
(boolean closeKilled) void
setCollidable
(boolean Collidable) void
setCollidedE
(boolean collidedE) void
setCollidedN
(boolean collidedN) void
setCollidedObject
(IsoObject CollidedObject) void
setCollidedS
(boolean collidedS) void
setCollidedThisFrame
(boolean collidedThisFrame) void
setCollidedW
(boolean collidedW) void
setCollidedWithDoor
(boolean CollidedWithDoor) void
setCollideType
(String collideType) void
setCurrent
(IsoGridSquare current) void
setDestroyed
(boolean destroyed) void
setEatingZombies
(ArrayList<IsoZombie> zeds) void
setFeelersize
(float feelersize) void
setFirstUpdate
(boolean firstUpdate) void
void
setHitForce
(float hitForce) void
setHitFromAngle
(float hitFromAngle) void
setID
(int ID) static void
setIDCount
(int aIDCount) void
setImpulsex
(float impulsex) void
setImpulsey
(float impulsey) void
setLast
(IsoGridSquare last) void
setLastCollideTime
(float lastCollideTime) void
setLastTargettedBy
(IsoZombie lastTargettedBy) void
setLimpulsex
(float limpulsex) void
setLimpulsey
(float limpulsey) void
setLx
(float lx) void
setLy
(float ly) void
setLz
(float lz) void
setMovementLastFrame
(Vector2 movementLastFrame) void
void
setNoDamage
(boolean dmg) void
setNx
(float nx) void
setNy
(float ny) void
setOnFloor
(boolean bOnFloor) void
setPathFindIndex
(int PathFindIndex) void
setScriptModule
(String ScriptModule) void
setScriptnx
(float scriptnx) void
setScriptny
(float scriptny) void
setShootable
(boolean shootable) void
setSolid
(boolean solid) void
setStateEventDelayTimer
(float StateEventDelayTimer) void
setThumpTarget
(Thumpable thumpTarget) void
setTimeSinceZombieAttack
(int TimeSinceZombieAttack) void
setWeight
(float weight) void
setWidth
(float width) void
setX
(float x) void
setY
(float y) void
setZ
(float z) void
setZombiesDontAttack
(boolean b) void
spotted
(IsoMovingObject other, boolean bForced) void
update()
Methods inherited from class zombie.iso.IsoObject
addChild, addSecondaryContainer, addSheetRope, addToWorld, AttachAnim, AttachExistingAnim, AttachExistingAnim, AttackObject, canAddSheetRope, checkAmbientSound, checkHaveElectricity, cleanWallBlood, clearAttachedAnimSprite, Collision, countAddSheetRope, createContainersFromSpriteProperties, customHashCode, Damage, debugPrintout, destroyFence, DirtySlice, doFindExternalWaterSource, DoSpecialTooltip, DoTooltip, factoryClassFromFileInput, factoryFromFileInput, factoryFromFileInput, factoryFromFileInput_OLD, factoryGetClassID, FindExternalWaterSource, FindExternalWaterSource, FindWaterSourceOnSquare, getAlpha, getAlpha, getAttachedAnimSprite, getCell, getChildSprites, getChunk, getContainer, getContainerByEitherType, getContainerByIndex, getContainerByType, getContainerCount, getContainerIndex, getCustomColor, getDamage, getDir, getFacingPositionAlt, getFactoryVehicle, getHighlightColor, getIsSurfaceNormalOffset, getItemContainer, getKeyId, getLastRendered, getLastRenderedRendered, getMaskClickedY, getModData, getMovingObjectIndex, getName, getNew, getNew, getObjectIndex, getObjectRenderEffects, getObjectRenderEffectsToApply, getOffsetX, getOffsetY, getOutlineHighlightCol, getOutlineHighlightCol, getOutlineThickness, getOverlaySprite, getOverlaySpriteColor, getPipedFuelAmount, getProperties, getRenderEffectMaster, getRenderYOffset, getRerouteCollide, getRerouteMask, getRerouteMaskObject, getScriptName, getSpecialObjectIndex, getSprite, getSpriteGridObjects, getSpriteName, getStaticMovingObjectIndex, getSurfaceNormalOffset, getSurfaceOffset, getSurfaceOffsetNoTable, getTable, getTargetAlpha, getTargetAlpha, getTextureName, getThumpableFor, getThumpCondition, getTile, getType, getUsesExternalWaterSource, GetVehicleSlowFactor, getWaterAmount, getWaterMax, getWindRenderEffects, getWorldObjectIndex, hasExternalWaterSource, hasModData, HasTooltip, hasWater, haveSheetRope, haveSpecialTooltip, Hit, HitByVehicle, isAlphaAndTargetZero, isAlphaAndTargetZero, isAlphaZero, isAlphaZero, isBlink, isExistInTheWorld, isFloor, isHighlighted, isHoppable, isItemAllowedInContainer, isMaskClicked, isMaskClicked, isMovedThumpable, isNoPicking, isNorthHoppable, isOutlineHighlight, isOutlineHighlight, isOutlineHlAttached, isOutlineHlAttached, isOutlineHlBlink, isOutlineHlBlink, isOutlineOnMouseover, isRemoveItemAllowedFromContainer, isSpriteInvisible, isStairsNorth, isStairsObject, isStairsWest, isTableSurface, isTableTopObject, isTaintedWater, isTargetAlphaZero, isZombie, load, loadChange, loadFromRemoteBuffer, loadFromRemoteBuffer, loadState, onMouseLeftClick, removeAllContainers, RemoveAttachedAnim, RemoveAttachedAnims, removeRenderEffect, removeSheetRope, render, renderAttachedAndOverlaySprites, renderFloorTile, renderFxMask, renderObjectPicker, renderWallTile, renderWallTileOnly, replaceItem, reset, reuseGridSquare, save, saveChange, saveState, sendObjectChange, sendObjectChange, sendObjectChange, Serialize, setAlpha, setAlpha, setAlphaAndTarget, setAlphaAndTarget, setAlphaToTarget, setAttachedAnimSprite, setBlink, setChildSprites, setContainer, setCustomColor, setCustomColor, setDamage, setDefaultCondition, setDir, setDir, setHighlightColor, setHighlightColor, setHighlighted, setHighlighted, setKeyId, setLastRendered, setLastRenderedRendered, setMovedThumpable, setName, SetName, setNoPicking, setOffsetX, setOffsetY, setOutlineHighlight, setOutlineHighlight, setOutlineHighlightCol, setOutlineHighlightCol, setOutlineHighlightCol, setOutlineHighlightCol, setOutlineHlAttached, setOutlineHlAttached, setOutlineHlBlink, setOutlineHlBlink, setOutlineOnMouseover, setOutlineThickness, setOverlaySprite, setOverlaySprite, setOverlaySprite, setOverlaySprite, setOverlaySpriteColor, setPipedFuelAmount, setRenderEffect, setRenderEffect, setRenderYOffset, setRerouteCollide, setRerouteMask, setSpecialTooltip, setSprite, setSprite, setSpriteFromName, setSquare, setTable, setTaintedWater, setTargetAlpha, setTargetAlpha, setType, setUsesExternalWaterSource, setWaterAmount, softReset, syncIsoObject, syncIsoObjectSend, TestCollide, TestPathfindCollide, TestVision, Thump, transmitCompleteItemToClients, transmitCompleteItemToServer, transmitCustomColor, transmitModData, transmitUpdatedSprite, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToServer, UnCollision, unsetOutlineHighlight, useItemOn, useWater, WeaponHit, writeToRemoteBuffer
-
Field Details
-
treeSoundMgr
-
MAX_ZOMBIES_EATING
public static final int MAX_ZOMBIES_EATING- See Also:
-
noDamage
public boolean noDamage -
last
-
lx
public float lx -
ly
public float ly -
lz
public float lz -
nx
public float nx -
ny
public float ny -
x
public float x -
y
public float y -
z
public float z -
def
-
bOutline
public final boolean[] bOutline -
outlineColor
-
-
Constructor Details
-
IsoMovingObject
-
IsoMovingObject
-
IsoMovingObject
-
IsoMovingObject
public IsoMovingObject()
-
-
Method Details
-
getIDCount
public static int getIDCount()- Returns:
- the IDCount
-
setIDCount
public static void setIDCount(int aIDCount) - Parameters:
aIDCount
- the IDCount to set
-
getBuilding
-
getMasterRegion
-
getWeight
public float getWeight() -
setWeight
public void setWeight(float weight) - Parameters:
weight
- the weight to set
-
getWeight
public float getWeight(float x, float y) -
onMouseRightClick
public void onMouseRightClick(int lx, int ly) - Overrides:
onMouseRightClick
in classIsoObject
-
getObjectName
- Overrides:
getObjectName
in classIsoObject
-
onMouseRightReleased
public void onMouseRightReleased()- Overrides:
onMouseRightReleased
in classIsoObject
-
collideWith
-
doStairs
public void doStairs() -
getID
public int getID() -
setID
public void setID(int ID) - Parameters:
ID
- the ID to set
-
getPathFindIndex
public int getPathFindIndex()- Specified by:
getPathFindIndex
in interfaceMover
-
setPathFindIndex
public void setPathFindIndex(int PathFindIndex) - Parameters:
PathFindIndex
- the PathFindIndex to set
-
getScreenX
public float getScreenX() -
getScreenY
public float getScreenY() -
getThumpTarget
-
setThumpTarget
- Parameters:
thumpTarget
- the thumpTarget to set
-
getVectorFromDirection
-
getVectorFromDirection
-
getPosition
Get the object's position. Stored in the supplied parameter.- Returns:
- The out parameter.
-
getX
public float getX() -
setX
public void setX(float x) - Parameters:
x
- the x to set
-
getY
public float getY() -
setY
public void setY(float y) - Parameters:
y
- the y to set
-
getZ
public float getZ() -
setZ
public void setZ(float z) - Parameters:
z
- the z to set
-
getSquare
-
getCurrentBuilding
-
Hit
public float Hit(HandWeapon weapon, IsoGameCharacter wielder, float damageSplit, boolean bIgnoreDamage, float modDelta) -
Move
-
MoveUnmodded
-
isCharacter
public boolean isCharacter()- Overrides:
isCharacter
in classIsoObject
-
DistTo
public float DistTo(int x, int y) -
DistTo
-
DistToProper
-
DistToSquared
-
DistToSquared
public float DistToSquared(float x, float y) -
load
- Overrides:
load
in classIsoObject
- Throws:
IOException
-
save
- Overrides:
save
in classIsoObject
- Throws:
IOException
-
removeFromWorld
public void removeFromWorld()- Overrides:
removeFromWorld
in classIsoObject
-
removeFromSquare
public void removeFromSquare()- Overrides:
removeFromSquare
in classIsoObject
-
getFuturWalkedSquare
-
getGlobalMovementMod
public float getGlobalMovementMod() -
getGlobalMovementMod
public float getGlobalMovementMod(boolean bDoNoises) -
postupdate
public void postupdate() -
ensureOnTile
public void ensureOnTile() -
preupdate
public void preupdate() -
renderlast
public void renderlast()- Overrides:
renderlast
in classIsoObject
-
spotted
-
update
public void update() -
compareToY
-
distToNearestCamCharacter
public float distToNearestCamCharacter() -
isSolidForSeparate
public boolean isSolidForSeparate() -
isPushableForSeparate
public boolean isPushableForSeparate() -
isPushedByForSeparate
-
separate
public void separate()Collision detection -
getBumpedType
-
setMovingSquareNow
public void setMovingSquareNow() -
getFeelerTile
-
DoCollideNorS
public void DoCollideNorS() -
DoCollideWorE
public void DoCollideWorE() -
getTimeSinceZombieAttack
public int getTimeSinceZombieAttack()- Returns:
- the TimeSinceZombieAttack
-
setTimeSinceZombieAttack
public void setTimeSinceZombieAttack(int TimeSinceZombieAttack) - Parameters:
TimeSinceZombieAttack
- the TimeSinceZombieAttack to set
-
isCollidedE
public boolean isCollidedE()- Returns:
- the collidedE
-
setCollidedE
public void setCollidedE(boolean collidedE) - Parameters:
collidedE
- the collidedE to set
-
isCollidedN
public boolean isCollidedN()- Returns:
- the collidedN
-
setCollidedN
public void setCollidedN(boolean collidedN) - Parameters:
collidedN
- the collidedN to set
-
getCollidedObject
- Returns:
- the CollidedObject
-
setCollidedObject
- Parameters:
CollidedObject
- the CollidedObject to set
-
isCollidedS
public boolean isCollidedS()- Returns:
- the collidedS
-
setCollidedS
public void setCollidedS(boolean collidedS) - Parameters:
collidedS
- the collidedS to set
-
isCollidedThisFrame
public boolean isCollidedThisFrame()- Returns:
- the collidedThisFrame
-
setCollidedThisFrame
public void setCollidedThisFrame(boolean collidedThisFrame) - Parameters:
collidedThisFrame
- the collidedThisFrame to set
-
isCollidedW
public boolean isCollidedW()- Returns:
- the collidedW
-
setCollidedW
public void setCollidedW(boolean collidedW) - Parameters:
collidedW
- the collidedW to set
-
isCollidedWithDoor
public boolean isCollidedWithDoor()- Returns:
- the CollidedWithDoor
-
setCollidedWithDoor
public void setCollidedWithDoor(boolean CollidedWithDoor) - Parameters:
CollidedWithDoor
- the CollidedWithDoor to set
-
isCollidedWithVehicle
public boolean isCollidedWithVehicle() -
getCurrentSquare
- Returns:
- the current
-
getCurrentZone
-
setCurrent
- Parameters:
current
- the current to set
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyed
in interfaceThumpable
- Overrides:
isDestroyed
in classIsoObject
- Returns:
- the destroyed
-
setDestroyed
public void setDestroyed(boolean destroyed) - Parameters:
destroyed
- the destroyed to set
-
isFirstUpdate
public boolean isFirstUpdate()- Returns:
- the firstUpdate
-
setFirstUpdate
public void setFirstUpdate(boolean firstUpdate) - Parameters:
firstUpdate
- the firstUpdate to set
-
getHitDir
- Returns:
- the hitDir
-
setHitDir
- Parameters:
hitDir
- the hitDir to set
-
getImpulsex
public float getImpulsex()- Returns:
- the impulsex
-
setImpulsex
public void setImpulsex(float impulsex) - Parameters:
impulsex
- the impulsex to set
-
getImpulsey
public float getImpulsey()- Returns:
- the impulsey
-
setImpulsey
public void setImpulsey(float impulsey) - Parameters:
impulsey
- the impulsey to set
-
getLimpulsex
public float getLimpulsex()- Returns:
- the limpulsex
-
setLimpulsex
public void setLimpulsex(float limpulsex) - Parameters:
limpulsex
- the limpulsex to set
-
getLimpulsey
public float getLimpulsey()- Returns:
- the limpulsey
-
setLimpulsey
public void setLimpulsey(float limpulsey) - Parameters:
limpulsey
- the limpulsey to set
-
getHitForce
public float getHitForce()- Returns:
- the hitForce
-
setHitForce
public void setHitForce(float hitForce) - Parameters:
hitForce
- the hitForce to set
-
getHitFromAngle
public float getHitFromAngle()- Returns:
- the hitFromAngle
-
setHitFromAngle
public void setHitFromAngle(float hitFromAngle) - Parameters:
hitFromAngle
- the hitFromAngle to set
-
getLastSquare
- Returns:
- the last
-
setLast
- Parameters:
last
- the last to set
-
getLx
public float getLx()- Returns:
- the lx
-
setLx
public void setLx(float lx) - Parameters:
lx
- the lx to set
-
getLy
public float getLy()- Returns:
- the ly
-
setLy
public void setLy(float ly) - Parameters:
ly
- the ly to set
-
getLz
public float getLz()- Returns:
- the lz
-
setLz
public void setLz(float lz) - Parameters:
lz
- the lz to set
-
getNx
public float getNx()- Returns:
- the nx
-
setNx
public void setNx(float nx) - Parameters:
nx
- the nx to set
-
getNy
public float getNy()- Returns:
- the ny
-
setNy
public void setNy(float ny) - Parameters:
ny
- the ny to set
-
getNoDamage
public boolean getNoDamage()- Returns:
- whether the object should take damage or not.
-
setNoDamage
public void setNoDamage(boolean dmg) - Parameters:
dmg
- whether the object should take damage.
-
isSolid
public boolean isSolid()- Returns:
- the solid
-
setSolid
public void setSolid(boolean solid) - Parameters:
solid
- the solid to set
-
getStateEventDelayTimer
public float getStateEventDelayTimer()- Returns:
- the StateEventDelayTimer
-
setStateEventDelayTimer
public void setStateEventDelayTimer(float StateEventDelayTimer) - Parameters:
StateEventDelayTimer
- the StateEventDelayTimer to set
-
getWidth
public float getWidth()- Returns:
- the width
-
setWidth
public void setWidth(float width) - Parameters:
width
- the width to set
-
isbAltCollide
public boolean isbAltCollide()- Returns:
- the bAltCollide
-
setbAltCollide
public void setbAltCollide(boolean bAltCollide) - Parameters:
bAltCollide
- the bAltCollide to set
-
isShootable
public boolean isShootable()- Returns:
- the shootable
-
setShootable
public void setShootable(boolean shootable) - Parameters:
shootable
- the shootable to set
-
getLastTargettedBy
- Returns:
- the lastTargettedBy
-
setLastTargettedBy
- Parameters:
lastTargettedBy
- the lastTargettedBy to set
-
isCollidable
public boolean isCollidable()- Returns:
- the Collidable
-
setCollidable
public void setCollidable(boolean Collidable) - Parameters:
Collidable
- the Collidable to set
-
getScriptnx
public float getScriptnx()- Returns:
- the scriptnx
-
setScriptnx
public void setScriptnx(float scriptnx) - Parameters:
scriptnx
- the scriptnx to set
-
getScriptny
public float getScriptny()- Returns:
- the scriptny
-
setScriptny
public void setScriptny(float scriptny) - Parameters:
scriptny
- the scriptny to set
-
getScriptModule
- Returns:
- the ScriptModule
-
setScriptModule
- Parameters:
ScriptModule
- the ScriptModule to set
-
getMovementLastFrame
- Returns:
- the movementLastFrame
-
setMovementLastFrame
- Parameters:
movementLastFrame
- the movementLastFrame to set
-
getFeelersize
public float getFeelersize()- Returns:
- the feelersize
-
setFeelersize
public void setFeelersize(float feelersize) - Parameters:
feelersize
- the feelersize to set
-
canHaveMultipleHits
public byte canHaveMultipleHits()This function calculate count of attackers- Returns:
- 0 - no attackets, 1 - one player can attack this character, 2 - multiply players can attack this character
-
isOnFloor
public boolean isOnFloor() -
setOnFloor
public void setOnFloor(boolean bOnFloor) -
Despawn
public void Despawn() -
isCloseKilled
public boolean isCloseKilled() -
setCloseKilled
public void setCloseKilled(boolean closeKilled) -
getFacingPosition
- Overrides:
getFacingPosition
in classIsoObject
-
isCollided
public boolean isCollided() -
getCollideType
-
setCollideType
-
getLastCollideTime
public float getLastCollideTime() -
setLastCollideTime
public void setLastCollideTime(float lastCollideTime) -
getEatingZombies
-
setEatingZombies
-
isEatingOther
-
getDistanceSq
-
setZombiesDontAttack
public void setZombiesDontAttack(boolean b) -
isZombiesDontAttack
public boolean isZombiesDontAttack()
-