/// <summary> /// Constructeur de base /// </summary> /// <param name="inInfinite">Si vrai, passe de 0 a width, /// si faux, passe de 0 a -1 </param> public MovingObject(Boolean inInfinite = true)//GameManager.GameManager pGMng) { IsAlive = true; Position = new Vector2(0, 0); Speed = new Vector2(0, 0); Acceleration = new Vector2(0, 0); RotationInDegrees = 0; Sprite = SpriteManager.DefaultSprite; _shield = new Defense.NoShield(this); _lstToAdd = new List <MovingObject>(); _moove = new Moving.MovingBase(this); }
//GameManager.GameManager pGMng) /// <summary> /// Constructeur de base /// </summary> /// <param name="inInfinite">Si vrai, passe de 0 a width, /// si faux, passe de 0 a -1 </param> public MovingObject(Boolean inInfinite = true) { IsAlive = true; Position = new Vector2(0, 0); Speed = new Vector2(0,0); Acceleration = new Vector2(0,0); RotationInDegrees = 0; Sprite = SpriteManager.DefaultSprite; _shield = new Defense.NoShield(this); _lstToAdd = new List<MovingObject>(); _moove = new Moving.MovingBase(this); }