Compare commits

..

7 Commits

@ -1,41 +1,55 @@
# Diagramme de classes # Diagramme de classes
title: Animal example
--- ---
```
mermaid
```mermaid
classDiagram classDiagram
class User{ class MainActivity{
+String name +onCreate()
+int NbEntiteTuee +onPause()
} +onResume()
+onDestroy()
class PlayerActif{ +startGame()
+int currentLevel +showGameOver()
+ChangeCurrentLevel(int) +showInstruction()
+Play() }
}
note for PlayerActif "Joueur en jeu" class Game{
+onTap()
class PlayerStatic{ +onShake()
+int score +start()
+float percentToSuper +stop()
+HandleUseSuper() +quit()
} }
note for PlayerStatic "Joueur dans les menus"
class Marmotheque{
User <|-- PlayerActif +generateMole()
User <|-- PlayerStatic }
class Level{ class Marmotte{
+int number -bool State
+String sescription +takeHit()
+float time +move()
+int nbTotEnemy +isDead()
+int nbEnemyDown }
}
PlayerActif --> Level : currentLvl class Level{
``` +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,20 +1,3 @@
# Projet Android # Projet Android
Par ***Ballandras Pierre*** & ***Ferreira Pierre*** ## **!!! MASTER N'EST PAS LA BRANCHE PRINCIPALE, VEUILLEZ VOUS INTERESSER À LA BRANCHE ``MoleGrid`` !!!**
## 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

@ -34,19 +34,10 @@ android {
dependencies { dependencies {
def nav_version = "2.5.3"
implementation 'androidx.core:core-ktx:1.7.0' implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.8.0' implementation 'com.google.android.material:material:1.8.0'
testImplementation 'junit:junit:4.13.2' testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
implementation 'com.google.android.material:material:1.3.0-alpha03'
} }

@ -1,64 +1,5 @@
<?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>

@ -1,6 +0,0 @@
<?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,5 +1,3 @@
<resources> <resources>
<string name="app_name">Pierre&amp;Pierre</string> <string name="app_name">Pierre&amp;Pierre</string>
<string name="page_de_depart">Page de départ</string>
</resources> </resources>
Loading…
Cancel
Save