public interface ProjectileSource
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends Projectile> |
launchProjectile(java.lang.Class<? extends T> projectile)
让ProjectileSource发射一个
Projectile。 |
<T extends Projectile> |
launchProjectile(java.lang.Class<? extends T> projectile,
Vector velocity)
让ProjectileSource以一个初始速度向量发射
Projectile。 |
<T extends Projectile> T launchProjectile(java.lang.Class<? extends T> projectile)
Projectile。
原文:Launches a Projectile from the ProjectileSource.
projectile - 要让ProjectileSource发射的抛射物类型<T extends Projectile> T launchProjectile(java.lang.Class<? extends T> projectile, Vector velocity)
Projectile。
原文:Launches a Projectile from the ProjectileSource with an
initial velocity.
projectile - 要让ProjectileSource发射的抛射物类型velocity - 抛射物的速度向量