public Flotte(Flotte uneFlotte) { BattleShip = uneFlotte.BattleShip; Destroyeur = uneFlotte.Destroyeur; Submarine = uneFlotte.Submarine; Aircraft = uneFlotte.Aircraft; Patrol = uneFlotte.Patrol; unType = uneFlotte.unType; }
public Flotte(Position[] a_BattleShip, Position[] a_Destroyeur, Position[] a_Submarine, Position[] a_Aircraft, Position[] a_Patrol, TypeFlotte leType) { BattleShip = new Bateau(TypeBateau.BattleShip, 5, false, 0, a_BattleShip); Destroyeur = new Bateau(TypeBateau.Destroyer, 4, false, 0, a_Destroyeur); Submarine = new Bateau(TypeBateau.Submarine, 3, false, 0, a_Submarine); Aircraft = new Bateau(TypeBateau.AircraftCarrier, 3, false, 0, a_Aircraft); Patrol = new Bateau(TypeBateau.PatrolBoat, 2, false, 0, a_Patrol); unType = leType; }