zombie.characters
Class IsoZombie

java.lang.Object
  extended by zombie.iso.IsoObject
      extended by zombie.iso.IsoMovingObject
          extended by zombie.characters.IsoGameCharacter
              extended by zombie.characters.IsoZombie
All Implemented Interfaces:
java.io.Serializable, Mover, Talker

public class IsoZombie
extends IsoGameCharacter

Author:
LEMMY
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class zombie.characters.IsoGameCharacter
IsoGameCharacter.BodyLocation, IsoGameCharacter.Location, IsoGameCharacter.PerkInfo, IsoGameCharacter.Wound, IsoGameCharacter.XP
 
Nested classes/interfaces inherited from class zombie.iso.IsoObject
IsoObject.VisionResult
 
Field Summary
 float AllowRepathDelay
           
 int AttackAnimTime
           
static int AttackAnimTimeMax
           
static float baseSpeed
           
 boolean bCrawling
           
 boolean bDead
           
 boolean bLunger
           
 boolean bRightie
           
 boolean bRunning
           
 boolean Deaf
           
static boolean Fast
           
 int FollowCount
           
 boolean Ghost
           
 float GhostLife
           
 int HurtPlayerTimer
           
 int iIgnoreDirectionChange
           
 boolean KeepItReal
           
 int LastTargetSeenX
           
 int LastTargetSeenY
           
 int LastTargetSeenZ
           
 float LungeTimer
           
 int MoveDelay
           
 int palette
           
 float predXVel
           
 float predYVel
           
 IsoMovingObject spottedLast
           
 java.lang.String SpriteName
           
 IsoMovingObject target
           
 int TimeSinceSeenFlesh
           
 Vector2 vectorToTarget
           
 java.lang.String walkVariant
           
 java.lang.String walkVariantUse
           
 float wanderSpeed
           
static int ZombieDeaths
           
 int ZombieID
           
 
Fields inherited from class zombie.characters.IsoGameCharacter
angle, Asleep, AttackDelayLast, bFemale, bottomsSprite, callOut, DropShadow, extraSprites, hairSprite, headSprite, IgnoreMovementForDirection, knockbackAttackMod, legsSprite, PathDelay, shoeSprite, StateMachineParams, topSprite, torsoSprite
 
Fields inherited from class zombie.iso.IsoMovingObject
def, last, noDamage, nx, ny, reqMovement, x, y, 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
IsoZombie(IsoCell cell)
           
IsoZombie(IsoCell cell, int palette)
           
IsoZombie(IsoCell cell, SurvivorDesc desc)
           
 
Method Summary
 boolean AttemptAttack()
           
 void collideWith(IsoObject obj)
           
static byte[] createChecksum(java.lang.String filename)
           
static boolean DoChecksumCheck()
           
static boolean DoChecksumCheck(java.lang.String str, java.lang.String expected)
           
 void DoZombieSpeeds()
           
 Path FindPath(int sx, int sy, int sz, int tx, int ty, int tz)
           
static java.lang.String getMD5Checksum(java.lang.String filename)
           
 java.lang.String getObjectName()
           
 void Hit(HandWeapon weapon, IsoGameCharacter wielder, float damageSplit, boolean bIgnoreDamage, float modDelta)
           
 boolean isFakeDead()
           
 boolean isForceFakeDead()
           
 void load(java.nio.ByteBuffer input)
           
 void Lunge()
           
 void onMouseLeftClick()
           
 void pathFinished()
           
 void PathTo(int x, int y, int z, boolean critical)
           
 void PathTo(int x, int y, int z, boolean critical, int delay)
           
 void postupdate()
           
 void preupdate()
           
 void render(float x, float y, float z, ColorInfo col, boolean bDoChild)
           
 void RespondToSound()
           
 void save(java.nio.ByteBuffer output)
           
 void setFakeDead(boolean bFakeDead)
           
 void setForceFakeDead(boolean bForceFakeDead)
           
 void spotted(IsoMovingObject other, boolean bForced)
           
 void update()
           
 void updateFrameSpeed()
           
 void Wander()
           
 
