Saataa andagii !
This commit is contained in:
parent
4775a751ab
commit
578575512c
2 changed files with 117 additions and 0 deletions
73
projet.use
Normal file
73
projet.use
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
model projet_bataille_navale
|
||||||
|
|
||||||
|
enum TypeCase {
|
||||||
|
Vide,
|
||||||
|
Bateau,
|
||||||
|
Touche,
|
||||||
|
Rate
|
||||||
|
}
|
||||||
|
|
||||||
|
enum TypeBateau {
|
||||||
|
Torpilleur,
|
||||||
|
Contre_Torpilleur,
|
||||||
|
Croiseur,
|
||||||
|
Porte_Avions
|
||||||
|
}
|
||||||
|
|
||||||
|
enum TypeCoup {
|
||||||
|
Rate,
|
||||||
|
Touche,
|
||||||
|
Touche_Coule
|
||||||
|
}
|
||||||
|
|
||||||
|
enum EtatBateau {
|
||||||
|
Operationnel,
|
||||||
|
Coule
|
||||||
|
}
|
||||||
|
|
||||||
|
class Jeu
|
||||||
|
operations
|
||||||
|
init(nom1: String,nom2: String): void
|
||||||
|
debut(): void
|
||||||
|
end
|
||||||
|
|
||||||
|
class Joueur
|
||||||
|
attributes
|
||||||
|
Nom: String
|
||||||
|
operations
|
||||||
|
tirer(case: String): TypeCoup
|
||||||
|
tirerRobot(): TypeCoup
|
||||||
|
end
|
||||||
|
|
||||||
|
class Flotte
|
||||||
|
operations
|
||||||
|
ajouterBateau(bateau: Bateau): void
|
||||||
|
end
|
||||||
|
|
||||||
|
class TypeCoup
|
||||||
|
attributes
|
||||||
|
type: TypeCoup
|
||||||
|
end
|
||||||
|
|
||||||
|
class Plateau
|
||||||
|
operations
|
||||||
|
afficherPlateau(CacherBateaux: Boolean): void
|
||||||
|
end
|
||||||
|
|
||||||
|
class Case
|
||||||
|
attributes
|
||||||
|
x: Integer
|
||||||
|
y: Integer
|
||||||
|
type: TypeCase
|
||||||
|
operations
|
||||||
|
changerEtat(nouveauEtat: TypeCase): void
|
||||||
|
getEtat(): TypeCase
|
||||||
|
end
|
||||||
|
|
||||||
|
class Bateau
|
||||||
|
attributes
|
||||||
|
type: TypeBateau
|
||||||
|
longueur: Integer
|
||||||
|
Etat: EtatBateau
|
||||||
|
end
|
||||||
|
|
44
projet_default.clt
Normal file
44
projet_default.clt
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?><diagram_Layout version="13">
|
||||||
|
<diagramOptions>
|
||||||
|
<autolayout>false</autolayout>
|
||||||
|
<antialiasing>false</antialiasing>
|
||||||
|
<showassocnames>false</showassocnames>
|
||||||
|
<showattributes>true</showattributes>
|
||||||
|
<showmultiplicities>false</showmultiplicities>
|
||||||
|
<showoperations>false</showoperations>
|
||||||
|
<showrolenames>true</showrolenames>
|
||||||
|
<showgrid>false</showgrid>
|
||||||
|
</diagramOptions>
|
||||||
|
<node id="TypeCoup" sizeCalculated="true" type="Enumeration">
|
||||||
|
<name>TypeCoup</name>
|
||||||
|
<strategy type="org.tzi.use.gui.views.diagrams.elements.positioning.StrategyFixed">
|
||||||
|
<x>600.0</x>
|
||||||
|
<y>303.0</y>
|
||||||
|
</strategy>
|
||||||
|
<hidden>false</hidden>
|
||||||
|
</node>
|
||||||
|
<node id="TypeCase" sizeCalculated="true" type="Enumeration">
|
||||||
|
<name>TypeCase</name>
|
||||||
|
<strategy type="org.tzi.use.gui.views.diagrams.elements.positioning.StrategyFixed">
|
||||||
|
<x>598.0</x>
|
||||||
|
<y>68.0</y>
|
||||||
|
</strategy>
|
||||||
|
<hidden>false</hidden>
|
||||||
|
</node>
|
||||||
|
<node id="EtatBateau" sizeCalculated="true" type="Enumeration">
|
||||||
|
<name>EtatBateau</name>
|
||||||
|
<strategy type="org.tzi.use.gui.views.diagrams.elements.positioning.StrategyFixed">
|
||||||
|
<x>599.0</x>
|
||||||
|
<y>403.0</y>
|
||||||
|
</strategy>
|
||||||
|
<hidden>false</hidden>
|
||||||
|
</node>
|
||||||
|
<node id="TypeBateau" sizeCalculated="true" type="Enumeration">
|
||||||
|
<name>TypeBateau</name>
|
||||||
|
<strategy type="org.tzi.use.gui.views.diagrams.elements.positioning.StrategyFixed">
|
||||||
|
<x>601.0</x>
|
||||||
|
<y>184.0</y>
|
||||||
|
</strategy>
|
||||||
|
<hidden>false</hidden>
|
||||||
|
</node>
|
||||||
|
</diagram_Layout>
|
Loading…
Add table
Add a link
Reference in a new issue