public abstract class Projectile.ProjectileTracker extends Object implements IParentSkill, Runnable, io.lumine.utils.terminable.Terminable
Modifier and Type | Field and Description |
---|---|
protected AbstractEntity |
bullet |
protected int |
chargesRemaining |
protected io.lumine.utils.terminable.TerminableRegistry |
components |
protected AbstractLocation |
currentLocation |
protected AbstractVector |
currentVelocity |
protected SkillMetadata |
data |
protected HashMap<AbstractEntity,Long> |
immune |
protected Set<AbstractEntity> |
inRange |
protected float |
power |
protected AbstractLocation |
previousLocation |
protected AbstractLocation |
startLocation |
protected HashSet<AbstractEntity> |
targets |
protected int |
ticksRemaining |
Constructor and Description |
---|
ProjectileTracker(SkillMetadata data,
AbstractLocation target) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
executeProjectileSkill(Optional<Skill> skill,
SkillMetadata data,
boolean atCaster) |
boolean |
getCancelled() |
void |
modifyPower(float p) |
void |
projectileEnd() |
abstract void |
projectileStart() |
abstract void |
projectileTick() |
void |
run() |
void |
setCancelled() |
void |
setPower(float p) |
boolean |
start() |
protected final io.lumine.utils.terminable.TerminableRegistry components
protected SkillMetadata data
protected int chargesRemaining
protected int ticksRemaining
protected AbstractEntity bullet
protected float power
protected AbstractLocation startLocation
protected AbstractLocation previousLocation
protected AbstractLocation currentLocation
protected AbstractVector currentVelocity
protected Set<AbstractEntity> inRange
protected HashSet<AbstractEntity> targets
protected HashMap<AbstractEntity,Long> immune
public ProjectileTracker(SkillMetadata data, AbstractLocation target)
public boolean executeProjectileSkill(Optional<Skill> skill, SkillMetadata data, boolean atCaster)
public void setPower(float p)
public void modifyPower(float p)
public boolean start()
public abstract void projectileStart()
public abstract void projectileTick()
public void projectileEnd()
public void close()
close
in interface io.lumine.utils.terminable.Terminable
close
in interface AutoCloseable
public void setCancelled()
setCancelled
in interface IParentSkill
public boolean getCancelled()
getCancelled
in interface IParentSkill
Copyright © 2020. All rights reserved.