Package com.prineside.tdi2.projectiles
Class CannonProjectile
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Projectile
com.prineside.tdi2.EnemyFollowingProjectile
com.prineside.tdi2.EnemyFollowingExplosiveProjectile
com.prineside.tdi2.projectiles.CannonProjectile
- 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
Methods inherited from class com.prineside.tdi2.EnemyFollowingExplosiveProjectile
hit, multiplyDamage, setup, setupMethods inherited from class com.prineside.tdi2.EnemyFollowingProjectile
applyDrawInterpolation, flyOnEnemy, getPosition, getTarget, hasReachedTarget, isDone, setTarget, toString, updateMethods 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
-
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
-
draw
- Specified by:
drawin classProjectile
-