soil fini et diagramme dl
This commit is contained in:
parent
ecbed94778
commit
04a7c05eca
3 changed files with 45 additions and 2 deletions
47
merde.soil
47
merde.soil
|
@ -46,6 +46,15 @@
|
|||
!bateau4_j1.x2 := 9
|
||||
!bateau4_j1.y2 := 9
|
||||
|
||||
!bateau5_j1 := new Bateau
|
||||
!bateau5_j1.type := TypeBateau::Contre_Torpilleur
|
||||
!bateau5_j1.longueur := 3
|
||||
!bateau5_j1.etat := EtatBateau::Operationnel
|
||||
!bateau5_j1.x1 := 6
|
||||
!bateau5_j1.y1 := 2
|
||||
!bateau5_j1.x2 := 9
|
||||
!bateau5_j1.y2 := 2
|
||||
|
||||
-- Bateau Joueur2
|
||||
!bateau1_j2 := new Bateau
|
||||
!bateau1_j2.type := TypeBateau::Torpilleur
|
||||
|
@ -83,15 +92,28 @@
|
|||
!bateau4_j2.x2 := 9
|
||||
!bateau4_j2.y2 := 6
|
||||
|
||||
!bateau5_j2 := new Bateau
|
||||
!bateau5_j2.type := TypeBateau::Contre_Torpilleur
|
||||
!bateau5_j2.longueur := 3
|
||||
!bateau5_j2.etat := EtatBateau::Operationnel
|
||||
!bateau5_j2.x1 := 5
|
||||
!bateau5_j2.y1 := 2
|
||||
!bateau5_j2.x2 := 8
|
||||
!bateau5_j2.y2 := 2
|
||||
|
||||
!insert(flotte_j1, bateau1_j1) into flotte_bateau
|
||||
!insert(flotte_j1, bateau2_j1) into flotte_bateau
|
||||
!insert(flotte_j1, bateau3_j1) into flotte_bateau
|
||||
!insert(flotte_j1, bateau4_j1) into flotte_bateau
|
||||
!insert(flotte_j1, bateau5_j1) into flotte_bateau
|
||||
|
||||
|
||||
!insert(flotte_j2, bateau1_j2) into flotte_bateau
|
||||
!insert(flotte_j2, bateau2_j2) into flotte_bateau
|
||||
!insert(flotte_j2, bateau3_j2) into flotte_bateau
|
||||
!insert(flotte_j2, bateau4_j2) into flotte_bateau
|
||||
!insert(flotte_j2, bateau5_j2) into flotte_bateau
|
||||
|
||||
|
||||
!insert(j1,Bataille) into EstEnJeu1
|
||||
!insert(j2,Bataille) into EstEnJeu1
|
||||
|
@ -106,7 +128,28 @@
|
|||
|
||||
!insert(j1,attaque_plateau_j1) into Utilise
|
||||
!insert(j1,defense_plateau_j1) into Utilise
|
||||
!insert(j1,attaque_plateau_j2) into Utilise
|
||||
!insert(j1,defense_plateau_j2) into Utilise
|
||||
!insert(j2,attaque_plateau_j2) into Utilise
|
||||
!insert(j2,defense_plateau_j2) into Utilise
|
||||
|
||||
|
||||
-- Les boucles for ne marchant pas, nous avons été obligé de procéder ainsi et
|
||||
-- de ne pas toute les initialiser, de plus elle aurait pris toute la place dans
|
||||
-- le diagramme d'instance
|
||||
|
||||
!c1_1 := new Case
|
||||
!c1_1.x := 1
|
||||
!c1_1.y := 1
|
||||
!c1_1.type := TypeCase::Vide
|
||||
!insert(c1_1,attaque_plateau_j1) into Compose
|
||||
|
||||
!c1_2 := new Case
|
||||
!c1_2.x := 1
|
||||
!c1_2.y := 2
|
||||
!c1_2.type := TypeCase::Vide
|
||||
!insert(c1_2,attaque_plateau_j2) into Compose
|
||||
|
||||
!c1_3 := new Case
|
||||
!c1_3.x := 1
|
||||
!c1_3.y := 3
|
||||
!c1_3.type := TypeCase::Vide
|
||||
!insert(c1_3,defense_plateau_j2) into Compose
|
Loading…
Add table
Add a link
Reference in a new issue