zombie.iso
Class IsoMovingObject

java.lang.Object
  extended by zombie.iso.IsoObject
      extended by zombie.iso.IsoMovingObject
All Implemented Interfaces:
java.io.Serializable, Mover
Direct Known Subclasses:
IsoDeadBody, IsoGameCharacter, IsoPhysicsObject, IsoPushableObject

public class IsoMovingObject
extends IsoObject
implements Mover

Author:
LEMMY
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class zombie.iso.IsoObject
IsoObject.VisionResult
 
Field Summary
 IsoSpriteInstance def
           
 IsoGridSquare last
           
 boolean noDamage
           
 float nx
           
 float ny
           
 Vector2 reqMovement
           
 float x
           
 float y
           
 float z
           
 
Fields inherited from class zombie.iso.IsoObject
alpha, alphaStep, AttachedAnimSprite, AttachedAnimSpriteActual, container, Damage, dir, lastRendered, lastRenderedRendered, name, NoPicking, offsetX, offsetY, OutlineOnMouseover, rerouteCollide, rerouteMask, sprite, square, stCol, table, targetAlpha, tintb, tintg, tintr
 
Constructor Summary
IsoMovingObject()
           
IsoMovingObject(IsoCell cell)
           
IsoMovingObject(IsoCell cell, boolean bObjectListAdd)
           
IsoMovingObject(IsoCell cell, IsoGridSquare square, IsoSprite spr, boolean bObjectListAdd)
           
 
Method Summary
 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)
           
 void DoCollideNorS()
           
 void DoCollideWorE()
           
 void doStairs()
           
 void ensureOnTile()
           
 java.util.Stack<Script.ScriptInstance> getActiveInInstances()
           
 boolean getAllowBehaviours()
           
 IsoBuilding getBuilding()
           
 IsoObject getCollidedObject()
           
 IsoGridSquare getCurrentSquare()
           
 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()
           
 float getSeeValue()
           
 IsoGridSquare getSquare()
           
 float getStateEventDelayTimer()
           
static Vector2 getTempo()
           
 Thumpable getThumpTarget()
           
 int getTimeSinceZombieAttack()
           
 Vector2 getVectorFromDirection()
           
 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 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)
           
 void Move(Vector2 dir)
           
 void onMouseRightClick(int lx, int ly)
           
 void onMouseRightReleased()
           
 void postupdate()
           
 void preupdate()
           
 void renderlast()
           
 void save(java.nio.ByteBuffer output)
           
 void seperate()
           
 void setActiveInInstances(java.util.Stack<Script.ScriptInstance> ActiveInInstances)
           
 void setAllowBehaviours(boolean AllowBehaviours)
           
 void setbAltCollide(boolean bAltCollide)
           
 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, AttachAnim, AttachExistingAnim, AttachExistingAnim, AttackObject, createChecksum, DirtySlice, DoChecksumCheck, DoChecksumCheck, DoTooltip, factoryClassFromFileInput, factoryFromFileInput, factoryFromFileInput, getAlpha, getAlphaStep, getAttachedAnimSprite, getCell, getChildSprites, getContainer, getDamage, getDir, getItemContainer, getLastRendered, getLastRenderedRendered, getMaskClickedY, getMD5Checksum, getModData, getName, getOffsetX, getOffsetY, getProperties, getRerouteCollide, getRerouteMask, getRerouteMaskObject, getSprite, getTable, getTargetAlpha, getTextureName, getType, HasTooltip, hasWater, isMaskClicked, isMaskClicked, isNoPicking, isOutlineOnMouseover, isZombie, onMouseLeftClick, RemoveAttachedAnims, render, renderObjectPicker, replaceItem, reset, Serialize, setAlpha, setAlphaStep, setAttachedAnimSprite, setChildSprites, setContainer, setDamage, setDefaultCondition, setDir, setDir, setLastRendered, setLastRenderedRendered, setName, SetName, setNoPicking, setOffsetX, setOffsetY, setOutlineOnMouseover, setRerouteCollide, setRerouteMask, setSprite, setSquare, setTable, setTargetAlpha, setType, TestCollide, TestPathfindCollide, TestVision, useItemOn, useWater
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

noDamage

public boolean noDamage

last

public IsoGridSquare last

nx

public float nx

ny

public float ny

x

public float x

y

public float y

z

public float z

reqMovement

public Vector2 reqMovement

def

public IsoSpriteInstance def
Constructor Detail

IsoMovingObject

public IsoMovingObject(IsoCell cell)

IsoMovingObject

public IsoMovingObject(IsoCell cell,
                       boolean bObjectListAdd)

IsoMovingObject

public IsoMovingObject(IsoCell cell,
                       IsoGridSquare square,
                       IsoSprite spr,
                       boolean bObjectListAdd)

IsoMovingObject

public IsoMovingObject()
Method Detail

getIDCount

public static int getIDCount()
Returns:
the IDCount

getBuilding

public IsoBuilding getBuilding()

setIDCount

public static void setIDCount(int aIDCount)
Parameters:
aIDCount - the IDCount to set

getTempo

public static Vector2 getTempo()
Returns:
the tempo

setTempo

public static void setTempo(Vector2 aTempo)
Parameters:
aTempo - the tempo to set

getWeight

public float getWeight()

getWeight

public float getWeight(float x,
                       float y)

onMouseRightClick

public void onMouseRightClick(int lx,
                              int ly)
Overrides:
onMouseRightClick in class IsoObject

getObjectName