Methods inherited from class zombie.characters.IsoGameCharacter
Anger, ApplyInBedOffset, BetaAntiDepress, BetaBlockers, Bitten, Callout, CanAttack, CanSee, changeState, climbDownSheetRope, climbSheetRope, climbThroughWindow, climbThroughWindow, climbThroughWindow, DirectionFromVector, DirectionFromVectorNoDiags, DoCharacterPart, DoDeath, DoDeath, DoFloorSplat, DoFootstepSound, DoZombiePart, DoZombiePart, drawAt, DrawSneezeText, Dressup, Dressup, dripBloodFloor, Eat, exert, faceDirection, FaceNextPathNode, FaceNextPathNode, FireCheck, getAge, getAngle, getAttackDelay, getAttackDelayMax, getAttackDelayUse, getAttackedBy, getAttackTargetSquare, getBarricadeStrengthMod, getBarricadeTimeMod, getBetaDelta, getBetaEffect, getBloodImpactX, getBloodImpactY, getBloodImpactZ, getBloodSplat, getBodyDamage, getBottomsSprite, getCanUpgradePerk, getChair, getCharacterActions, getClothingItem_Feet, getClothingItem_Hands, getClothingItem_Head, getClothingItem_Legs, getClothingItem_Torso, getCraftingByIndex, getCraftIngredient1, getCraftIngredient2, getCraftIngredient3, getCraftIngredient4, getCurrentBuilding, getCurrentState, getDangerLevels, getDefaultState, getDepressDelta, getDepressEffect, getDescriptor, getDieCount, getEnemyList, getExtraSprites, getFallTime, getFamiliarBuildings, getFatigueMod, getFinder, getFireKillRate, getFireSpreadProbability, getFollowingTarget, getFootStepCounter, getFootStepCounterMax, getForceWakeUpTime, getHairSprite, getHammerSoundMod, getHeadSprite, getHealth, getHitBy, getHitChancesMod, getHittingMod, getHurtSound, getHyperthermiaMod, getInf, getInventory, getLastdir, getLastFallSpeed, getLastHeardSound, getLastHitCount, getLastKnownLocation, getLastKnownLocationOf, getLastLocalEnemies, getLastZombieKills, getLeaveBodyTimedown, getLegsSprite, getLevelMaxForXp, getLevelUpLevels, getLevelUpLevels, getLevelUpMultiplier, getLightfootMod, getLlx, getLly, getLlz, getLocalEnemyList, getLocalGroupList, getLocalList, getLocalNeutralList, getLocalRelevantEnemyList, getLowDangerInVicinity, getLrx, getLry, getMasterBehaviorList, getMasterProper, getMaxWeight, getMaxWeightBase, getMeetList, getMoodles, getMoveForwardVec, getMoveSpeed, getNextWander, getNimbleMod, getNumberOfPerksToPick, getNumSurvivorsInVicinity, getOrder, getOrders, getPacingMod, getPainDelta, getPainEffect, getPath, getPathIndex, getPathSpeed, getPathTargetX, getPathTargetY, getPathTargetZ, getPatience, getPatienceMax, getPatienceMin, getPerkInfo, getPerkLevel, getPerkList, getPersonality, getPersonalNeed, getPersonalNeeds, getPrimaryHandItem, getPrimaryHandType, getReanimAnimDelay, getReanimAnimFrame, getReanimateTimer, getReanimPhase, getRecoveryMod, getRemoteID, getSayLine, getSecondaryHandItem, getSecondaryHandType, getShoeSprite, getShovingMod, getSleepingTabletDelta, getSleepingTabletEffect, getSlowFactor, getSlowTimer, getSneakSpotMod, getSpeakColour, getSpeakTime, getSpeedMod, getSprintMod, getSpriteDef, getStaggerTimeMod, getStateMachine, getStats, getSurvivorKills, getSurvivorMap, getTagGroup, getTalkerType, getTempo, getTestPlayerSpotInDarkness, getThreatLevel, getTimeThumping, getTimeTillForgetLocation, getTopSprite, getTorsoSprite, getTraits, getUsedItemsOn, getUseHandWeapon, getVeryCloseEnemyList, getWeightMod, getWounds, getXp, getZombieKills, GiveOrder, GivePersonalNeed, hasEquipped, HasItem, hasItems, HasTrait, InBuildingWith, inflictWound, InitSpriteParts, initSpritePartsEmpty, InitSpritePartsZombie, InRoomWith, isAllowConversation, IsArmed, isAsleep, IsAttackRange, IsAttackRange, isAttackWasSuperAttack, isbDoDefer, isbFalling, isbOnBed, isbUseParts, isClimbing, isDead, isFemale, isIgnoreMovementForDirection, isIgnoreStaggerBack, IsInBuilding, isLastCollidedN, isLastCollidedW, isMaskClicked, isOnFire, isOutside, isPathing, isPrimaryEquipped, isReanim, isSat, IsSneaking, isSpeaking, IsSpeaking, isSpottedSinceAlphaZero, isSuperAttack, isVisibleToNPCs, Kill, level0, LevelPerk, LevelPerk, LevelUp, LoseLevel, MoveForward, MoveForward, OnDeath, onMouseLeftClick, openWindow, PainMeds, PlayAnim, PlayAnimFrame, PlayAnimNoReset, PlayAnimUnlooped, PlayAnimWithSpeed, PlayShootAnim, QueueAction, ReadLiterature, ReduceHealthWhenBurning, renderlast, renderObjectPicker, rendertalk, satOnChair, Say, Scratched, Seen, setAge, setAllowConversation, setAngle, SetAnim, setAsleep, setAttackDelay, setAttackDelayMax, setAttackDelayUse, setAttackedBy, setAttackTargetSquare, setAttackWasSuperAttack, setbClimbing, setbDoDefer, setBetaDelta, setBetaEffect, setbFalling, setBloodImpactX, setBloodImpactY, setBloodImpactZ, setBloodSplat, setBodyDamage, setbOnBed, setBottomsSprite, setbUseParts, setCanUpgradePerk, setChair, setCharacterActions, SetClothing, setClothingItem_Feet, setClothingItem_Hands, setClothingItem_Head, setClothingItem_Legs, setClothingItem_Torso, setCraftingByIndex, setCraftIngredient1, setCraftIngredient2, setCraftIngredient3, setCraftIngredient4, setDangerLevels, setDefaultState, setDefaultState, setDepressDelta, setDepressEffect, setDescriptor, setDieCount, setDir, setEnemyList, setFallTime, setFamiliarBuildings, setFemale, setFinder, setFireKillRate, setFireSpreadProbability, setFollowingTarget, setFootStepCounter, setFootStepCounterMax, setForceWakeUpTime, setHairSprite, setHeadSprite, setHealth, setHitBy, setHurtSound, setIgnoreMovementForDirection, setIgnoreStaggerBack, setInf, setInventory, setLastCollidedN, setLastCollidedW, setLastdir, setLastFallSpeed, setLastHeardSound, setLastHitCount, setLastKnownLocation, setLastLocalEnemies, setLastZombieKills, setLeaveBodyTimedown, setLegsSprite, setLevelUpLevels, setLevelUpMultiplier, setLlx, setLly, setLlz, setLocalEnemyList, setLocalGroupList, setLocalList, setLocalNeutralList, setLocalRelevantEnemyList, setLockStates, setLrx, setLry, setMasterBehaviorList, setMasterProper, setMaxWeight, setMaxWeightBase, setMeetList, setMoodles, setMoveForwardVec, setNextWander, setNumberOfPerksToPick, setNumSurvivorsInVicinity, SetOnFire, setOnFire, setOrder, setOrders, setPainDelta, setPainEffect, setPath, setPathIndex, setPathing, setPathSpeed, setPathTargetX, setPathTargetY, setPathTargetZ, setPatience, setPatienceMax, setPatienceMin, setPerkList, setPersonality, setPersonalNeed, setPersonalNeeds, setPrimaryHandItem, setReanim, setReanimAnimDelay, setReanimAnimFrame, setReanimateTimer, setReanimPhase, setRemoteID, setSat, setSayLine, setSecondaryHandItem, setShoeSprite, setSleepingTabletDelta, setSleepingTabletEffect, setSlowFactor, setSlowTimer, setSpeakColour, setSpeaking, setSpeakTime, setSpeedMod, setSpottedSinceAlphaZero, setStaggerTimeMod, setStateMachine, setStats, setSuperAttack, setSurvivorKills, setSurvivorMap, setTagGroup, setTempo, setTestPlayerSpotInDarkness, setTimeThumping, setTimeTillForgetLocation, setTopSprite, setTorsoSprite, setTraits, setUsedItemsOn, setUseHandWeapon, setVeryCloseEnemyList, setVisibleToNPCs, setWounds, setXp, setZombieKills, SleepingTablet, smashWindow, splatBlood, splatBloodFloor, splatBloodFloorBig, SpreadFire, StartAction, StopAllActionQueue, StopAllActionQueueRunning, StopAllActionQueueWalking, Throw
 
