diff --git a/merde.soil b/merde.soil new file mode 100644 index 0000000..8effb02 --- /dev/null +++ b/merde.soil @@ -0,0 +1,100 @@ +!Bataille := new Jeu + +!j1 := new Joueur +!set j1.nom := 'Alpha' + +!j2 := new Joueur +!set j2.nom := 'Beta' + +!Bataille.nom1 := j1.nom +!Bataille.nom2 := j2.nom + +!j1.plateau_attaque := new Plateau +!j1.plateau_defense := new Plateau +!j2.plateau_attaque := new Plateau +!j2.plateau_defense := new Plateau + +!flotte_j1 := new Flotte +!flotte_j2 := new Flotte + +!j1.flotte := flotte_j1 +!j2.flotte := flotte_j2 + +!j1.flotte.ajouterBateau{bateau1_j1} + +-- ,bateau2_j1,bateau3_j1,bateau4_j1 +-- Bateau Joueur1 +!bateau1_j1 := new Bateau +!bateau1_j1.type := TypeBateau::Torpilleur +!bateau1_j1.longueur := 2 +!bateau1_j1.etat := EtatBateau::Operationnel +!bateau1_j1.x1 := 1 +!bateau1_j1.y1 := 1 +!bateau1_j1.x2 := 2 +!bateau1_j1.y2 := 1 + +!bateau2_j1 := new Bateau +!bateau2_j1.type := TypeBateau::Croiseur +!bateau2_j1.longueur := 4 +!bateau2_j1.etat := EtatBateau::Operationnel +!bateau2_j1.x1 := 3 +!bateau2_j1.y1 := 3 +!bateau2_j1.x2 := 3 +!bateau2_j1.y2 := 6 + +!bateau3_j1 := new Bateau +!bateau3_j1.type := TypeBateau::Contre_Torpilleur +!bateau3_j1.longueur := 3 +!bateau3_j1.etat := EtatBateau::Operationnel +!bateau3_j1.x1 := 6 +!bateau3_j1.y1 := 1 +!bateau3_j1.x2 := 9 +!bateau3_j1.y2 := 1 + +!bateau4_j1 := new Bateau +!bateau4_j1.type := TypeBateau::Porte_Avions +!bateau4_j1.longueur := 5 +!bateau4_j1.etat := EtatBateau::Operationnel +!bateau4_j1.x1 := 5 +!bateau4_j1.y1 := 9 +!bateau4_j1.x2 := 9 +!bateau4_j1.y2 := 9 + +-- Bateau Joueur2 +!bateau1_j2_j1 := new Bateau +!bateau1_j2_j1.type := TypeBateau::Torpilleur +!bateau1_j2_j1.longueur := 2 +!bateau1_j2_j1.etat := EtatBateau::Operationnel +!bateau1_j2_j1.x1 := 2 +!bateau1_j2_j1.y1 := 2 +!bateau1_j2_j1.x2 := 3 +!bateau1_j2_j1.y2 := 2 + +!bateau2_j2 := new Bateau +!bateau2_j2.type := TypeBateau::Croiseur +!bateau2_j2.longueur := 4 +!bateau2_j2.etat := EtatBateau::Operationnel +!bateau2_j2.x1 := 4 +!bateau2_j2.y1 := 4 +!bateau2_j2.x2 := 4 +!bateau2_j2.y2 := 7 + +!bateau3_j2 := new Bateau +!bateau3_j2.type := TypeBateau::Contre_Torpilleur +!bateau3_j2.longueur := 3 +!bateau3_j2.etat := EtatBateau::Operationnel +!bateau3_j2.x1 := 5 +!bateau3_j2.y1 := 1 +!bateau3_j2.x2 := 8 +!bateau3_j2.y2 := 1 + +!bateau4_j2 := new Bateau +!bateau4_j2.type := TypeBateau::Porte_Avions +!bateau4_j2.longueur := 5 +!bateau4_j2.etat := EtatBateau::Operationnel +!bateau4_j2.x1 := 5 +!bateau4_j2.y1 := 6 +!bateau4_j2.x2 := 9 +!bateau4_j2.y2 := 6 + +! \ No newline at end of file diff --git a/projet.use b/projet.use index e126cb7..02bdc3c 100644 --- a/projet.use +++ b/projet.use @@ -193,4 +193,3 @@ association Repartit between Case[2..5] role cases Bateau[0..1] role bateau end - diff --git a/projet_default.clt b/projet_default.clt index d93b649..a3b3fc9 100644 --- a/projet_default.clt +++ b/projet_default.clt @@ -1,5 +1,4 @@ - - + false false @@ -103,36 +102,7 @@ Bateau Repartit - - 0..1 - - 48.0 - 5.0 - Repartit::WayPoint::1 - 8 - 8 - BOTTOM - - false - - - bateau - - -4.0 - -6.0 - Repartit::WayPoint::1 - 8 - 8 - TOP - - false - - + Repartit 0.0 @@ -146,22 +116,7 @@ false - - 2..5 - - 43.0 - 15.0 - Repartit::WayPoint::0 - 8 - 8 - BOTTOM - - false - - + cases 8.0 @@ -173,11 +128,45 @@ false + + 2..5 + + 43.0 + 15.0 + Repartit::WayPoint::0 + 8 + 8 + BOTTOM + + false + + + bateau + + -4.0 + -6.0 + Repartit::WayPoint::1 + 8 + 8 + TOP + + false + + + 0..1 + + 48.0 + 5.0 + Repartit::WayPoint::1 + 8 + 8 + BOTTOM + + false + - + 0 0.0 @@ -187,9 +176,7 @@ 1 false - + 1 0.0 @@ -207,36 +194,7 @@ Plateau Compose - - plateau - - -17.0 - -5.0 - Compose::WayPoint::1 - 8 - 8 - TOP - - false - - - 1 - - 0.0 - 0.0 - Compose::WayPoint::1 - 8 - 8 - BOTTOM - - false - - + Compose 0.0 @@ -250,9 +208,7 @@ false - + 100 2.0 @@ -264,8 +220,7 @@ false - + cases -6.0 @@ -277,11 +232,33 @@ false + + plateau + + -17.0 + -5.0 + Compose::WayPoint::1 + 8 + 8 + TOP + + false + + + 1 + + 0.0 + 0.0 + Compose::WayPoint::1 + 8 + 8 + BOTTOM + + false + - + 0 0.0 @@ -291,9 +268,7 @@ 1 false - + 1 0.0 @@ -311,36 +286,7 @@ Coup Etat - - 1 - - 0.0 - 0.0 - Etat::WayPoint::1 - 8 - 8 - BOTTOM - - false - - - coup - - 46.0 - -14.0 - Etat::WayPoint::1 - 8 - 8 - TOP - - false - - + Etat 0.0 @@ -354,22 +300,7 @@ false - - case - - 20.0 - -26.0 - Etat::WayPoint::0 - 8 - 8 - TOP - - false - - + 1 0.0 @@ -381,10 +312,45 @@ false + + case + + 20.0 + -26.0 + Etat::WayPoint::0 + 8 + 8 + TOP + + false + + + 1 + + 0.0 + 0.0 + Etat::WayPoint::1 + 8 + 8 + BOTTOM + + false + + + coup + + 46.0 + -14.0 + Etat::WayPoint::1 + 8 + 8 + TOP + + false + - + 0 0.0 @@ -394,8 +360,7 @@ 1 false - + 1 0.0 @@ -413,36 +378,7 @@ Flotte Appartient - - 1 - - 30.0 - -6.0 - Appartient::WayPoint::1 - 8 - 8 - BOTTOM - - false - - - flotte - - -3.0 - 15.0 - Appartient::WayPoint::1 - 8 - 8 - TOP - - false - - + Appartient 0.0 @@ -456,22 +392,7 @@ false - - joueur - - 8.0 - 7.0 - Appartient::WayPoint::0 - 8 - 8 - TOP - - false - - + 1 23.0 @@ -483,11 +404,45 @@ false + + joueur + + 8.0 + 7.0 + Appartient::WayPoint::0 + 8 + 8 + TOP + + false + + + flotte + + -3.0 + 15.0 + Appartient::WayPoint::1 + 8 + 8 + TOP + + false + + + 1 + + 30.0 + -6.0 + Appartient::WayPoint::1 + 8 + 8 + BOTTOM + + false + - + 0 0.0 @@ -497,9 +452,7 @@ 1 false - + 1 0.0 @@ -517,36 +470,7 @@ Plateau Utilise - - plateau - - -2.0 - -23.0 - Utilise::WayPoint::1 - 8 - 8 - TOP - - false - - - 1 - - 26.0 - 9.0 - Utilise::WayPoint::1 - 8 - 8 - BOTTOM - - false - - + Utilise 0.0 @@ -560,8 +484,7 @@ false - + joueur 12.0 @@ -573,9 +496,7 @@ false - + 1 14.0 @@ -587,11 +508,33 @@ false + + plateau + + -2.0 + -23.0 + Utilise::WayPoint::1 + 8 + 8 + TOP + + false + + + 1 + + 26.0 + 9.0 + Utilise::WayPoint::1 + 8 + 8 + BOTTOM + + false + - + 0 0.0 @@ -601,9 +544,7 @@ 1 false - + 1 0.0 @@ -621,36 +562,7 @@ Jeu Joue2 - - 1 - - 0.0 - 0.0 - Joue2::WayPoint::1 - 8 - 8 - BOTTOM - - false - - - jeu2 - - -10.0 - 7.0 - Joue2::WayPoint::1 - 8 - 8 - TOP - - false - - + Joue2 0.0 @@ -664,22 +576,7 @@ false - - 1 - - 15.0 - -15.0 - Joue2::WayPoint::0 - 8 - 8 - BOTTOM - - false - - + joueur2 -10.0 @@ -691,10 +588,45 @@ false + + 1 + + 15.0 + -15.0 + Joue2::WayPoint::0 + 8 + 8 + BOTTOM + + false + + + 1 + + 0.0 + 0.0 + Joue2::WayPoint::1 + 8 + 8 + BOTTOM + + false + + + jeu2 + + -10.0 + 7.0 + Joue2::WayPoint::1 + 8 + 8 + TOP + + false + - + 0 0.0 @@ -704,8 +636,7 @@ 1 false - + 1 0.0 @@ -723,36 +654,7 @@ Bateau Appartient2 - - bateaux - - 1.0 - 22.0 - Appartient2::WayPoint::1 - 8 - 8 - TOP - - false - - - 5 - - -7.0 - -17.0 - Appartient2::WayPoint::1 - 8 - 8 - BOTTOM - - false - - + Appartient2 0.0 @@ -766,22 +668,7 @@ false - - flotte - - 9.0 - 30.0 - Appartient2::WayPoint::0 - 8 - 8 - TOP - - false - - + 1 0.0 @@ -793,11 +680,45 @@ false + + flotte + + 9.0 + 30.0 + Appartient2::WayPoint::0 + 8 + 8 + TOP + + false + + + bateaux + + 1.0 + 22.0 + Appartient2::WayPoint::1 + 8 + 8 + TOP + + false + + + 5 + + -7.0 + -17.0 + Appartient2::WayPoint::1 + 8 + 8 + BOTTOM + + false + - + 0 0.0 @@ -807,9 +728,7 @@ 1 false - + 1 0.0 @@ -827,36 +746,7 @@ Jeu Joue1 - - jeu1 - - 35.0 - -17.0 - Joue1::WayPoint::1 - 8 - 8 - TOP - - false - - - 1 - - 20.0 - -35.0 - Joue1::WayPoint::1 - 8 - 8 - BOTTOM - - false - - + Joue1 0.0 @@ -870,22 +760,7 @@ false - - 1 - - 14.0 - -20.0 - Joue1::WayPoint::0 - 8 - 8 - BOTTOM - - false - - + joueur1 6.0 @@ -897,10 +772,45 @@ false + + 1 + + 14.0 + -20.0 + Joue1::WayPoint::0 + 8 + 8 + BOTTOM + + false + + + 1 + + 20.0 + -35.0 + Joue1::WayPoint::1 + 8 + 8 + BOTTOM + + false + + + jeu1 + + 35.0 + -17.0 + Joue1::WayPoint::1 + 8 + 8 + TOP + + false + - + 0 0.0 @@ -910,8 +820,7 @@ 1 false - + 1 0.0 @@ -929,36 +838,7 @@ Coup Tire - - 0..100 - - 0.0 - 0.0 - Tire::WayPoint::1 - 8 - 8 - BOTTOM - - false - - - coups - - -19.0 - -6.0 - Tire::WayPoint::1 - 8 - 8 - TOP - - false - - + Tire 0.0 @@ -972,22 +852,7 @@ false - - joueur - - 47.0 - 9.0 - Tire::WayPoint::0 - 8 - 8 - TOP - - false - - + 1 6.0 @@ -999,10 +864,45 @@ false + + joueur + + 47.0 + 9.0 + Tire::WayPoint::0 + 8 + 8 + TOP + + false + + + coups + + -19.0 + -6.0 + Tire::WayPoint::1 + 8 + 8 + TOP + + false + + + 0..100 + + 0.0 + 0.0 + Tire::WayPoint::1 + 8 + 8 + BOTTOM + + false + - + 0 0.0 @@ -1012,8 +912,7 @@ 1 false - + 1 0.0