Package zombie.iso

Class IsoMovingObject

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

public class IsoMovingObject
extends IsoObject
implements Mover
See Also:
Serialized Form
  • 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

      protected IsoGridSquare current
    • hitDir

      protected Vector2 hitDir
    • ID

      protected int ID
    • last

      public IsoGridSquare last
    • movingSq

      protected IsoGridSquare 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

      public Vector2 reqMovement
    • ScriptModule

      protected java.lang.String ScriptModule
    • ScriptName

      protected java.lang.String ScriptName
    • treeSoundMgr

      public static IsoMovingObject.TreeSoundManager treeSoundMgr
    • def

      public IsoSpriteInstance def
    • movementLastFrame

      protected Vector2 movementLastFrame
    • weight

      protected float weight
  • Constructor Details

    • IsoMovingObject

      public IsoMovingObject​(IsoCell cell)
    • IsoMovingObject

      public IsoMovingObject​(IsoCell cell, boolean boolean1)
    • IsoMovingObject

      public IsoMovingObject​(IsoCell cell, IsoGridSquare square, IsoSprite sprite, boolean boolean1)
    • IsoMovingObject

      public IsoMovingObject()
  • Method Details

    • getIDCount

      public static int getIDCount()
    • getBuilding

      public IsoBuilding getBuilding()
    • getMasterRegion

      public MasterRegion getMasterRegion()
    • setIDCount

      public static void setIDCount​(int int1)
    • getTempo

      public static Vector2 getTempo()
    • setTempo

      public static void setTempo​(Vector2 vector2)
    • getWeight

      public float getWeight()
    • getWeight

      public float getWeight​(float float1, float float2)
    • onMouseRightClick

      public void onMouseRightClick​(int int1, int int2)
      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 object)
    • 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()
    • getThumpTarget

      public Thumpable getThumpTarget()
    • getVectorFromDirection

      public Vector2 getVectorFromDirection​(Vector2 vector2)
    • 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
    • getCurrentBuilding

      public IsoBuilding getCurrentBuilding()
    • Hit

      public void Hit​(HandWeapon handWeapon, IsoGameCharacter gameCharacter, float float1, boolean boolean1, float float2)
    • Move

      public void Move​(Vector2 vector2)
    • isCharacter

      public boolean isCharacter()
      Overrides:
      isCharacter in class IsoObject
    • DistTo

      public float DistTo​(int int1, int int2)
    • DistTo

      public float DistTo​(IsoMovingObject movingObject)
    • DistToProper

      public float DistToProper​(IsoObject object)
    • DistToSquared

      public float DistToSquared​(IsoMovingObject movingObject)
    • DistToSquared

      public float DistToSquared​(float float1, float float2)
    • getAllowBehaviours

      public boolean getAllowBehaviours()
    • load

      public void load​(java.nio.ByteBuffer byteBuffer, int int1) throws java.io.IOException
      Overrides:
      load in class IsoObject
      Throws:
      java.io.IOException
    • save

      public void save​(java.nio.ByteBuffer byteBuffer) throws java.io.IOException
      Overrides:
      save in class IsoObject
      Throws:
      java.io.IOException
    • removeFromWorld

      public void removeFromWorld()
      Overrides:
      removeFromWorld in class IsoObject
    • removeFromSquare

      public void removeFromSquare()
      Overrides:
      removeFromSquare in class IsoObject
    • getFuturWalkedSquare

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

      public void spotted​(IsoMovingObject movingObject, boolean boolean1)
    • update

      public void update()
      Overrides:
      update in class IsoObject
    • compareToY

      public int compareToY​(IsoMovingObject movingObject)
    • distToNearestCamCharacter

      public float distToNearestCamCharacter()
    • seperate

      public void seperate()
    • getFeelerTile

      public IsoGridSquare getFeelerTile​(float float1)
    • 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

      public IsoObject getCollidedObject()
    • setCollidedObject

      public void setCollidedObject​(IsoObject object)
    • 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

      public IsoGridSquare getCurrentSquare()
    • getCurrentZone

      public IsoMetaGrid.Zone getCurrentZone()
    • setCurrent

      public void setCurrent​(IsoGridSquare square)
    • isDestroyed

      public boolean isDestroyed()
    • setDestroyed

      public void setDestroyed​(boolean boolean1)
    • isFirstUpdate

      public boolean isFirstUpdate()
    • setFirstUpdate

      public void setFirstUpdate​(boolean boolean1)
    • getHitDir

      public Vector2 getHitDir()
    • setHitDir

      public void setHitDir​(Vector2 vector2)
    • isAllowBehaviours

      public boolean isAllowBehaviours()
    • setAllowBehaviours

      public void setAllowBehaviours​(boolean boolean1)
    • 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)
    • setID

      public void setID​(int int1)
    • getLastSquare

      public IsoGridSquare getLastSquare()
    • setLast

      public void setLast​(IsoGridSquare square)
    • 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)
    • setNoDamage

      public void setNoDamage​(boolean boolean1)
    • getNoDamage

      public boolean getNoDamage()
    • setPathFindIndex

      public void setPathFindIndex​(int int1)
    • isSolid

      public boolean isSolid()
    • setSolid

      public void setSolid​(boolean boolean1)
    • getStateEventDelayTimer

      public float getStateEventDelayTimer()
    • setStateEventDelayTimer

      public void setStateEventDelayTimer​(float float1)
    • setThumpTarget

      public void setThumpTarget​(Thumpable thumpable)
    • getWidth

      public float getWidth()
    • setWidth

      public void setWidth​(float float1)
    • setX

      public void setX​(float float1)
    • setY

      public void setY​(float float1)
    • setZ

      public void setZ​(float float1)
    • isbAltCollide

      public boolean isbAltCollide()
    • setbAltCollide

      public void setbAltCollide​(boolean boolean1)
    • isShootable

      public boolean isShootable()
    • setShootable

      public void setShootable​(boolean boolean1)
    • getLastTargettedBy

      public IsoZombie getLastTargettedBy()
    • setLastTargettedBy

      public void setLastTargettedBy​(IsoZombie zombie)
    • 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)
    • getScriptName

      public java.lang.String getScriptName()
      Overrides:
      getScriptName in class IsoObject
    • setScriptName

      public void setScriptName​(java.lang.String string)
    • getActiveInInstances

      public java.util.Stack getActiveInInstances()
    • setActiveInInstances

      public void setActiveInInstances​(java.util.Stack stack)
    • getMovementLastFrame

      public Vector2 getMovementLastFrame()
    • setMovementLastFrame

      public void setMovementLastFrame​(Vector2 vector2)
    • setWeight

      public void setWeight​(float float1)
    • getFeelersize

      public float getFeelersize()
    • setFeelersize

      public void setFeelersize​(float float1)
    • setOnFloor

      public void setOnFloor​(boolean boolean1)
    • isOnFloor

      public boolean isOnFloor()
    • Despawn

      public void Despawn()
    • isCloseKilled

      public boolean isCloseKilled()
    • setCloseKilled

      public void setCloseKilled​(boolean boolean1)
    • setBlendSpeed

      public void setBlendSpeed​(float float1)
    • getFacingPosition

      public Vector2 getFacingPosition​(Vector2 vector2)
      Overrides:
      getFacingPosition in class IsoObject