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.projectile
- 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.projectile
- class of the projectile to launchvelocity
- the velocity with which to launchCopyright © 2014. All rights reserved.