Methods inherited from class zombie.iso.IsoMovingObject
collideCharacter, compareToY, Despawn, DistTo, DistTo, DistToProper, DoCollideNorS, DoCollideWorE, doStairs, ensureOnTile, getActiveInInstances, getAllowBehaviours, getBuilding, getCollidedObject, getCurrentSquare, getFeelersize, getFeelerTile, getFuturWalkedSquare, getGlobalMovementMod, getGlobalMovementMod, getHitDir, getHitForce, getHitFromAngle, getID, getIDCount, getImpulsex, getImpulsey, getLastSquare, getLastTargettedBy, getLimpulsex, getLimpulsey, getLx, getLy, getLz, getMovementLastFrame, getNx, getNy, getPathFindIndex, getScreenX, getScreenY, getScriptModule, getScriptName, getScriptnx, getScriptny, getSeeValue, getSquare, getStateEventDelayTimer, getThumpTarget, getTimeSinceZombieAttack, getVectorFromDirection, getWeight, getWeight, getWidth, getX, getY, getZ, isAllowBehaviours, isbAltCollide, isCharacter, isCollidable, isCollidedE, isCollidedN, isCollidedS, isCollidedThisFrame, isCollidedW, isCollidedWithDoor, isDestroyed, isFirstUpdate, isOnFloor, isShootable, isSolid, Move, onMouseRightClick, onMouseRightReleased, seperate, setActiveInInstances, setAllowBehaviours, setbAltCollide, setCollidable, setCollidedE, setCollidedN, setCollidedObject, setCollidedS, setCollidedThisFrame, setCollidedW, setCollidedWithDoor, setCurrent, setDestroyed, setFeelersize, setFirstUpdate, setHitDir, setHitForce, setHitFromAngle, setID, setIDCount, setImpulsex, setImpulsey, setLast, setLastTargettedBy, setLimpulsex, setLimpulsey, setLx, setLy, setLz, setMovementLastFrame, setNx, setNy, setOnFloor, setPathFindIndex, setScriptModule, setScriptName, setScriptnx, setScriptny, setShootable, setSolid, setStateEventDelayTimer, setThumpTarget, setTimeSinceZombieAttack, setWeight, setWidth, setX, setY, setZ
 
