|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProjectileSource
Represents a valid source of a projectile.
Method Summary | ||
---|---|---|
|
launchProjectile(Class<? extends T> projectile)
Launches a Projectile from the ProjectileSource. |
|
|
launchProjectile(Class<? extends T> projectile,
Vector velocity)
Launches a Projectile from the ProjectileSource with an
initial velocity. |
Method Detail |
---|
<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 launch
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |