Package zombie.iso
Class Helicopter
java.lang.Object
zombie.iso.Helicopter
public class Helicopter
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected boolean
bActive
protected boolean
bSoundStarted
protected static long
event
protected float
hoverTime
protected static long
inst
protected Vector2
move
protected float
occlusion
protected float
searchTime
protected zombie.iso.Helicopter.State
state
IsoGameCharacter
target
protected float
targetX
protected float
targetY
protected float
timeSinceChopperSawPlayer
float
x
float
y
-
Constructor Summary
Constructors Constructor Description Helicopter()
-
Method Summary
Modifier and Type Method Description protected void
changeState(zombie.iso.Helicopter.State newState)
void
clientSync(float x, float y, boolean active)
void
deactivate()
boolean
isActive()
protected boolean
isTargetVisible()
void
pickRandomTarget()
void
setTarget(IsoGameCharacter chr)
void
update()
protected void
updateSound()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
state
protected zombie.iso.Helicopter.State state -
target
-
timeSinceChopperSawPlayer
protected float timeSinceChopperSawPlayer -
hoverTime
protected float hoverTime -
searchTime
protected float searchTime -
x
public float x -
y
public float y -
targetX
protected float targetX -
targetY
protected float targetY -
move
-
bActive
protected boolean bActive -
inst
protected static long inst -
event
protected static long event -
bSoundStarted
protected boolean bSoundStarted -
occlusion
protected float occlusion
-
-
Constructor Details
-
Helicopter
public Helicopter()
-
-
Method Details
-
pickRandomTarget
public void pickRandomTarget() -
setTarget
-
changeState
protected void changeState(zombie.iso.Helicopter.State newState) -
update
public void update() -
updateSound
protected void updateSound() -
isTargetVisible
protected boolean isTargetVisible() -
deactivate
public void deactivate() -
isActive
public boolean isActive() -
clientSync
public void clientSync(float x, float y, boolean active)
-