Package com.prineside.tdi2.projectiles
Class AirProjectile
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Projectile
com.prineside.tdi2.EnemyFollowingProjectile
com.prineside.tdi2.projectiles.AirProjectile
- 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
Fields inherited from class com.prineside.tdi2.EnemyFollowingProjectile
DEFAULT_MAX_ROT_SPEED, DEFAULT_MAX_ROT_SPEED_DYNAMIC, drawAngle, drawPosition, maxRotationSpeed, maxRotationSpeedDynamic, reachedTarget, speed, start
Fields inherited from class com.prineside.tdi2.Projectile
damage, 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) float
float
float
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
(AirTower tower, Enemy target, float damage, com.badlogic.gdx.math.Vector2 start, float speed, float burnChance, float burnDamage, float burningTime) void
write
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class com.prineside.tdi2.EnemyFollowingProjectile
applyDrawInterpolation, flyOnEnemy, getAngle, getPosition, getTarget, hasReachedTarget, isDone, setTarget, setup, setup, 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
-
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
-
getBurnChance
public float getBurnChance() -
getBurningTime
public float getBurningTime() -
getBurnDamage
public float getBurnDamage() -
setUnregistered
public void setUnregistered()- Overrides:
setUnregistered
in classEnemyFollowingProjectile
-
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
-
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
-