Package com.prineside.tdi2.projectiles
Class VenomProjectile
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Projectile
com.prineside.tdi2.EnemyFollowingProjectile
com.prineside.tdi2.projectiles.VenomProjectile
- 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, speed, startFields inherited from class com.prineside.tdi2.Projectile
affectedByAbility, id, position, RAYCAST_INTERVAL_MAX, RAYCAST_INTERVAL_MIN, typeFields inherited from class com.prineside.tdi2.Registrable
S -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(com.badlogic.gdx.graphics.g2d.Batch batch, float delta) voidhit()Вызывается, когда снаряд долетел до целиvoidmultiplyDamage(float mul, Ability byAbility) voidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) voidreset()Resets the object for reuse.voidsetup(VenomTower tower, Enemy target, PoisonBuff poisonBuff, com.badlogic.gdx.math.Vector2 start, float speed) voidupdate(float deltaTime) voidwrite(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, setUnregisteredMethods inherited from class com.prineside.tdi2.Projectile
setupMethods 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:
writein interfacecom.esotericsoftware.kryo.KryoSerializable- Overrides:
writein classEnemyFollowingProjectile
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
readin interfacecom.esotericsoftware.kryo.KryoSerializable- Overrides:
readin classEnemyFollowingProjectile
-
setup
public void setup(VenomTower tower, Enemy target, PoisonBuff poisonBuff, com.badlogic.gdx.math.Vector2 start, float speed) -
multiplyDamage
- Overrides:
multiplyDamagein classProjectile
-
reset
public void reset()Description copied from interface:com.badlogic.gdx.utils.Pool.PoolableResets the object for reuse. Object references should be nulled and fields may be set to default values.- Specified by:
resetin interfacecom.badlogic.gdx.utils.Pool.Poolable- Overrides:
resetin classEnemyFollowingProjectile
-
update
public void update(float deltaTime) - Overrides:
updatein classEnemyFollowingProjectile
-
hit
public void hit()Description copied from class:ProjectileВызывается, когда снаряд долетел до цели- Overrides:
hitin classProjectile
-
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float delta) - Specified by:
drawin classProjectile
-