public interface ProjectileSource
Modifier and Type | Method and Description |
---|---|
<T extends Projectile> |
launchProjectile(Class<? extends T> projectile)
Launches a
Projectile from the ProjectileSource. |
<T extends Projectile> |
launchProjectile(Class<? extends T> projectile,
Vector velocity)
Launches a
Projectile from the ProjectileSource with an
initial velocity. |
<T extends Projectile> T launchProjectile(Class<? extends T> projectile)
Projectile
from the ProjectileSource.T
- a projectile subclassprojectile
- class of the projectile to launch<T extends Projectile> T launchProjectile(Class<? extends T> projectile, Vector velocity)
Projectile
from the ProjectileSource with an
initial velocity.T
- a projectile subclassprojectile
- class of the projectile to launchvelocity
- the velocity with which to launchCopyright © 2022. All rights reserved.