public void AddEffect(WeaponEffect weaponEffect) { //Alex Holm N9918205 Weapon_effects.Add(weaponEffect); //Record Current Game on Weapon Effect. Passing THIS into reference weaponEffect.RecordCurrentGame(this); }
/// <summary> /// Adds given weaponEffect to the list/array of WeaponEffects. Adds the weaponEffect to the /// first blank spot in the list/array. /// /// Author John Santias October 2017 /// </summary> /// <param name="weaponEffect">The weapon's effect to be used by the tank</param> public void AddWeaponEffect(WeaponEffect weaponEffect) { WeaponsEffect.Add(weaponEffect); weaponEffect.RecordCurrentGame(this); }
public void AddEffect(WeaponEffect weaponEffect) { // Adding weapon effects weaponEffects.Add(weaponEffect); weaponEffect.RecordCurrentGame(this); }