public Client(Vector2 location, Vector2 location_produit) : base(null, location, Rectangle.Empty, Vector2.One) { int randomNumberFromGod = Application.Random.GetRandomInt(156475); if (randomNumberFromGod % 2 == 1) { IsWoman = true; } body = new ClientBody(this); head = new ClientHead(this); // Produits du client m_items = new Queue <ItemBase>(); Vector2 delta = new Vector2(0, 0); for (int i = 0; i < Application.Random.GetRandomInt(10) + 1; i++) { var item = ItemBase.GetRandomItem(); item.Location = location_produit + delta; m_items.Enqueue(item); delta += new Vector2(90, 0); } }
public Client(Vector2 location,Vector2 location_produit) : base(null, location, Rectangle.Empty, Vector2.One) { int randomNumberFromGod = Application.Random.GetRandomInt(156475); if (randomNumberFromGod % 2 == 1) IsWoman = true; body = new ClientBody(this); head = new ClientHead(this); // Produits du client m_items = new Queue<ItemBase>(); Vector2 delta = new Vector2(0, 0); for (int i = 0; i < Application.Random.GetRandomInt(10) + 1; i++) { var item = ItemBase.GetRandomItem(); item.Location = location_produit+delta; m_items.Enqueue(item); delta += new Vector2(90, 0); } }