From 625f1e7932748bc67df721b0a49fb47e91c14360 Mon Sep 17 00:00:00 2001 From: vSpaike <153102900+vSpaike@users.noreply.github.com> Date: Mon, 25 Nov 2024 15:46:04 +0100 Subject: [PATCH] Satani dagani --- projet.use | 44 +++ projet_default.clt | 900 ++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 936 insertions(+), 8 deletions(-) diff --git a/projet.use b/projet.use index b83a9d2..8b6bf6b 100644 --- a/projet.use +++ b/projet.use @@ -71,3 +71,47 @@ attributes Etat: EtatBateau end +association Utilise between +Joueur[1] role joueur +Plateau[1] role plateau +end + +composition Joue1 between +Joueur[1] role joueur1 +Jeu[1] role jeu2 +end + +composition Joue2 between +Joueur[1] role joueur2 +Jeu[1] role jeu1 +end + +association Tire between +Joueur[*] role joueur +Coup[1] role coups +end + +association Appartient between +Joueur[1] role joueur +Flotte[1] role flotte +end + +composition Appartient2 between +Flotte[1] role flotte +Bateau[*] role bateaux +end + +composition Compose between +Plateau[1] role plateau +Case[100] role cases +end + +association Etat between +Case[1] role case +Coup[1] role coup +end + +association Repartit between +Case[0..1] role cases +Bateau[2..5] role bateau +end \ No newline at end of file diff --git a/projet_default.clt b/projet_default.clt index 0053bca..b3eb075 100644 --- a/projet_default.clt +++ b/projet_default.clt @@ -9,36 +9,920 @@ true false + + Plateau + + 566.0 + 36.0 + + false + + + Flotte + + 379.0 + 420.0 + + false + + + Coup + + 528.0 + 282.0 + + false + + + Bateau + + 709.0 + 396.0 + + false + + + Jeu + + 155.0 + 242.0 + + false + + + Joueur + + 316.0 + 205.0 + + false + + + Case + + 734.0 + 166.0 + + false + TypeCoup - 600.0 - 303.0 + 876.0 + 311.0 false TypeCase - 598.0 - 68.0 + 874.0 + 76.0 false EtatBateau - 599.0 - 403.0 + 875.0 + 411.0 false TypeBateau - 601.0 - 184.0 + 877.0 + 192.0 false + + Case + Bateau + Repartit + + + Repartit + + 0.0 + 0.0 + 0.0 + -10.0 + + Repartit::WayPoint::0 + Repartit::WayPoint::1 + + + false + + + cases + + 0.0 + 0.0 + Repartit::WayPoint::0 + 8 + 8 + TOP + + false + + + 0..1 + + 0.0 + 0.0 + Repartit::WayPoint::0 + 8 + 8 + BOTTOM + + false + + + 2..5 + + 0.0 + 0.0 + Repartit::WayPoint::1 + 8 + 8 + BOTTOM + + false + + + bateau + + 0.0 + 0.0 + Repartit::WayPoint::1 + 8 + 8 + TOP + + false + + + + + 0 + + 0.0 + 0.0 + + 0 + 1 + false + + + 1 + + 0.0 + 0.0 + + 1 + 2 + false + + + false + + + Plateau + Case + Compose + + + Compose + + 0.0 + 0.0 + 0.0 + -10.0 + + Compose::WayPoint::0 + Compose::WayPoint::1 + + + false + + + plateau + + 0.0 + 0.0 + Compose::WayPoint::0 + 8 + 8 + TOP + + false + + + 1 + + 0.0 + 0.0 + Compose::WayPoint::0 + 8 + 8 + BOTTOM + + false + + + cases + + 0.0 + 0.0 + Compose::WayPoint::1 + 8 + 8 + TOP + + false + + + 100 + + 0.0 + 0.0 + Compose::WayPoint::1 + 8 + 8 + BOTTOM + + false + + + + + 0 + + 0.0 + 0.0 + + 0 + 1 + false + + + 1 + + 0.0 + 0.0 + + 1 + 2 + false + + + false + + + Case + Coup + Etat + + + Etat + + 0.0 + 0.0 + 0.0 + -10.0 + + Etat::WayPoint::0 + Etat::WayPoint::1 + + + false + + + case + + 0.0 + 0.0 + Etat::WayPoint::0 + 8 + 8 + TOP + + false + + + 1 + + 0.0 + 0.0 + Etat::WayPoint::0 + 8 + 8 + BOTTOM + + false + + + coup + + 0.0 + 0.0 + Etat::WayPoint::1 + 8 + 8 + TOP + + false + + + 1 + + 0.0 + 0.0 + Etat::WayPoint::1 + 8 + 8 + BOTTOM + + false + + + + + 0 + + 0.0 + 0.0 + + 0 + 1 + false + + + 1 + + 0.0 + 0.0 + + 1 + 2 + false + + + false + + + Joueur + Flotte + Appartient + + + Appartient + + 0.0 + 0.0 + 0.0 + -10.0 + + Appartient::WayPoint::0 + Appartient::WayPoint::1 + + + false + + + joueur + + 0.0 + 0.0 + Appartient::WayPoint::0 + 8 + 8 + TOP + + false + + + 1 + + 0.0 + 0.0 + Appartient::WayPoint::0 + 8 + 8 + BOTTOM + + false + + + 1 + + 0.0 + 0.0 + Appartient::WayPoint::1 + 8 + 8 + BOTTOM + + false + + + flotte + + 105.0 + 0.0 + Appartient::WayPoint::1 + 8 + 8 + TOP + + false + + + + + 0 + + 0.0 + 0.0 + + 0 + 1 + false + + + 1 + + 0.0 + 0.0 + + 1 + 2 + false + + + false + + + Joueur + Plateau + Utilise + + + Utilise + + 0.0 + 0.0 + 0.0 + -10.0 + + Utilise::WayPoint::0 + Utilise::WayPoint::1 + + + false + + + joueur + + 0.0 + 0.0 + Utilise::WayPoint::0 + 8 + 8 + TOP + + false + + + 1 + + 0.0 + 0.0 + Utilise::WayPoint::0 + 8 + 8 + BOTTOM + + false + + + plateau + + 0.0 + 0.0 + Utilise::WayPoint::1 + 8 + 8 + TOP + + false + + + 1 + + 0.0 + 0.0 + Utilise::WayPoint::1 + 8 + 8 + BOTTOM + + false + + + + + 0 + + 0.0 + 0.0 + + 0 + 1 + false + + + 1 + + 0.0 + 0.0 + + 1 + 2 + false + + + false + + + Joueur + Jeu + Joue2 + + + Joue2 + + 0.0 + 0.0 + 0.0 + -10.0 + + Joue2::WayPoint::0 + Joue2::WayPoint::1 + + + false + + + joueur2 + + 0.0 + 0.0 + Joue2::WayPoint::0 + 8 + 8 + TOP + + false + + + 1 + + 0.0 + 0.0 + Joue2::WayPoint::0 + 8 + 8 + BOTTOM + + false + + + 1 + + 0.0 + 0.0 + Joue2::WayPoint::1 + 8 + 8 + BOTTOM + + false + + + jeu1 + + 0.0 + 0.0 + Joue2::WayPoint::1 + 8 + 8 + TOP + + false + + + + + 0 + + 0.0 + 0.0 + + 0 + 1 + false + + + 1 + + 0.0 + 0.0 + + 1 + 2 + false + + + false + + + Flotte + Bateau + Appartient2 + + + Appartient2 + + 0.0 + 0.0 + 0.0 + -10.0 + + Appartient2::WayPoint::0 + Appartient2::WayPoint::1 + + + false + + + 1 + + 0.0 + 0.0 + Appartient2::WayPoint::0 + 8 + 8 + BOTTOM + + false + + + flotte + + 0.0 + 0.0 + Appartient2::WayPoint::0 + 8 + 8 + TOP + + false + + + * + + 0.0 + 0.0 + Appartient2::WayPoint::1 + 8 + 8 + BOTTOM + + false + + + bateaux + + 0.0 + 0.0 + Appartient2::WayPoint::1 + 8 + 8 + TOP + + false + + + + + 0 + + 0.0 + 0.0 + + 0 + 1 + false + + + 1 + + 0.0 + 0.0 + + 1 + 2 + false + + + false + + + Joueur + Jeu + Joue1 + + + Joue1 + + 0.0 + 0.0 + 0.0 + -10.0 + + Joue1::WayPoint::0 + Joue1::WayPoint::1 + + + false + + + joueur1 + + 0.0 + 0.0 + Joue1::WayPoint::0 + 8 + 8 + TOP + + false + + + 1 + + 0.0 + 0.0 + Joue1::WayPoint::0 + 8 + 8 + BOTTOM + + false + + + jeu2 + + 82.0 + 37.0 + Joue1::WayPoint::1 + 8 + 8 + TOP + + false + + + 1 + + 0.0 + 0.0 + Joue1::WayPoint::1 + 8 + 8 + BOTTOM + + false + + + + + 0 + + 0.0 + 0.0 + + 0 + 1 + false + + + 1 + + 0.0 + 0.0 + + 1 + 2 + false + + + false + + + Joueur + Coup + Tire + + + Tire + + 0.0 + 0.0 + 0.0 + -10.0 + + Tire::WayPoint::0 + Tire::WayPoint::1 + + + false + + + * + + 0.0 + 0.0 + Tire::WayPoint::0 + 8 + 8 + BOTTOM + + false + + + joueur + + 0.0 + 0.0 + Tire::WayPoint::0 + 8 + 8 + TOP + + false + + + 1 + + 0.0 + 0.0 + Tire::WayPoint::1 + 8 + 8 + BOTTOM + + false + + + coups + + 0.0 + 0.0 + Tire::WayPoint::1 + 8 + 8 + TOP + + false + + + + + 0 + + 0.0 + 0.0 + + 0 + 1 + false + + + 1 + + 0.0 + 0.0 + + 1 + 2 + false + + + false +