Class BaseAction
java.lang.Object
zombie.characters.CharacterTimedActions.BaseAction
- Direct Known Subclasses:
DoBuildAction
,LuaTimedAction
,LuaTimedActionNew
public class BaseAction
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description float
caloriesModifier
IsoGameCharacter
chr
float
CurrentTime
float
delta
boolean
forceComplete
boolean
forceStop
float
LastTime
int
MaxTime
float
PrevLastTime
long
SoundEffect
boolean
StopOnAim
boolean
StopOnRun
boolean
StopOnWalk
boolean
UseProgressBar
-
Constructor Summary
Constructors Constructor Description BaseAction(IsoGameCharacter chr)
-
Method Summary
Modifier and Type Method Description boolean
finished()
void
forceComplete()
void
forceStop()
float
getCurrentTime()
float
getJobDelta()
boolean
hasStalled()
void
perform()
void
PlayLoopedSoundTillComplete(java.lang.String name, int radius, float maxGain)
void
reset()
void
setUseProgressBar(boolean use)
void
start()
void
stop()
void
update()
boolean
valid()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
SoundEffect
public long SoundEffect -
CurrentTime
public float CurrentTime -
LastTime
public float LastTime -
MaxTime
public int MaxTime -
PrevLastTime
public float PrevLastTime -
UseProgressBar
public boolean UseProgressBar -
chr
-
StopOnWalk
public boolean StopOnWalk -
StopOnRun
public boolean StopOnRun -
StopOnAim
public boolean StopOnAim -
caloriesModifier
public float caloriesModifier -
delta
public float delta -
forceStop
public boolean forceStop -
forceComplete
public boolean forceComplete
-
-
Constructor Details
-
BaseAction
-
-
Method Details
-
forceStop
public void forceStop() -
forceComplete
public void forceComplete() -
PlayLoopedSoundTillComplete
public void PlayLoopedSoundTillComplete(java.lang.String name, int radius, float maxGain) -
hasStalled
public boolean hasStalled() -
getJobDelta
public float getJobDelta() -
update
public void update() -
start
public void start() -
reset
public void reset() -
getCurrentTime
public float getCurrentTime() -
stop
public void stop() -
valid
public boolean valid() -
finished
public boolean finished() -
perform
public void perform() -
setUseProgressBar
public void setUseProgressBar(boolean use)
-