/// <summary> /// This checks if any of the laser shots have collided with an enemy. /// </summary> /// <param name="w">Is a single instance of a laser shot</param> /// <param name="e">Is a single instance of an enemy</param> /// <returns>True if the two object collide.</returns> public bool WeaponHitEnemy(WeaponInstance w, IEnemy e) { return(SwinGame.BitmapCollision(w.Type, w.X, w.Y, e.Type, e.X, e.Y)); }
/// <summary> /// Removes the laser from the list if a collision has occured. /// </summary> /// <param name="bullet"></param> public void RemoveLaserCollision(WeaponInstance bullet) { _weaponList.Remove(bullet); }