Methods inherited from class zombie.iso.IsoObject
addChild, AttachAnim, AttachExistingAnim, AttachExistingAnim, AttackObject, DirtySlice, DoTooltip, factoryClassFromFileInput, factoryFromFileInput, factoryFromFileInput, getAlpha, getAlphaStep, getAttachedAnimSprite, getCell, getChildSprites, getContainer, getDamage, getDir, getItemContainer, getLastRendered, getLastRenderedRendered, getMaskClickedY, getModData, getName, getOffsetX, getOffsetY, getProperties, getRerouteCollide, getRerouteMask, getRerouteMaskObject, getSprite, getTable, getTargetAlpha, getTextureName, getType, HasTooltip, hasWater, isMaskClicked, isNoPicking, isOutlineOnMouseover, isZombie, RemoveAttachedAnims, replaceItem, reset, Serialize, setAlpha, setAlphaStep, setAttachedAnimSprite, setChildSprites, setContainer, setDamage, setDefaultCondition, 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

baseSpeed

public static float baseSpeed

ZombieDeaths

public static int ZombieDeaths

HurtPlayerTimer

public int HurtPlayerTimer

LastTargetSeenX

public int LastTargetSeenX

LastTargetSeenY

public int LastTargetSeenY

LastTargetSeenZ

