コード例 #1
0
ファイル: Gameplay.cs プロジェクト: KALVS/CAB201
 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);
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 public void AddEffect(WeaponEffect weaponEffect)
 {
     // Adding weapon effects
     weaponEffects.Add(weaponEffect);
     weaponEffect.RecordCurrentGame(this);
 }