Example #1
0
        public void Fire(string projectileName, Vector3 origin, EnemyInstance target, float fireTime)
        {
            ProjectileInstance projectile = new ProjectileInstance(ProjectileReader(projectileName), origin, target, fireTime, LevelDesc);

            Utilities.Assert(target.HealthRemaining > 0.0F);
            ProjectilesInFlight.Add(projectile);
        }
Example #2
0
 public void DestroyAll()
 {
     for (int i = ProjectilesInFlight.Count; i > 0; i--)
     {
         ProjectileInstance p = ProjectilesInFlight[i - 1];
         p.Destroy();
         ProjectilesInFlight.Remove(p);
     }
 }
Example #3
0
        public void Fire(string projectileName, Vector3 origin, Vector3 direction, float distance, float fireTime)
        {
            ProjectileInstance projectile = new ProjectileInstance(ProjectileReader(projectileName), origin, direction, distance, fireTime, LevelDesc);

            ProjectilesInFlight.Add(projectile);
        }