Package zombie.iso
Class IsoMovingObject
java.lang.Object
zombie.iso.IsoObject
zombie.iso.IsoMovingObject
- All Implemented Interfaces:
java.io.Serializable
,Mover
- Direct Known Subclasses:
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.VisionResult
-
Field Summary
Fields Modifier and Type Field Description float
bx
float
by
protected boolean
Collidable
protected IsoGridSquare
current
IsoSpriteInstance
def
static long
ExpectedChecksum
protected Vector2
hitDir
protected int
ID
IsoGridSquare
last
float
lx
float
ly
float
lz
protected Vector2
movementLastFrame
protected IsoGridSquare
movingSq
boolean
noDamage
float
nx
float
ny
Vector2
reqMovement
protected java.lang.String
ScriptModule
protected java.lang.String
ScriptName
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
alpha, alphaStep, AttachedAnimSprite, AttachedAnimSpriteActual, bmod, bNeverDoneAlpha, container, Damage, dir, emitter, externalWaterSource, gmod, highlighted, keyId, lastRendered, lastRenderedRendered, MAX_WALL_SPLATS, name, NoPicking, offsetX, offsetY, OutlineOnMouseover, overlaySprite, overlaySpriteColor, rerouteCollide, rerouteMask, rmod, sheetRope, sheetRopeHealth, sprite, spriteName, square, stCol, sx, sy, table, targetAlpha, tintb, tintg, tintr, usesExternalWaterSource, wallBloodSplats
-
Constructor Summary
Constructors Constructor Description IsoMovingObject()
IsoMovingObject(IsoCell cell)
IsoMovingObject(IsoCell cell, boolean bObjectListAdd)
IsoMovingObject(IsoCell cell, IsoGridSquare square, IsoSprite spr, boolean bObjectListAdd)
-
Method Summary
Modifier and Type Method Description void
collideCharacter()
void
collideWith(IsoObject obj)
int
compareToY(IsoMovingObject other)
void
Despawn()
float
DistTo(int x, int y)
float
DistTo(IsoMovingObject other)
float
DistToProper(IsoMovingObject other)
float
DistToSquared(float x, float y)
float
DistToSquared(IsoMovingObject other)
void
DoCollideNorS()
void
DoCollideWorE()
void
doStairs()
void
ensureOnTile()
java.util.Stack
getActiveInInstances()
boolean
getAllowBehaviours()
IsoBuilding
getBuilding()
IsoObject
getCollidedObject()
IsoGridSquare
getCurrentSquare()
IsoMetaGrid.Zone
getCurrentZone()
Vector2
getFacingPosition(Vector2 pos)
float
getFeelersize()
IsoGridSquare
getFeelerTile(float dist)
IsoGridSquare
getFuturWalkedSquare()
float
getGlobalMovementMod()
float
getGlobalMovementMod(boolean bDoNoises)
Vector2
getHitDir()
float
getHitForce()
float
getHitFromAngle()
int
getID()
static int
getIDCount()
float
getImpulsex()
float
getImpulsey()
IsoGridSquare
getLastSquare()
IsoZombie
getLastTargettedBy()
float
getLimpulsex()
float
getLimpulsey()
float
getLx()
float
getLy()
float
getLz()
Vector2
getMovementLastFrame()
float
getNx()
float
getNy()
java.lang.String
getObjectName()
int
getPathFindIndex()
float
getScreenX()
float
getScreenY()
java.lang.String
getScriptModule()
java.lang.String
getScriptName()
float
getScriptnx()
float
getScriptny()
IsoGridSquare
getSquare()
float
getStateEventDelayTimer()
static Vector2
getTempo()
Thumpable
getThumpTarget()
int
getTimeSinceZombieAttack()
Vector2
getVectorFromDirection(Vector2 moveForwardVec)
float
getWeight()
float
getWeight(float x, float y)
float
getWidth()
float
getX()
float
getY()
float
getZ()
void
Hit(HandWeapon weapon, IsoGameCharacter wielder, float damageSplit, boolean bIgnoreDamage, float modDelta)
boolean
isAllowBehaviours()
boolean
isbAltCollide()
boolean
isCharacter()
boolean
isCloseKilled()
boolean
isCollidable()
boolean
isCollidedE()
boolean
isCollidedN()
boolean
isCollidedS()
boolean
isCollidedThisFrame()
boolean
isCollidedW()
boolean
isCollidedWithDoor()
boolean
isDestroyed()
boolean
isFirstUpdate()
boolean
isOnFloor()
boolean
isShootable()
boolean
isSolid()
void
load(java.nio.ByteBuffer input, int WorldVersion)
void
Move(Vector2 dir)
void
onMouseRightClick(int lx, int ly)
void
onMouseRightReleased()
void
postupdate()
void
preupdate()
void
removeFromSquare()
void
removeFromWorld()
void
renderlast()
void
save(java.nio.ByteBuffer output)
void
seperate()
void
setActiveInInstances(java.util.Stack ActiveInInstances)
void
setAllowBehaviours(boolean AllowBehaviours)
void
setbAltCollide(boolean bAltCollide)
void
setBlendSpeed(float sp)
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
setCurrent(IsoGridSquare current)
void
setDestroyed(boolean destroyed)
void
setFeelersize(float feelersize)
void
setFirstUpdate(boolean firstUpdate)
void
setHitDir(Vector2 hitDir)
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
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
setNx(float nx)
void
setNy(float ny)
void
setOnFloor(boolean bOnFloor)
void
setPathFindIndex(int PathFindIndex)
void
setScriptModule(java.lang.String ScriptModule)
void
setScriptName(java.lang.String ScriptName)
void
setScriptnx(float scriptnx)
void
setScriptny(float scriptny)
void
setShootable(boolean shootable)
void
setSolid(boolean solid)
void
setStateEventDelayTimer(float StateEventDelayTimer)
static void
setTempo(Vector2 aTempo)
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
spotted(IsoMovingObject other, boolean bForced)
void
update()
Methods inherited from class zombie.iso.IsoObject
addChild, addSecondaryContainer, addToWorld, AttachAnim, AttachExistingAnim, AttachExistingAnim, AttackObject, checkHaveElectricity, createChecksum, createContainersFromSpriteProperties, 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, getName, getNew, getObjectIndex, getOffsetX, getOffsetY, getOverlaySprite, getOverlaySpriteColor, getProperties, getRenderYOffset, getRerouteCollide, getRerouteMask, getRerouteMaskObject, getSpecialObjectIndex, getSprite, getSpriteName, getStaticMovingObjectIndex, getSurfaceNormalOffset, getSurfaceOffset, getTable, getTargetAlpha, getTextureName, getTile, getType, getUsesExternalWaterSource, getWaterAmount, getWorldObjectIndex, hasExternalWaterSource, hasModData, HasTooltip, hasWater, haveSpecialTooltip, isBlink, isMaskClicked, isMaskClicked, isNoPicking, isOutlineOnMouseover, isTableSurface, isTableTopObject, isZombie, loadChange, loadFromRemoteBuffer, loadFromRemoteBuffer, onMouseLeftClick, removeAllContainers, RemoveAttachedAnim, RemoveAttachedAnims, render, render, renderObjectPicker, replaceItem, reset, reuseGridSquare, saveChange, sendObjectChange, sendObjectChange, sendObjectChange, Serialize, setAlpha, setAlphaStep, setAttachedAnimSprite, setBlink, setChildSprites, setContainer, setCustomColor, setCustomColor, setDamage, setDefaultCondition, setDir, setDir, setHighlightColor, setHighlighted, setKeyId, setLastRendered, setLastRenderedRendered, setName, SetName, setNoPicking, setOffsetX, setOffsetY, setOutlineOnMouseover, setOverlaySprite, setOverlaySprite, setOverlaySprite, setOverlaySpriteColor, setRenderYOffset, setRerouteCollide, setRerouteMask, setSpecialTooltip, setSprite, setSprite, setSpriteFromName, setSquare, setTable, setTargetAlpha, setType, setUsesExternalWaterSource, setWaterAmount, syncIsoObject, syncIsoObjectSend, TestCollide, TestPathfindCollide, TestVision, transmitCompleteItemToClients, transmitCompleteItemToServer, transmitCustomColor, transmitModData, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToServer, useItemOn, useWater, writeToRemoteBuffer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ExpectedChecksum
public static final long ExpectedChecksum- See Also:
- Constant Field Values
-
bx
public float bx -
by
public float by -
noDamage
public boolean noDamage -
current
-
hitDir
-
ID
protected int ID -
last
-
movingSq
-
lx
public float lx -
ly
public float ly -
lz
public float lz -
nx
public float nx -
ny
public float ny -
solid
protected boolean solid -
width
protected float width -
x
public float x -
y
public float y -
z
public float z -
shootable
protected boolean shootable -
Collidable
protected boolean Collidable -
scriptnx
protected float scriptnx -
scriptny
protected float scriptny -
reqMovement
-
ScriptModule
protected java.lang.String ScriptModule -
ScriptName
protected java.lang.String ScriptName -
treeSoundMgr
-
def
-
movementLastFrame
-
weight
protected float weight
-
-
Constructor Details
-
IsoMovingObject
-
IsoMovingObject
-
IsoMovingObject
-
IsoMovingObject
public IsoMovingObject()
-
-
Method Details
-
getIDCount
public static int getIDCount() -
getBuilding
-
setIDCount
public static void setIDCount(int aIDCount) -
getTempo
-
setTempo
-
getWeight
public float getWeight() -
getWeight
public float getWeight(float x, float y) -
onMouseRightClick
public void onMouseRightClick(int lx, int ly)- Overrides:
onMouseRightClick
in classIsoObject
-
getObjectName
public java.lang.String getObjectName()- Overrides:
getObjectName
in classIsoObject
-
onMouseRightReleased
public void onMouseRightReleased()- Overrides:
onMouseRightReleased
in classIsoObject
-
collideCharacter
public void collideCharacter() -
collideWith
-
doStairs
public void doStairs() -
getID
public int getID() -
getPathFindIndex
public int getPathFindIndex()- Specified by:
getPathFindIndex
in interfaceMover
-
getScreenX
public float getScreenX() -
getScreenY
public float getScreenY() -
getThumpTarget
-
getVectorFromDirection
-
getX
public float getX() -
getY
public float getY() -
getZ
public float getZ() -
getSquare
-
Hit
public void Hit(HandWeapon weapon, IsoGameCharacter wielder, float damageSplit, boolean bIgnoreDamage, float modDelta) -
Move
-
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) -
getAllowBehaviours
public boolean getAllowBehaviours() -
load
public void load(java.nio.ByteBuffer input, int WorldVersion) throws java.io.IOException -
save
public void save(java.nio.ByteBuffer output) 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 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
-
seperate
public void seperate() -
getFeelerTile
-
DoCollideNorS
public void DoCollideNorS() -
DoCollideWorE
public void DoCollideWorE() -
getTimeSinceZombieAttack
public int getTimeSinceZombieAttack() -
setTimeSinceZombieAttack
public void setTimeSinceZombieAttack(int TimeSinceZombieAttack) -
isCollidedE
public boolean isCollidedE() -
setCollidedE
public void setCollidedE(boolean collidedE) -
isCollidedN
public boolean isCollidedN() -
setCollidedN
public void setCollidedN(boolean collidedN) -
getCollidedObject
-
setCollidedObject
-
isCollidedS
public boolean isCollidedS() -
setCollidedS
public void setCollidedS(boolean collidedS) -
isCollidedThisFrame
public boolean isCollidedThisFrame() -
setCollidedThisFrame
public void setCollidedThisFrame(boolean collidedThisFrame) -
isCollidedW
public boolean isCollidedW() -
setCollidedW
public void setCollidedW(boolean collidedW) -
isCollidedWithDoor
public boolean isCollidedWithDoor() -
setCollidedWithDoor
public void setCollidedWithDoor(boolean CollidedWithDoor) -
getCurrentSquare
-
getCurrentZone
-
setCurrent
-
isDestroyed
public boolean isDestroyed() -
setDestroyed
public void setDestroyed(boolean destroyed) -
isFirstUpdate
public boolean isFirstUpdate() -
setFirstUpdate
public void setFirstUpdate(boolean firstUpdate) -
getHitDir
-
setHitDir
-
isAllowBehaviours
public boolean isAllowBehaviours() -
setAllowBehaviours
public void setAllowBehaviours(boolean AllowBehaviours) -
getImpulsex
public float getImpulsex() -
setImpulsex
public void setImpulsex(float impulsex) -
getImpulsey
public float getImpulsey() -
setImpulsey
public void setImpulsey(float impulsey) -
getLimpulsex
public float getLimpulsex() -
setLimpulsex
public void setLimpulsex(float limpulsex) -
getLimpulsey
public float getLimpulsey() -
setLimpulsey
public void setLimpulsey(float limpulsey) -
getHitForce
public float getHitForce() -
setHitForce
public void setHitForce(float hitForce) -
getHitFromAngle
public float getHitFromAngle() -
setHitFromAngle
public void setHitFromAngle(float hitFromAngle) -
setID
public void setID(int ID) -
getLastSquare
-
setLast
-
getLx
public float getLx() -
setLx
public void setLx(float lx) -
getLy
public float getLy() -
setLy
public void setLy(float ly) -
getLz
public float getLz() -
setLz
public void setLz(float lz) -
getNx
public float getNx() -
setNx
public void setNx(float nx) -
getNy
public float getNy() -
setNy
public void setNy(float ny) -
setPathFindIndex
public void setPathFindIndex(int PathFindIndex) -
isSolid
public boolean isSolid() -
setSolid
public void setSolid(boolean solid) -
getStateEventDelayTimer
public float getStateEventDelayTimer() -
setStateEventDelayTimer
public void setStateEventDelayTimer(float StateEventDelayTimer) -
setThumpTarget
-
getWidth
public float getWidth() -
setWidth
public void setWidth(float width) -
setX
public void setX(float x) -
setY
public void setY(float y) -
setZ
public void setZ(float z) -
isbAltCollide
public boolean isbAltCollide() -
setbAltCollide
public void setbAltCollide(boolean bAltCollide) -
isShootable
public boolean isShootable() -
setShootable
public void setShootable(boolean shootable) -
getLastTargettedBy
-
setLastTargettedBy
-
isCollidable
public boolean isCollidable() -
setCollidable
public void setCollidable(boolean Collidable) -
getScriptnx
public float getScriptnx() -
setScriptnx
public void setScriptnx(float scriptnx) -
getScriptny
public float getScriptny() -
setScriptny
public void setScriptny(float scriptny) -
getScriptModule
public java.lang.String getScriptModule() -
setScriptModule
public void setScriptModule(java.lang.String ScriptModule) -
getScriptName
public java.lang.String getScriptName()- Overrides:
getScriptName
in classIsoObject
-
setScriptName
public void setScriptName(java.lang.String ScriptName) -
getActiveInInstances
public java.util.Stack getActiveInInstances() -
setActiveInInstances
public void setActiveInInstances(java.util.Stack ActiveInInstances) -
getMovementLastFrame
-
setMovementLastFrame
-
setWeight
public void setWeight(float weight) -
getFeelersize
public float getFeelersize() -
setFeelersize
public void setFeelersize(float feelersize) -
setOnFloor
public void setOnFloor(boolean bOnFloor) -
isOnFloor
public boolean isOnFloor() -
Despawn
public void Despawn() -
isCloseKilled
public boolean isCloseKilled() -
setCloseKilled
public void setCloseKilled(boolean closeKilled) -
setBlendSpeed
public void setBlendSpeed(float sp) -
getFacingPosition
- Overrides:
getFacingPosition
in classIsoObject
-