Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
|
b0febf0c2a | 2 years ago |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,55 +1,41 @@
|
|||||||
# Diagramme de classes
|
# Diagramme de classes
|
||||||
|
|
||||||
|
title: Animal example
|
||||||
|
|
||||||
---
|
---
|
||||||
|
```
|
||||||
|
mermaid
|
||||||
|
|
||||||
```mermaid
|
|
||||||
classDiagram
|
classDiagram
|
||||||
|
|
||||||
class MainActivity{
|
class User{
|
||||||
+onCreate()
|
+String name
|
||||||
+onPause()
|
+int NbEntiteTuee
|
||||||
+onResume()
|
}
|
||||||
+onDestroy()
|
|
||||||
+startGame()
|
class PlayerActif{
|
||||||
+showGameOver()
|
+int currentLevel
|
||||||
+showInstruction()
|
+ChangeCurrentLevel(int)
|
||||||
}
|
+Play()
|
||||||
|
}
|
||||||
class Game{
|
note for PlayerActif "Joueur en jeu"
|
||||||
+onTap()
|
|
||||||
+onShake()
|
class PlayerStatic{
|
||||||
+start()
|
+int score
|
||||||
+stop()
|
+float percentToSuper
|
||||||
+quit()
|
+HandleUseSuper()
|
||||||
}
|
}
|
||||||
|
note for PlayerStatic "Joueur dans les menus"
|
||||||
class Marmotheque{
|
|
||||||
+generateMole()
|
User <|-- PlayerActif
|
||||||
}
|
User <|-- PlayerStatic
|
||||||
|
|
||||||
class Marmotte{
|
class Level{
|
||||||
-bool State
|
+int number
|
||||||
+takeHit()
|
+String sescription
|
||||||
+move()
|
+float time
|
||||||
+isDead()
|
+int nbTotEnemy
|
||||||
}
|
+int nbEnemyDown
|
||||||
|
}
|
||||||
class Level{
|
PlayerActif --> Level : currentLvl
|
||||||
+int number
|
```
|
||||||
+String description
|
|
||||||
+float time
|
|
||||||
+int nbEnemyLeft
|
|
||||||
+getMarmottes()
|
|
||||||
}
|
|
||||||
|
|
||||||
class Player{
|
|
||||||
-String Name
|
|
||||||
-int score
|
|
||||||
}
|
|
||||||
|
|
||||||
Level -- Player
|
|
||||||
Marmotheque -- Marmotte
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
>note for Marmotheque "Gestionnaire des marmottes (*utile si il s'agit d'une liste ?*)"
|
|
@ -1,3 +1,20 @@
|
|||||||
# Projet Android
|
# Projet Android
|
||||||
|
|
||||||
## **!!! MASTER N'EST PAS LA BRANCHE PRINCIPALE, VEUILLEZ VOUS INTERESSER À LA BRANCHE ``MoleGrid`` !!!**
|
Par ***Ballandras Pierre*** & ***Ferreira Pierre***
|
||||||
|
|
||||||
|
## Idée du projet (Non definitif)
|
||||||
|
|
||||||
|
Application pour prendre des photos, puis de pouvoir les modifier ( filtre couleur, luminosité) avec recherche intégrée.
|
||||||
|
|
||||||
|
## Construction du projet
|
||||||
|
|
||||||
|
Au lancement de l'application, l'utilisateur à acces à la camera.
|
||||||
|
Il peut prendre une photo, ou choisir une photo pour ensuite la modifier.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Idée du projet
|
||||||
|
|
||||||
|
Jeu de marteau sur marmottes
|
@ -1,5 +1,64 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"/>
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/linearLayout"
|
||||||
|
android:layout_width="409dp"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent">
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/button"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:text="Button" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/button2"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:text="Home" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/button3"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:text="Goto" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/page_de_depart"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/linearLayout"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <androidx.fragment.app.FragmentContainerView-->
|
||||||
|
<!-- android:id="@+id/nav_host_fragment"-->
|
||||||
|
<!-- android:name="androidx.navigation.fragment.NavHostFragment"-->
|
||||||
|
<!-- android:layout_width="0dp"-->
|
||||||
|
<!-- android:layout_height="0dp"-->
|
||||||
|
<!-- app:layout_constraintLeft_toLeftOf="parent"-->
|
||||||
|
<!-- app:layout_constraintRight_toRightOf="parent"-->
|
||||||
|
<!-- app:layout_constraintTop_toTopOf="parent"-->
|
||||||
|
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
||||||
|
|
||||||
|
<!-- app:defaultNavHost="true"-->
|
||||||
|
<!-- app:navGraph="@navigation/nav_graph" />-->
|
||||||
|
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:id="@+id/nav_graph">
|
||||||
|
|
||||||
|
</navigation>
|
@ -1,3 +1,5 @@
|
|||||||
<resources>
|
<resources>
|
||||||
<string name="app_name">Pierre&Pierre</string>
|
<string name="app_name">Pierre&Pierre</string>
|
||||||
|
<string name="page_de_depart">Page de départ</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in new issue