public void Utilise(List <Vaisseau> aSpaceShipList) { Random randomPosition = new Random(); int hazardousIndexA = randomPosition.Next(0, aSpaceShipList.Count); int hazardousIndexB = randomPosition.Next(0, aSpaceShipList.Count); Vaisseau tmp = aSpaceShipList[hazardousIndexA]; aSpaceShipList[hazardousIndexA] = aSpaceShipList[hazardousIndexB]; aSpaceShipList[hazardousIndexB] = aSpaceShipList[hazardousIndexA]; }
public abstract void Attaque(Vaisseau targetedSpaceShip);
public override void Attaque(Vaisseau targetedSpaceShip) { targetedSpaceShip.getShoot(this.GetWeapon().Shoting()); }
public override void Attaque(Vaisseau targetedSpaceShip) { targetedSpaceShip.getShoot(10); }
public override void Attaque(Vaisseau targetedSpaceShip) { }