justification

main
juduteyrat 3 years ago
parent 39500198cf
commit 71b59f101c

@ -17,8 +17,7 @@
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>
<activity android:name=".view.VueJeu" />
<activity android:name=".view.GameActivity" />
</application>

@ -1,20 +0,0 @@
package projet.iut.jeu_de_la_vie.view;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import projet.iut.jeu_de_la_vie.R;
public class GameActivity extends AppCompatActivity {
private PlateauView plateauView;
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.fragment_plateau);
plateauView = findViewById(R.id.plateauView);
}
}

@ -1,14 +0,0 @@
package projet.iut.jeu_de_la_vie.view;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
public class VueJeu extends AppCompatActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(new PlateauView(this, 10, 10));
}
}

@ -28,8 +28,12 @@ Le [Manager](../code/app/src/main/java/projet/iut/jeu_de_la_vie/model/Manager.ja
## Les vues
Nous avons une seul [vue principale](../code/app/src/main/res/layout/jeu_de_la_vie.xml) qui contient un fragment, nous permettant d'alterner entre le [menu principal](../code/app/src/main/res/layout-land/menu_principal.xml) et la [vue du jeu](../code/app/src/main/res/layout/fragment_plateau.xml) qui est mise à jour par la classe [PlateauView](../code/app/src/main/java/projet/iut/jeu_de_la_vie/view/PlateauView.java).
### Les fragments
Nous utilisons 2 fragments: le [fragment pour le menu principal](../code/app/src/main/java/projet/iut/jeu_de_la_vie/view/fragment/MenuFragment.java) qui affiche le menu permettant de changer les paramètres du jeu et le [fragment du jeu](../code/app/src/main/java/projet/iut/jeu_de_la_vie/view/fragment/FragmentPlateau.java) qui gère les intéractions entre l'utilisateur et la vue du jeu.
#### Le menu
Il y a un [fragment pour le menu principal](../code/app/src/main/java/projet/iut/jeu_de_la_vie/view/fragment/MenuFragment.java) qui permet de personaliser l'interface de jeu. Ce fragment est lié à [LauncherActivity](../code/app/src/main/java/projet/iut/jeu_de_la_vie/view/LauncherActivity.java)

@ -60,7 +60,7 @@
"font": "Arial;13;1",
"left": 317,
"top": 38,
"width": 2463,
"width": 1631,
"height": 13,
"text": "views"
},
@ -95,7 +95,7 @@
"font": "Arial;13;0",
"left": 312,
"top": 31,
"width": 2473,
"width": 1641,
"height": 25,
"stereotypeLabel": {
"$ref": "AAAAAAF9f+yPI98NWGs="
@ -117,16 +117,13 @@
},
{
"$ref": "AAAAAAF/yvll5OR/bkA="
},
{
"$ref": "AAAAAAF/yxI9IlTRU00="
}
],
"font": "Arial;13;0",
"containerChangeable": true,
"left": 312,
"top": 16,
"width": 2473,
"width": 1641,
"height": 457,
"nameCompartment": {
"$ref": "AAAAAAF9f+yPI98M6Bo="
@ -14522,754 +14519,6 @@
"propertyLabel": {
"$ref": "AAAAAAF/yxOxDF7EJq8="
}
},
{
"_type": "UMLAssociationView",
"_id": "AAAAAAF/yzdU52BUa1Y=",
"_parent": {
"$ref": "AAAAAAF9f+tPc98FthE="
},
"model": {
"$ref": "AAAAAAF/yzdU5mBQYSY="
},
"subViews": [
{
"_type": "EdgeLabelView",
"_id": "AAAAAAF/yzdU52BVwcQ=",
"_parent": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
},
"model": {
"$ref": "AAAAAAF/yzdU5mBQYSY="
},
"font": "Arial;13;0",
"left": 1989,
"top": 154,
"width": 78.18408203125,
"height": 13,
"alpha": 1.5707963267948966,
"distance": 15,
"hostEdge": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
},
"edgePosition": 1,
"text": "-plateauView"
},
{
"_type": "EdgeLabelView",
"_id": "AAAAAAF/yzdU52BW9AA=",
"_parent": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
},
"model": {
"$ref": "AAAAAAF/yzdU5mBQYSY="
},
"visible": null,
"font": "Arial;13;0",
"left": 2032,
"top": 168,
"height": 13,
"alpha": 1.5707963267948966,
"distance": 30,
"hostEdge": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
},
"edgePosition": 1
},
{
"_type": "EdgeLabelView",
"_id": "AAAAAAF/yzdU52BX5bc=",
"_parent": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
},
"model": {
"$ref": "AAAAAAF/yzdU5mBQYSY="
},
"visible": false,
"font": "Arial;13;0",
"left": 2021,
"top": 125,
"height": 13,
"alpha": -1.5707963267948966,
"distance": 15,
"hostEdge": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
},
"edgePosition": 1
},
{
"_type": "EdgeLabelView",
"_id": "AAAAAAF/yzdU52BYzYE=",
"_parent": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
},
"model": {
"$ref": "AAAAAAF/yzdU5mBR0yw="
},
"visible": false,
"font": "Arial;13;0",
"left": 2126,
"top": 129,
"height": 13,
"alpha": 0.5235987755982988,
"distance": 30,
"hostEdge": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
},
"edgePosition": 2
},
{
"_type": "EdgeLabelView",
"_id": "AAAAAAF/yzdU52BZVhs=",
"_parent": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
},
"model": {
"$ref": "AAAAAAF/yzdU5mBR0yw="
},
"visible": false,
"font": "Arial;13;0",
"left": 2127,
"top": 142,
"height": 13,
"alpha": 0.7853981633974483,
"distance": 40,
"hostEdge": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
},
"edgePosition": 2
},
{
"_type": "EdgeLabelView",
"_id": "AAAAAAF/yzdU52Bafn8=",
"_parent": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
},
"model": {
"$ref": "AAAAAAF/yzdU5mBR0yw="
},
"visible": false,
"font": "Arial;13;0",
"left": 2123,
"top": 101,
"height": 13,
"alpha": -0.5235987755982988,
"distance": 25,
"hostEdge": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
},
"edgePosition": 2
},
{
"_type": "EdgeLabelView",
"_id": "AAAAAAF/yzdU52Bbbrs=",
"_parent": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
},
"model": {
"$ref": "AAAAAAF/yzdU5mBSVtY="
},
"visible": false,
"font": "Arial;13;0",
"left": 1930,
"top": 180,
"height": 13,
"alpha": -0.5235987755982988,
"distance": 30,
"hostEdge": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
}
},
{
"_type": "EdgeLabelView",
"_id": "AAAAAAF/yzdU52BcDbM=",
"_parent": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
},
"model": {
"$ref": "AAAAAAF/yzdU5mBSVtY="
},
"visible": false,
"font": "Arial;13;0",
"left": 1936,
"top": 193,
"height": 13,
"alpha": -0.7853981633974483,
"distance": 40,
"hostEdge": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
}
},
{
"_type": "EdgeLabelView",
"_id": "AAAAAAF/yzdU52BdKsQ=",
"_parent": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
},
"model": {
"$ref": "AAAAAAF/yzdU5mBSVtY="
},
"font": "Arial;13;0",
"left": 1916,
"top": 155,
"width": 7.22998046875,
"height": 13,
"alpha": 0.5235987755982988,
"distance": 25,
"hostEdge": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
},
"text": "1"
},
{
"_type": "UMLQualifierCompartmentView",
"_id": "AAAAAAF/yzdU52Be5kc=",
"_parent": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
},
"model": {
"$ref": "AAAAAAF/yzdU5mBR0yw="
},
"visible": false,
"font": "Arial;13;0",
"width": 10,
"height": 10
},
{
"_type": "UMLQualifierCompartmentView",
"_id": "AAAAAAF/yzdU52Bfrrs=",
"_parent": {
"$ref": "AAAAAAF/yzdU52BUa1Y="
},
"model": {
"$ref": "AAAAAAF/yzdU5mBSVtY="
},
"visible": false,
"font": "Arial;13;0",
"width": 10,
"height": 10
}
],
"font": "Arial;13;0",
"head": {
"$ref": "AAAAAAF/yvll5OR/bkA="
},
"tail": {
"$ref": "AAAAAAF/yxI9IlTRU00="
},
"lineStyle": 1,
"points": "2148:114;1902:179",
"showVisibility": true,
"nameLabel": {
"$ref": "AAAAAAF/yzdU52BVwcQ="
},
"stereotypeLabel": {
"$ref": "AAAAAAF/yzdU52BW9AA="
},
"propertyLabel": {
"$ref": "AAAAAAF/yzdU52BX5bc="
},
"tailRoleNameLabel": {
"$ref": "AAAAAAF/yzdU52BYzYE="
},
"tailPropertyLabel": {
"$ref": "AAAAAAF/yzdU52BZVhs="
},
"tailMultiplicityLabel": {
"$ref": "AAAAAAF/yzdU52Bafn8="
},
"headRoleNameLabel": {
"$ref": "AAAAAAF/yzdU52Bbbrs="
},
"headPropertyLabel": {
"$ref": "AAAAAAF/yzdU52BcDbM="
},
"headMultiplicityLabel": {
"$ref": "AAAAAAF/yzdU52BdKsQ="
},
"tailQualifiersCompartment": {
"$ref": "AAAAAAF/yzdU52Be5kc="
},
"headQualifiersCompartment": {
"$ref": "AAAAAAF/yzdU52Bfrrs="
}
},
{
"_type": "UMLClassView",
"_id": "AAAAAAF/yxI9IlTRU00=",
"_parent": {
"$ref": "AAAAAAF9f+tPc98FthE="
},
"model": {
"$ref": "AAAAAAF/yxI9IVTPtWc="
},
"subViews": [
{
"_type": "UMLNameCompartmentView",
"_id": "AAAAAAF/yxI9IlTSuEg=",
"_parent": {
"$ref": "AAAAAAF/yxI9IlTRU00="
},
"model": {
"$ref": "AAAAAAF/yxI9IVTPtWc="
},
"subViews": [
{
"_type": "LabelView",
"_id": "AAAAAAF/yxI9IlTTKsQ=",
"_parent": {
"$ref": "AAAAAAF/yxI9IlTSuEg="
},
"visible": false,
"font": "Arial;13;0",
"left": 408,
"top": -48,
"height": 13
},
{
"_type": "LabelView",
"_id": "AAAAAAF/yxI9IlTUQEs=",
"_parent": {
"$ref": "AAAAAAF/yxI9IlTSuEg="
},
"font": "Arial;13;1",
"left": 2117,
"top": 63,
"width": 291.7890625,
"height": 13,
"text": "GameActivity"
},
{
"_type": "LabelView",
"_id": "AAAAAAF/yxI9IlTVh5s=",
"_parent": {
"$ref": "AAAAAAF/yxI9IlTSuEg="
},
"visible": false,
"font": "Arial;13;0",
"left": 408,
"top": -48,
"width": 81.6181640625,
"height": 13,
"text": "(from views)"
},
{
"_type": "LabelView",
"_id": "AAAAAAF/yxI9IlTWofw=",
"_parent": {
"$ref": "AAAAAAF/yxI9IlTSuEg="
},
"visible": false,
"font": "Arial;13;0",
"left": 408,
"top": -48,
"height": 13,
"horizontalAlignment": 1
}
],
"font": "Arial;13;0",
"left": 2112,
"top": 56,
"width": 301.7890625,
"height": 25,
"stereotypeLabel": {
"$ref": "AAAAAAF/yxI9IlTTKsQ="
},
"nameLabel": {
"$ref": "AAAAAAF/yxI9IlTUQEs="
},
"namespaceLabel": {
"$ref": "AAAAAAF/yxI9IlTVh5s="
},
"propertyLabel": {
"$ref": "AAAAAAF/yxI9IlTWofw="
}
},
{
"_type": "UMLAttributeCompartmentView",
"_id": "AAAAAAF/yxI9IlTXWkI=",
"_parent": {
"$ref": "AAAAAAF/yxI9IlTRU00="
},
"model": {
"$ref": "AAAAAAF/yxI9IVTPtWc="
},
"font": "Arial;13;0",
"left": 2112,
"top": 81,
"width": 301.7890625,
"height": 10
},
{
"_type": "UMLOperationCompartmentView",
"_id": "AAAAAAF/yxI9IlTYfow=",
"_parent": {
"$ref": "AAAAAAF/yxI9IlTRU00="
},
"model": {
"$ref": "AAAAAAF/yxI9IVTPtWc="
},
"subViews": [
{
"_type": "UMLOperationView",
"_id": "AAAAAAF/yzfGMGeE+wA=",
"_parent": {
"$ref": "AAAAAAF/yxI9IlTYfow="
},
"model": {
"$ref": "AAAAAAF/yzfGCGdOvMM="
},
"font": "Arial;13;0",
"left": 2117,
"top": 96,
"width": 291.7890625,
"height": 13,
"text": "+onCreate(@Nullable Bundle savedInstanceState)",
"horizontalAlignment": 0
}
],
"font": "Arial;13;0",
"left": 2112,
"top": 91,
"width": 301.7890625,
"height": 23
},
{
"_type": "UMLReceptionCompartmentView",
"_id": "AAAAAAF/yxI9IlTZ0eY=",
"_parent": {
"$ref": "AAAAAAF/yxI9IlTRU00="
},
"model": {
"$ref": "AAAAAAF/yxI9IVTPtWc="
},
"visible": false,
"font": "Arial;13;0",
"left": 272,
"top": -32,
"width": 10,
"height": 10
},
{
"_type": "UMLTemplateParameterCompartmentView",
"_id": "AAAAAAF/yxI9IlTaPVY=",
"_parent": {
"$ref": "AAAAAAF/yxI9IlTRU00="
},
"model": {
"$ref": "AAAAAAF/yxI9IVTPtWc="
},
"visible": false,
"font": "Arial;13;0",
"left": 272,
"top": -32,
"width": 10,
"height": 10
}
],
"containerView": {
"$ref": "AAAAAAF9f+yPI98LSVA="
},
"font": "Arial;13;0",
"containerChangeable": true,
"left": 2112,
"top": 56,
"width": 301.7890625,
"height": 58,
"nameCompartment": {
"$ref": "AAAAAAF/yxI9IlTSuEg="
},
"attributeCompartment": {
"$ref": "AAAAAAF/yxI9IlTXWkI="
},
"operationCompartment": {
"$ref": "AAAAAAF/yxI9IlTYfow="
},
"receptionCompartment": {
"$ref": "AAAAAAF/yxI9IlTZ0eY="
},
"templateParameterCompartment": {
"$ref": "AAAAAAF/yxI9IlTaPVY="
}
},
{
"_type": "UMLClassView",
"_id": "AAAAAAF/yzhAIGtWnIM=",
"_parent": {
"$ref": "AAAAAAF9f+tPc98FthE="
},
"model": {
"$ref": "AAAAAAF/yzhAIGtU/uk="
},
"subViews": [
{
"_type": "UMLNameCompartmentView",
"_id": "AAAAAAF/yzhAIGtXSz4=",
"_parent": {
"$ref": "AAAAAAF/yzhAIGtWnIM="
},
"model": {
"$ref": "AAAAAAF/yzhAIGtU/uk="
},
"subViews": [
{
"_type": "LabelView",
"_id": "AAAAAAF/yzhAIWtYBgE=",
"_parent": {
"$ref": "AAAAAAF/yzhAIGtXSz4="
},
"visible": false,
"font": "Arial;13;0",
"height": 13
},
{
"_type": "LabelView",
"_id": "AAAAAAF/yzhAIWtZofw=",
"_parent": {
"$ref": "AAAAAAF/yzhAIGtXSz4="
},
"font": "Arial;13;1",
"left": 2125,
"top": 223,
"width": 291.7890625,
"height": 13,
"text": "VueJeu"
},
{
"_type": "LabelView",
"_id": "AAAAAAF/yzhAIWtaWIQ=",
"_parent": {
"$ref": "AAAAAAF/yzhAIGtXSz4="
},
"visible": false,
"font": "Arial;13;0",
"width": 81.6181640625,
"height": 13,
"text": "(from classes)"
},
{
"_type": "LabelView",
"_id": "AAAAAAF/yzhAIWtb+A4=",
"_parent": {
"$ref": "AAAAAAF/yzhAIGtXSz4="
},
"visible": false,
"font": "Arial;13;0",
"height": 13,
"horizontalAlignment": 1
}
],
"font": "Arial;13;0",
"left": 2120,
"top": 216,
"width": 301.7890625,
"height": 25,
"stereotypeLabel": {
"$ref": "AAAAAAF/yzhAIWtYBgE="
},
"nameLabel": {
"$ref": "AAAAAAF/yzhAIWtZofw="
},
"namespaceLabel": {
"$ref": "AAAAAAF/yzhAIWtaWIQ="
},
"propertyLabel": {
"$ref": "AAAAAAF/yzhAIWtb+A4="
}
},
{
"_type": "UMLAttributeCompartmentView",
"_id": "AAAAAAF/yzhAIWtcWJY=",
"_parent": {
"$ref": "AAAAAAF/yzhAIGtWnIM="
},
"model": {
"$ref": "AAAAAAF/yzhAIGtU/uk="
},
"font": "Arial;13;0",
"left": 2120,
"top": 241,
"width": 301.7890625,
"height": 10
},
{
"_type": "UMLOperationCompartmentView",
"_id": "AAAAAAF/yzhAIWtdedo=",
"_parent": {
"$ref": "AAAAAAF/yzhAIGtWnIM="
},
"model": {
"$ref": "AAAAAAF/yzhAIGtU/uk="
},
"subViews": [
{
"_type": "UMLOperationView",
"_id": "AAAAAAF/yzhze25Ljj8=",
"_parent": {
"$ref": "AAAAAAF/yzhAIWtdedo="
},
"model": {
"$ref": "AAAAAAF/yzhzU24VHHA="
},
"font": "Arial;13;0",
"left": 2125,
"top": 256,
"width": 291.7890625,
"height": 13,
"text": "+onCreate(@Nullable Bundle savedInstanceState)",
"horizontalAlignment": 0
}
],
"font": "Arial;13;0",
"left": 2120,
"top": 251,
"width": 301.7890625,
"height": 23
},
{
"_type": "UMLReceptionCompartmentView",
"_id": "AAAAAAF/yzhAIWteYAw=",
"_parent": {
"$ref": "AAAAAAF/yzhAIGtWnIM="
},
"model": {
"$ref": "AAAAAAF/yzhAIGtU/uk="
},
"visible": false,
"font": "Arial;13;0",
"width": 10,
"height": 10
},
{
"_type": "UMLTemplateParameterCompartmentView",
"_id": "AAAAAAF/yzhAIWtfC1o=",
"_parent": {
"$ref": "AAAAAAF/yzhAIGtWnIM="
},
"model": {
"$ref": "AAAAAAF/yzhAIGtU/uk="
},
"visible": false,
"font": "Arial;13;0",
"width": 10,
"height": 10
}
],
"font": "Arial;13;0",
"containerChangeable": true,
"left": 2120,
"top": 216,
"width": 301.7890625,
"height": 58,
"nameCompartment": {
"$ref": "AAAAAAF/yzhAIGtXSz4="
},
"attributeCompartment": {
"$ref": "AAAAAAF/yzhAIWtcWJY="
},
"operationCompartment": {
"$ref": "AAAAAAF/yzhAIWtdedo="
},
"receptionCompartment": {
"$ref": "AAAAAAF/yzhAIWteYAw="
},
"templateParameterCompartment": {
"$ref": "AAAAAAF/yzhAIWtfC1o="
}
},
{
"_type": "UMLDependencyView",
"_id": "AAAAAAF/yziIC3BRvSA=",
"_parent": {
"$ref": "AAAAAAF9f+tPc98FthE="
},
"model": {
"$ref": "AAAAAAF/yziIC3BPJa8="
},
"subViews": [
{
"_type": "EdgeLabelView",
"_id": "AAAAAAF/yziIDHBSxLE=",
"_parent": {
"$ref": "AAAAAAF/yziIC3BRvSA="
},
"model": {
"$ref": "AAAAAAF/yziIC3BPJa8="
},
"visible": false,
"font": "Arial;13;0",
"left": 2010,
"top": 254,
"height": 13,
"alpha": 1.5707963267948966,
"distance": 15,
"hostEdge": {
"$ref": "AAAAAAF/yziIC3BRvSA="
},
"edgePosition": 1
},
{
"_type": "EdgeLabelView",
"_id": "AAAAAAF/yziIDHBT8hE=",
"_parent": {
"$ref": "AAAAAAF/yziIC3BRvSA="
},
"model": {
"$ref": "AAAAAAF/yziIC3BPJa8="
},
"visible": null,
"font": "Arial;13;0",
"left": 2010,
"top": 269,
"height": 13,
"alpha": 1.5707963267948966,
"distance": 30,
"hostEdge": {
"$ref": "AAAAAAF/yziIC3BRvSA="
},
"edgePosition": 1
},
{
"_type": "EdgeLabelView",
"_id": "AAAAAAF/yziIDHBU0X8=",
"_parent": {
"$ref": "AAAAAAF/yziIC3BRvSA="
},
"model": {
"$ref": "AAAAAAF/yziIC3BPJa8="
},
"visible": false,
"font": "Arial;13;0",
"left": 2009,
"top": 225,
"height": 13,
"alpha": -1.5707963267948966,
"distance": 15,
"hostEdge": {
"$ref": "AAAAAAF/yziIC3BRvSA="
},
"edgePosition": 1
}
],
"font": "Arial;13;0",
"head": {
"$ref": "AAAAAAF/yvll5OR/bkA="
},
"tail": {
"$ref": "AAAAAAF/yzhAIGtWnIM="
},
"lineStyle": 1,
"points": "2119:245;1902:247",
"showVisibility": true,
"nameLabel": {
"$ref": "AAAAAAF/yziIDHBSxLE="
},
"stereotypeLabel": {
"$ref": "AAAAAAF/yziIDHBT8hE="
},
"propertyLabel": {
"$ref": "AAAAAAF/yziIDHBU0X8="
}
}
]
},

Binary file not shown.

After

Width:  |  Height:  |  Size: 620 KiB

Loading…
Cancel
Save