Package com.prineside.tdi2.projectiles
Class BuffProjectile
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Projectile
com.prineside.tdi2.EnemyFollowingProjectile
com.prineside.tdi2.projectiles.BuffProjectile
- All Implemented Interfaces:
com.badlogic.gdx.utils.Pool.Poolable
,com.esotericsoftware.kryo.KryoSerializable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.prineside.tdi2.Projectile
Projectile.Factory<T extends Projectile>
-
Field Summary
FieldsFields inherited from class com.prineside.tdi2.EnemyFollowingProjectile
DEFAULT_MAX_ROT_SPEED, DEFAULT_MAX_ROT_SPEED_DYNAMIC, drawAngle, drawPosition, maxRotationSpeed, maxRotationSpeedDynamic, speed, start
Fields inherited from class com.prineside.tdi2.Projectile
id, position, RAYCAST_INTERVAL_MIN, type
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(com.badlogic.gdx.graphics.g2d.Batch batch, float delta) void
hit()
Вызывается, когда снаряд долетел до целиvoid
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) void
reset()
Resets the object for reuse.void
void
setup
(Enemy target, com.badlogic.gdx.utils.Array<Buff> buffs, com.badlogic.gdx.math.Vector2 start, float speed) void
write
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class com.prineside.tdi2.EnemyFollowingProjectile
applyDrawInterpolation, flyOnEnemy, getPosition, getTarget, hasReachedTarget, isDone, setTarget, toString, update
Methods inherited from class com.prineside.tdi2.Projectile
getDamage, multiplyDamage, onDone, setDamage, setup
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered
-
Field Details
-
buffs
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
write
in interfacecom.esotericsoftware.kryo.KryoSerializable
- Overrides:
write
in classEnemyFollowingProjectile
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
read
in interfacecom.esotericsoftware.kryo.KryoSerializable
- Overrides:
read
in classEnemyFollowingProjectile
-
setup
public void setup(Enemy target, com.badlogic.gdx.utils.Array<Buff> buffs, com.badlogic.gdx.math.Vector2 start, float speed) - Parameters:
buffs
- can use its projectile's buffs field
-
reset
public void reset()Description copied from interface:com.badlogic.gdx.utils.Pool.Poolable
Resets the object for reuse. Object references should be nulled and fields may be set to default values.- Specified by:
reset
in interfacecom.badlogic.gdx.utils.Pool.Poolable
- Overrides:
reset
in classEnemyFollowingProjectile
-
setUnregistered
public void setUnregistered()- Overrides:
setUnregistered
in classEnemyFollowingProjectile
-
hit
public void hit()Description copied from class:Projectile
Вызывается, когда снаряд долетел до цели- Overrides:
hit
in classProjectile
-
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float delta) - Specified by:
draw
in classProjectile
-