Package com.prineside.tdi2.projectiles
Class MissileProjectile
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Projectile
com.prineside.tdi2.EnemyFollowingProjectile
com.prineside.tdi2.EnemyFollowingExplosiveProjectile
com.prineside.tdi2.projectiles.MissileProjectile
- All Implemented Interfaces:
Pool.Poolable,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, speedFields inherited from class com.prineside.tdi2.Projectile
id, position, RAYCAST_INTERVAL_MIN, typeFields inherited from class com.prineside.tdi2.Registrable
S -
Method Summary
Modifier and TypeMethodDescriptionvoidgetTower()voidvoidreset()Resets the object for reuse.voidvoidvoidsetup(MissileTower tower, Enemy target, float damage, float explosionRangeInTiles, Vector2 start, float speed, float maxRotationSpeed, float startingAngle, float scale) voidupdate(float deltaTime) voidMethods inherited from class com.prineside.tdi2.EnemyFollowingExplosiveProjectile
hit, multiplyDamage, setup, setupMethods inherited from class com.prineside.tdi2.EnemyFollowingProjectile
applyDrawInterpolation, flyOnEnemy, getPosition, getTarget, hasReachedTarget, isDone, toStringMethods inherited from class com.prineside.tdi2.Projectile
getDamage, onDone, setDamage, setupMethods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered
-
Method Details
-
write
- Specified by:
writein interfaceKryoSerializable- Overrides:
writein classEnemyFollowingExplosiveProjectile
-
read
- Specified by:
readin interfaceKryoSerializable- Overrides:
readin classEnemyFollowingExplosiveProjectile
-
setup
public void setup(MissileTower tower, Enemy target, float damage, float explosionRangeInTiles, Vector2 start, float speed, float maxRotationSpeed, float startingAngle, float scale) -
setUnregistered
public void setUnregistered()- Overrides:
setUnregisteredin classEnemyFollowingExplosiveProjectile
-
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 interfacePool.Poolable- Overrides:
resetin classEnemyFollowingExplosiveProjectile
-
getTower
-
setTarget
- Overrides:
setTargetin classEnemyFollowingProjectile
-
update
public void update(float deltaTime) - Overrides:
updatein classEnemyFollowingProjectile
-
draw
- Specified by:
drawin classProjectile
-