public java.lang.String getObjectName()
Overrides:
getObjectName in class IsoObject

onMouseRightReleased

public void onMouseRightReleased()
Overrides:
onMouseRightReleased in class IsoObject

collideCharacter

public void collideCharacter()

collideWith

public void collideWith(IsoObject obj)

doStairs

public void doStairs()

getID

public int getID()
Specified by:
getID in interface Mover

getPathFindIndex

public int getPathFindIndex()
Specified by:
getPathFindIndex in interface Mover

getScreenX

public float getScreenX()

getScreenY

public float getScreenY()

getSeeValue

public float getSeeValue()

getThumpTarget

public Thumpable getThumpTarget()

getVectorFromDirection

public Vector2 getVectorFromDirection()

getX

public float getX()
Overrides:
getX in class IsoObject

getY

public float getY()
Overrides:
getY in class IsoObject

getZ

public float getZ()
Overrides:
getZ in class IsoObject

getSquare

public IsoGridSquare getSquare()
Overrides:
getSquare in class IsoObject

Hit

public void Hit(HandWeapon weapon,
                IsoGameCharacter wielder,
                float damageSplit,
                boolean bIgnoreDamage,
                float modDelta)

Move

public void Move(Vector2 dir)

isCharacter

public boolean isCharacter()
Overrides:
isCharacter in class IsoObject

DistTo

public float DistTo(int x,
                    int y)

DistTo

public float DistTo(IsoMovingObject other)

DistToProper

public float DistToProper(IsoMovingObject other)

getAllowBehaviours

public boolean getAllowBehaviours()

load

public void load(java.nio.ByteBuffer input)
          throws java.io.IOException
Overrides:
load in class IsoObject
Throws:
java.io.IOException

save

public void save(java.nio.ByteBuffer output)
          throws java.io.IOException
Overrides:
save in class IsoObject
Throws:
java.io.IOException

getFuturWalkedSquare

public IsoGridSquare 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 class IsoObject

spotted

public void spotted(IsoMovingObject other,
                    boolean bForced)

update

public void update()
Overrides:
update in class IsoObject

compareToY

public int compareToY(IsoMovingObject other)

seperate

public void seperate()

getFeelerTile

public IsoGridSquare getFeelerTile(float dist)

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

public IsoObject getCollidedObject()
Returns:
the CollidedObject

setCollidedObject

public void setCollidedObject(IsoObject CollidedObject)
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

getCurrentSquare

public IsoGridSquare getCurrentSquare()
Returns:
the current

setCurrent

public void setCurrent(IsoGridSquare current)
Parameters:
current - the current to set

isDestroyed

public boolean isDestroyed()
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

public Vector2 getHitDir()
Returns:
the hitDir

setHitDir

public void setHitDir(Vector2 hitDir)
Parameters:
hitDir - the hitDir to set

isAllowBehaviours

public boolean isAllowBehaviours()
Returns:
the AllowBehaviours

setAllowBehaviours

public void setAllowBehaviours(boolean AllowBehaviours)
Parameters:
AllowBehaviours - the AllowBehaviours 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

setID

public void setID(int ID)
Parameters:
ID - the ID to set

getLastSquare

public IsoGridSquare getLastSquare()
Returns:
the last

setLast

public void setLast(IsoGridSquare last)
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

setPathFindIndex

public void setPathFindIndex(int PathFindIndex)
Parameters:
PathFindIndex - the PathFindIndex to set

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

setThumpTarget

public void setThumpTarget(Thumpable thumpTarget)
Parameters:
thumpTarget - the thumpTarget to set

getWidth

public float getWidth()
Returns:
the width

setWidth

public void setWidth(float width)
Parameters:
width - the width to set

setX

public void setX(float x)
Parameters:
x - the x to set

setY

public void setY(float y)
Parameters:
y - the y to set

setZ

public void setZ(float z)
Parameters:
z - the z 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

public IsoZombie getLastTargettedBy()
Returns:
the lastTargettedBy

setLastTargettedBy

public void setLastTargettedBy(IsoZombie lastTargettedBy)
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

public java.lang.String getScriptModule()
Returns:
the ScriptModule

setScriptModule

public void setScriptModule(java.lang.String ScriptModule)
Parameters:
ScriptModule - the ScriptModule to set

getScriptName

public java.lang.String getScriptName()
Overrides:
getScriptName in class IsoObject
Returns:
the ScriptName

setScriptName

public void setScriptName(java.lang.String ScriptName)
Parameters:
ScriptName - the ScriptName to set

getActiveInInstances

public java.util.Stack<Script.ScriptInstance> getActiveInInstances()
Returns:
the ActiveInInstances

setActiveInInstances

public void setActiveInInstances(java.util.Stack<Script.ScriptInstance> ActiveInInstances)
Parameters:
ActiveInInstances - the ActiveInInstances to set

getMovementLastFrame

public Vector2 getMovementLastFrame()
Returns:
the movementLastFrame

setMovementLastFrame

public void setMovementLastFrame(Vector2 movementLastFrame)
Parameters:
movementLastFrame - the movementLastFrame to set

setWeight

public void setWeight(float weight)
Parameters:
weight - the weight to set

getFeelersize

public float getFeelersize()
Returns:
the feelersize

setFeelersize

public void setFeelersize(float feelersize)
Parameters:
feelersize - the feelersize to set

setOnFloor

public void setOnFloor(boolean bOnFloor)

isOnFloor

public boolean isOnFloor()

Despawn

public void Despawn()