Exemple #1
0
        //pGMng)
        /// <summary>
        /// Constructeur de base 
        /// </summary>
        public Ship()
            : base()
        {
            _lstWeapons = new List<Weapons.Weapon>() { new Weapons.Weapon(this)};
            _activeWeapon = LstWeapons.First();
            //_weapon = new Weapons.Weapon( this);
            _moove = new Moving.MovingDirect(this);
            Shield = new Defense.DefenseBase(this);
            _value = TypeScore.Hit;

            _moove.Friction = 0.01f;
            _rotation = -90;
            changeAngleAccel();
            Sprite = SpriteManager.ShipMainSprite;
            _scale = SpriteManager.scaleRateShip;
            _origin.X = _sprite.Width  / 2;
            _origin.Y = _sprite.Height  / 2;
            MAX_SPEED = 12;
        }
Exemple #2
0
        /// <summary>
        /// Constructeur de base
        /// </summary>
        public Ship()
            : base()//pGMng)
        {
            _lstWeapons = new List <Weapons.Weapon>()
            {
                new Weapons.Weapon(this)
            };
            _activeWeapon = LstWeapons.First();
            //_weapon = new Weapons.Weapon( this);
            _moove = new Moving.MovingDirect(this);
            Shield = new Defense.DefenseBase(this);
            _value = TypeScore.Hit;

            _moove.Friction = 0.01f;
            _rotation       = -90;
            changeAngleAccel();
            Sprite    = SpriteManager.ShipMainSprite;
            _scale    = SpriteManager.scaleRateShip;
            _origin.X = _sprite.Width / 2;
            _origin.Y = _sprite.Height / 2;
            MAX_SPEED = 12;
        }