Exemplo n.º 1
0
        /// <summary>
        /// Fire a (or more) bomb, secondary weapon
        /// </summary>
        /// <returns></returns>
        public List <Shot> DropBomb()
        {
            bomb.Flip = this.flips;
            List <Shot> shots = bomb.Fire(Player.GetGunLocationForPlayer(this));

            bomb.Owner = this;

            SetRumble(bomb.Rumble);

            return(shots);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Fire some shots with primary weapon.
        /// Tricky method : return n Tir object, depending on the Weapon.shotNumber
        /// </summary>
        /// <param name="freeSlots"></param>
        /// <returns></returns>
        public List <Shot> Fire()
        {
            wpn.Flip = this.flips;
            List <Shot> shots = wpn.Fire(Player.GetGunLocationForPlayer(this));

            wpn.Owner = this;

            SetRumble(wpn.Rumble);

            return(shots);
        }