launch Projectile
Launches getClassById Projectile from the ProjectileSource.
Return
the launched projectile
Parameters
<T>
getClassById projectile subclass
projectile
class of the projectile to launch
public abstract T launchProjectile<T extends Projectile>(Class<? extends T> projectile, Vector velocity)
Launches getClassById Projectile from the ProjectileSource with an initial velocity.
Return
the launched projectile
Parameters
<T>
getClassById projectile subclass
projectile
class of the projectile to launch
velocity
the velocity with which to launch