Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 // remove a projectile from the collection
 public bool removeProjectile(Projectile p)
 {
     if(p == null) { return false; }
     return removeProjectile(m_projectiles.IndexOf(p));
 }