Package com.prineside.tdi2
Class EnemyFollowingExplosiveProjectile
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Projectile
com.prineside.tdi2.EnemyFollowingProjectile
com.prineside.tdi2.EnemyFollowingExplosiveProjectile
- All Implemented Interfaces:
Pool.Poolable
,KryoSerializable
- Direct Known Subclasses:
CannonProjectile
,MissileProjectile
-
Nested Class Summary
Nested 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, RAYCAST_INTERVAL_FOLLOWING_MIN, RAYCAST_INTERVAL_FOLLOWING_MIN_SQR, speed
Fields inherited from class com.prineside.tdi2.Projectile
id, position, type
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Method Summary
Modifier and TypeMethodDescriptionvoid
hit()
Called when the projectile has reached its targetvoid
multiplyDamage
(float mul) void
void
reset()
Resets the object for reuse.void
Remove the reference to the game state and mark this object as not registered.void
Deprecated.void
setup
(Vector2 start, Enemy target, float startingAngle, float speed, float maxRotationSpeed, float maxRotationSpeedDynamic) Deprecated.void
Methods inherited from class com.prineside.tdi2.EnemyFollowingProjectile
applyDrawInterpolation, draw, flyOnEnemy, getPosition, getTarget, getTimeExists, hasReachedTarget, isDone, setTarget, toString, update
Methods inherited from class com.prineside.tdi2.Projectile
getDamage, onDone, setDamage, setup
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered
-
Method Details
-
write
- Specified by:
write
in interfaceKryoSerializable
- Overrides:
write
in classEnemyFollowingProjectile
-
read
- Specified by:
read
in interfaceKryoSerializable
- Overrides:
read
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 interfacePool.Poolable
- Overrides:
reset
in classEnemyFollowingProjectile
-
setUnregistered
public void setUnregistered()Description copied from class:Registrable
Remove the reference to the game state and mark this object as not registered.- Overrides:
setUnregistered
in classEnemyFollowingProjectile
-
multiplyDamage
public void multiplyDamage(float mul) - Overrides:
multiplyDamage
in classProjectile
-
setup
Deprecated. -
setup
@Deprecated public void setup(Vector2 start, Enemy target, float startingAngle, float speed, float maxRotationSpeed, float maxRotationSpeedDynamic) Deprecated. -
hit
public void hit()Description copied from class:Projectile
Called when the projectile has reached its target- Overrides:
hit
in classProjectile
-