public int LastTargetSeenZ

Ghost

public boolean Ghost

LungeTimer

public float LungeTimer

target

public IsoMovingObject target

iIgnoreDirectionChange

public int iIgnoreDirectionChange

TimeSinceSeenFlesh

public int TimeSinceSeenFlesh

FollowCount

public int FollowCount

GhostLife

public float GhostLife

wanderSpeed

public float wanderSpeed

predXVel

public float predXVel

predYVel

public float predYVel

ZombieID

public int ZombieID

bRightie

public boolean bRightie

bDead

public boolean bDead

SpriteName

public java.lang.String SpriteName

vectorToTarget

public Vector2 vectorToTarget

AllowRepathDelay

public float AllowRepathDelay

KeepItReal

public boolean KeepItReal

Deaf

public boolean Deaf

Fast

public static boolean Fast

palette

public int palette

AttackAnimTime

public int AttackAnimTime

AttackAnimTimeMax

public static int AttackAnimTimeMax

spottedLast

public IsoMovingObject spottedLast

walkVariantUse

public java.lang.String walkVariantUse

walkVariant

public java.lang.String walkVariant

bLunger

public boolean bLunger

bRunning

public boolean bRunning

bCrawling

public boolean bCrawling

MoveDelay

public int MoveDelay
Constructor Detail

IsoZombie

public IsoZombie(IsoCell cell)

IsoZombie

public IsoZombie(IsoCell cell,
                 SurvivorDesc desc)

IsoZombie

public IsoZombie(IsoCell cell,
                 int palette)
Method Detail

getObjectName

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

createChecksum

public static byte[] createChecksum(java.lang.String filename)
                             throws java.lang.Exception
Throws:
java.lang.Exception

getMD5Checksum

public static java.lang.String getMD5Checksum(java.lang.String filename)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

DoChecksumCheck

public static boolean DoChecksumCheck(java.lang.String str,
                                      java.lang.String expected)

DoChecksumCheck

public static boolean DoChecksumCheck()

PathTo

public void PathTo(int x,
                   int y,
                   int z,
                   boolean critical)
Overrides:
PathTo in class IsoGameCharacter

PathTo

public void PathTo(int x,
                   int y,
                   int z,
                   boolean critical,
                   int delay)
Overrides:
PathTo in class IsoGameCharacter

load

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

save

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

AttemptAttack

public boolean AttemptAttack()

collideWith

public void collideWith(IsoObject obj)
Overrides:
collideWith in class IsoMovingObject

Hit

public void Hit(HandWeapon weapon,
                IsoGameCharacter wielder,
                float damageSplit,
                boolean bIgnoreDamage,
                float modDelta)
Overrides:
Hit in class IsoGameCharacter

Lunge

public void Lunge()

onMouseLeftClick

public void onMouseLeftClick()

pathFinished

public void pathFinished()
Overrides:
pathFinished in class IsoGameCharacter

render

public void render(float x,
                   float y,
                   float z,
                   ColorInfo col,
                   boolean bDoChild)
Overrides:
render in class IsoGameCharacter

RespondToSound

public void RespondToSound()

spotted

public void spotted(IsoMovingObject other,
                    boolean bForced)
Overrides:
spotted in class IsoMovingObject

preupdate

public void preupdate()
Overrides:
preupdate in class IsoMovingObject

postupdate

public void postupdate()
Overrides:
postupdate in class IsoMovingObject

update

public void update()
Overrides:
update in class IsoGameCharacter

Wander

public void Wander()

FindPath

public Path FindPath(int sx,
                     int sy,
                     int sz,
                     int tx,
                     int ty,
                     int tz)

updateFrameSpeed

public void updateFrameSpeed()

DoZombieSpeeds

public void DoZombieSpeeds()

isFakeDead

public boolean isFakeDead()

setFakeDead

public void setFakeDead(boolean bFakeDead)

isForceFakeDead

public boolean isForceFakeDead()

setForceFakeDead

public void setForceFakeDead(boolean bForceFakeDead)