Package zombie.iso
Class IsoMovingObject
java.lang.Object
zombie.iso.IsoObject
zombie.iso.IsoMovingObject
- Direct Known Subclasses:
BaseVehicle
,IsoDeadBody
,IsoGameCharacter
,IsoPhysicsObject
,IsoPushableObject
,IsoZombieHead
public class IsoMovingObject extends IsoObject implements Mover
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IsoMovingObject.TreeSoundManager
Nested classes/interfaces inherited from class zombie.iso.IsoObject
IsoObject.IsoObjectFactory, IsoObject.OutlineShader, IsoObject.VisionResult
-
Field Summary
Fields Modifier and Type Field Description boolean[]
bOutline
protected boolean
Collidable
protected IsoGridSquare
current
IsoSpriteInstance
def
protected Vector2
hitDir
protected int
ID
IsoGridSquare
last
float
lx
float
ly
float
lz
static int
MAX_ZOMBIES_EATING
protected Vector2
movementLastFrame
protected IsoGridSquare
movingSq
boolean
noDamage
float
nx
float
ny
ColorInfo[]
outlineColor
protected java.lang.String
ScriptModule
protected float
scriptnx
protected float
scriptny
protected boolean
shootable
protected boolean
solid
static IsoMovingObject.TreeSoundManager
treeSoundMgr
protected float
weight
protected float
width
float
x
float
y
float
z
Fields inherited from class zombie.iso.IsoObject
AttachedAnimSprite, bAlphaForced, bmod, bMovedThumpable, bNeverDoneAlpha, container, Damage, dir, doNotSync, emitter, externalWaterSource, gmod, highlightFlags, isOutlineHighlight, isOutlineHlAttached, isOutlineHlBlink, keyId, lastRendered, lastRenderedRendered, LowLightingQualityHack, MAX_WALL_SPLATS, name, NoPicking, OBF_Blink, OBF_Highlighted, OBF_HighlightRenderOnce, objectRenderEffects, offsetX, offsetY, outlineHighlightCol, OutlineOnMouseover, overlaySprite, overlaySpriteColor, partialThumpDmg, rerouteCollide, rerouteMask, rmod, sheetRope, sheetRopeHealth, sprite, spriteName, square, sx, sy, table, tintb, tintg, tintr, usesExternalWaterSource, wallBloodSplats, windRenderEffects
-
Constructor Summary
Constructors Constructor Description IsoMovingObject()
IsoMovingObject(IsoCell cell)
IsoMovingObject(IsoCell cell, boolean boolean1)
IsoMovingObject(IsoCell cell, IsoGridSquare square, IsoSprite sprite, boolean boolean1)
-
Method Summary
Modifier and Type Method Description byte
canHaveMultipleHits()
void
collideWith(IsoObject object)
int
compareToY(IsoMovingObject movingObject)
void
Despawn()
float
DistTo(int int1, int int2)
float
DistTo(IsoMovingObject movingObject)
float
distToNearestCamCharacter()
float
DistToProper(IsoObject object)
float
DistToSquared(float float1, float float2)
float
DistToSquared(IsoMovingObject movingObject)
void
DoCollideNorS()
void
DoCollideWorE()
void
doStairs()
void
ensureOnTile()
IsoBuilding
getBuilding()
java.lang.String
getBumpedType(IsoGameCharacter gameCharacter)
IsoObject
getCollidedObject()
java.lang.String
getCollideType()
IsoBuilding
getCurrentBuilding()
IsoGridSquare
getCurrentSquare()
IsoMetaGrid.Zone
getCurrentZone()
float
getDistanceSq(IsoMovingObject movingObject)
java.util.ArrayList
getEatingZombies()
Vector2
getFacingPosition(Vector2 vector2)
float
getFeelersize()
IsoGridSquare
getFeelerTile(float float1)
IsoGridSquare
getFuturWalkedSquare()
float
getGlobalMovementMod()
float
getGlobalMovementMod(boolean boolean1)
Vector2
getHitDir()
float
getHitForce()
float
getHitFromAngle()
int
getID()
static int
getIDCount()
float
getImpulsex()
float
getImpulsey()
float
getLastCollideTime()
IsoGridSquare
getLastSquare()
IsoZombie
getLastTargettedBy()
float
getLimpulsex()
float
getLimpulsey()
float
getLx()
float
getLy()
float
getLz()
IWorldRegion
getMasterRegion()
Vector2
getMovementLastFrame()
boolean
getNoDamage()
float
getNx()
float
getNy()
java.lang.String
getObjectName()
int
getPathFindIndex()
Vector3
getPosition(Vector3 vector3)
float
getScreenX()
float
getScreenY()
java.lang.String
getScriptModule()
float
getScriptnx()
float
getScriptny()
IsoGridSquare
getSquare()
float
getStateEventDelayTimer()
Thumpable
getThumpTarget()
int
getTimeSinceZombieAttack()
Vector2
getVectorFromDirection(Vector2 vector2)
static Vector2
getVectorFromDirection(Vector2 vector2, IsoDirections directions)
float
getWeight()
float
getWeight(float float1, float float2)
float
getWidth()
float
getX()
float
getY()
float
getZ()
float
Hit(HandWeapon handWeapon, IsoGameCharacter gameCharacter, float float1, boolean boolean1, float float2)
boolean
isbAltCollide()
boolean
isCharacter()
boolean
isCloseKilled()
boolean
isCollidable()
boolean
isCollided()
boolean
isCollidedE()
boolean
isCollidedN()
boolean
isCollidedS()
boolean
isCollidedThisFrame()
boolean
isCollidedW()
boolean
isCollidedWithDoor()
boolean
isCollidedWithVehicle()
boolean
isDestroyed()
boolean
isEatingOther(IsoMovingObject movingObject)
boolean
isFirstUpdate()
boolean
isOnFloor()
boolean
isPushableForSeparate()
boolean
isPushedByForSeparate(IsoMovingObject movingObject)
boolean
isShootable()
boolean
isSolid()
boolean
isSolidForSeparate()
boolean
isZombiesDontAttack()
void
load(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1)
void
Move(Vector2 vector2)
void
MoveUnmodded(Vector2 vector2)
void
onMouseRightClick(int int1, int int2)
void
onMouseRightReleased()
void
postupdate()
void
preupdate()
void
removeFromSquare()
void
removeFromWorld()
void
renderlast()
void
save(java.nio.ByteBuffer byteBuffer, boolean boolean1)
void
separate()
void
setbAltCollide(boolean boolean1)
void
setCloseKilled(boolean boolean1)
void
setCollidable(boolean boolean1)
void
setCollidedE(boolean boolean1)
void
setCollidedN(boolean boolean1)
void
setCollidedObject(IsoObject object)
void
setCollidedS(boolean boolean1)
void
setCollidedThisFrame(boolean boolean1)
void
setCollidedW(boolean boolean1)
void
setCollidedWithDoor(boolean boolean1)
void
setCollideType(java.lang.String string)
void
setCurrent(IsoGridSquare square)
void
setDestroyed(boolean boolean1)
void
setEatingZombies(java.util.ArrayList arrayList)
void
setFeelersize(float float1)
void
setFirstUpdate(boolean boolean1)
void
setHitDir(Vector2 vector2)
void
setHitForce(float float1)
void
setHitFromAngle(float float1)
void
setID(int int1)
static void
setIDCount(int int1)
void
setImpulsex(float float1)
void
setImpulsey(float float1)
void
setLast(IsoGridSquare square)
void
setLastCollideTime(float float1)
void
setLastTargettedBy(IsoZombie zombie)
void
setLimpulsex(float float1)
void
setLimpulsey(float float1)
void
setLx(float float1)
void
setLy(float float1)
void
setLz(float float1)
void
setMovementLastFrame(Vector2 vector2)
void
setMovingSquareNow()
void
setNoDamage(boolean boolean1)
void
setNx(float float1)
void
setNy(float float1)
void
setOnFloor(boolean boolean1)
void
setPathFindIndex(int int1)
void
setScriptModule(java.lang.String string)
void
setScriptnx(float float1)
void
setScriptny(float float1)
void
setShootable(boolean boolean1)
void
setSolid(boolean boolean1)
void
setStateEventDelayTimer(float float1)
void
setThumpTarget(Thumpable thumpable)
void
setTimeSinceZombieAttack(int int1)
void
setWeight(float float1)
void
setWidth(float float1)
void
setX(float float1)
void
setY(float float1)
void
setZ(float float1)
void
setZombiesDontAttack(boolean boolean1)
void
spotted(IsoMovingObject movingObject, boolean boolean1)
void
update()
Methods inherited from class zombie.iso.IsoObject
addChild, addItemsFromProperties, addSecondaryContainer, addSheetRope, addToWorld, AttachAnim, AttachExistingAnim, AttachExistingAnim, AttackObject, canAddSheetRope, checkHaveElectricity, checkMoveWithWind, checkMoveWithWind, cleanWallBlood, clearAttachedAnimSprite, Collision, countAddSheetRope, createContainersFromSpriteProperties, customHashCode, Damage, debugPrintout, destroyFence, DirtySlice, doFindExternalWaterSource, DoSpecialTooltip, DoTooltip, factoryClassFromFileInput, factoryFromFileInput, factoryFromFileInput, factoryFromFileInput_OLD, factoryGetClassID, FindExternalWaterSource, FindExternalWaterSource, FindWaterSourceOnSquare, getAlpha, getAlpha, getAlphaUpdateRateDiv, getAlphaUpdateRateMul, getAttachedAnimSprite, getCell, getChildSprites, 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, isHighlighted, isHoppable, isItemAllowedInContainer, isMaskClicked, isMaskClicked, isMovedThumpable, isNoPicking, isNorthHoppable, isOutlineHighlight, isOutlineHighlight, isOutlineHlAttached, isOutlineHlAttached, isOutlineHlBlink, isOutlineHlBlink, isOutlineOnMouseover, isRemoveItemAllowedFromContainer, isSpriteInvisible, isStairsNorth, isStairsObject, isStairsWest, isTableSurface, isTableTopObject, isTaintedWater, isTargetAlphaZero, isUpdateAlphaDuringRender, isUpdateAlphaEnabled, 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, updateAlpha, updateAlpha, updateAlpha, useItemOn, useWater, WeaponHit, writeToRemoteBuffer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
treeSoundMgr
-
MAX_ZOMBIES_EATING
public static final int MAX_ZOMBIES_EATING- See Also:
- Constant Field Values
-
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
-
current
-
hitDir
-
ID
protected int ID -
movingSq
-
solid
protected boolean solid -
width
protected float width -
shootable
protected boolean shootable -
Collidable
protected boolean Collidable -
scriptnx
protected float scriptnx -
scriptny
protected float scriptny -
ScriptModule
protected java.lang.String ScriptModule -
movementLastFrame
-
weight
protected float weight -
bOutline
public final boolean[] bOutline -
outlineColor
-
-
Constructor Details
-
IsoMovingObject
-
IsoMovingObject
-
IsoMovingObject
-
IsoMovingObject
public IsoMovingObject()
-
-
Method Details
-
getIDCount
public static int getIDCount() -
setIDCount
public static void setIDCount(int int1) -
getBuilding
-
getMasterRegion
-
getWeight
public float getWeight() -
setWeight
public void setWeight(float float1) -
getWeight
public float getWeight(float float1, float float2) -
onMouseRightClick
public void onMouseRightClick(int int1, int int2)- Overrides:
onMouseRightClick
in classIsoObject
-
getObjectName
public java.lang.String 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 int1) -
getPathFindIndex
public int getPathFindIndex()- Specified by:
getPathFindIndex
in interfaceMover
-
setPathFindIndex
public void setPathFindIndex(int int1) -
getScreenX
public float getScreenX() -
getScreenY
public float getScreenY() -
getThumpTarget
-
setThumpTarget
-
getVectorFromDirection
-
getVectorFromDirection
-
getPosition
-
getX
public float getX() -
setX
public void setX(float float1) -
getY
public float getY() -
setY
public void setY(float float1) -
getZ
public float getZ() -
setZ
public void setZ(float float1) -
getSquare
-
getCurrentBuilding
-
Hit
public float Hit(HandWeapon handWeapon, IsoGameCharacter gameCharacter, float float1, boolean boolean1, float float2) -
Move
-
MoveUnmodded
-
isCharacter
public boolean isCharacter()- Overrides:
isCharacter
in classIsoObject
-
DistTo
public float DistTo(int int1, int int2) -
DistTo
-
DistToProper
-
DistToSquared
-
DistToSquared
public float DistToSquared(float float1, float float2) -
load
public void load(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1) throws java.io.IOException -
save
public void save(java.nio.ByteBuffer byteBuffer, boolean boolean1) throws java.io.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 boolean1) -
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() -
getBumpedType
-
setMovingSquareNow
public void setMovingSquareNow() -
getFeelerTile
-
DoCollideNorS
public void DoCollideNorS() -
DoCollideWorE
public void DoCollideWorE() -
getTimeSinceZombieAttack
public int getTimeSinceZombieAttack() -
setTimeSinceZombieAttack
public void setTimeSinceZombieAttack(int int1) -
isCollidedE
public boolean isCollidedE() -
setCollidedE
public void setCollidedE(boolean boolean1) -
isCollidedN
public boolean isCollidedN() -
setCollidedN
public void setCollidedN(boolean boolean1) -
getCollidedObject
-
setCollidedObject
-
isCollidedS
public boolean isCollidedS() -
setCollidedS
public void setCollidedS(boolean boolean1) -
isCollidedThisFrame
public boolean isCollidedThisFrame() -
setCollidedThisFrame
public void setCollidedThisFrame(boolean boolean1) -
isCollidedW
public boolean isCollidedW() -
setCollidedW
public void setCollidedW(boolean boolean1) -
isCollidedWithDoor
public boolean isCollidedWithDoor() -
setCollidedWithDoor
public void setCollidedWithDoor(boolean boolean1) -
isCollidedWithVehicle
public boolean isCollidedWithVehicle() -
getCurrentSquare
-
getCurrentZone
-
setCurrent
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyed
in interfaceThumpable
- Overrides:
isDestroyed
in classIsoObject
-
setDestroyed
public void setDestroyed(boolean boolean1) -
isFirstUpdate
public boolean isFirstUpdate() -
setFirstUpdate
public void setFirstUpdate(boolean boolean1) -
getHitDir
-
setHitDir
-
getImpulsex
public float getImpulsex() -
setImpulsex
public void setImpulsex(float float1) -
getImpulsey
public float getImpulsey() -
setImpulsey
public void setImpulsey(float float1) -
getLimpulsex
public float getLimpulsex() -
setLimpulsex
public void setLimpulsex(float float1) -
getLimpulsey
public float getLimpulsey() -
setLimpulsey
public void setLimpulsey(float float1) -
getHitForce
public float getHitForce() -
setHitForce
public void setHitForce(float float1) -
getHitFromAngle
public float getHitFromAngle() -
setHitFromAngle
public void setHitFromAngle(float float1) -
getLastSquare
-
setLast
-
getLx
public float getLx() -
setLx
public void setLx(float float1) -
getLy
public float getLy() -
setLy
public void setLy(float float1) -
getLz
public float getLz() -
setLz
public void setLz(float float1) -
getNx
public float getNx() -
setNx
public void setNx(float float1) -
getNy
public float getNy() -
setNy
public void setNy(float float1) -
getNoDamage
public boolean getNoDamage() -
setNoDamage
public void setNoDamage(boolean boolean1) -
isSolid
public boolean isSolid() -
setSolid
public void setSolid(boolean boolean1) -
getStateEventDelayTimer
public float getStateEventDelayTimer() -
setStateEventDelayTimer
public void setStateEventDelayTimer(float float1) -
getWidth
public float getWidth() -
setWidth
public void setWidth(float float1) -
isbAltCollide
public boolean isbAltCollide() -
setbAltCollide
public void setbAltCollide(boolean boolean1) -
isShootable
public boolean isShootable() -
setShootable
public void setShootable(boolean boolean1) -
getLastTargettedBy
-
setLastTargettedBy
-
isCollidable
public boolean isCollidable() -
setCollidable
public void setCollidable(boolean boolean1) -
getScriptnx
public float getScriptnx() -
setScriptnx
public void setScriptnx(float float1) -
getScriptny
public float getScriptny() -
setScriptny
public void setScriptny(float float1) -
getScriptModule
public java.lang.String getScriptModule() -
setScriptModule
public void setScriptModule(java.lang.String string) -
getMovementLastFrame
-
setMovementLastFrame
-
getFeelersize
public float getFeelersize() -
setFeelersize
public void setFeelersize(float float1) -
canHaveMultipleHits
public byte canHaveMultipleHits() -
isOnFloor
public boolean isOnFloor() -
setOnFloor
public void setOnFloor(boolean boolean1) -
Despawn
public void Despawn() -
isCloseKilled
public boolean isCloseKilled() -
setCloseKilled
public void setCloseKilled(boolean boolean1) -
getFacingPosition
- Overrides:
getFacingPosition
in classIsoObject
-
isCollided
public boolean isCollided() -
getCollideType
public java.lang.String getCollideType() -
setCollideType
public void setCollideType(java.lang.String string) -
getLastCollideTime
public float getLastCollideTime() -
setLastCollideTime
public void setLastCollideTime(float float1) -
getEatingZombies
public java.util.ArrayList getEatingZombies() -
setEatingZombies
public void setEatingZombies(java.util.ArrayList arrayList) -
isEatingOther
-
getDistanceSq
-
setZombiesDontAttack
public void setZombiesDontAttack(boolean boolean1) -
isZombiesDontAttack
public boolean isZombiesDontAttack()
-