Beispiel #1
0
 private static Rectangle CalculateFutureDrawArea(Projectile projectile, float deltaT)
 {
     return
         new Rectangle(
             projectile.DrawArea.TopLeft + projectile.Get<SimplePhysics.Data>().Velocity * deltaT,
             projectile.DrawArea.Size);
 }
Beispiel #2
0
 // remove a projectile from the collection
 public bool removeProjectile(Projectile p)
 {
     if(p == null) { return false; }
     return removeProjectile(m_projectiles.IndexOf(p));
 }