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
|
||||
|
||||
title: Animal example
|
||||
|
||||
---
|
||||
```
|
||||
mermaid
|
||||
|
||||
```mermaid
|
||||
classDiagram
|
||||
|
||||
class MainActivity{
|
||||
+onCreate()
|
||||
+onPause()
|
||||
+onResume()
|
||||
+onDestroy()
|
||||
+startGame()
|
||||
+showGameOver()
|
||||
+showInstruction()
|
||||
}
|
||||
|
||||
class Game{
|
||||
+onTap()
|
||||
+onShake()
|
||||
+start()
|
||||
+stop()
|
||||
+quit()
|
||||
}
|
||||
|
||||
class Marmotheque{
|
||||
+generateMole()
|
||||
}
|
||||
|
||||
class Marmotte{
|
||||
-bool State
|
||||
+takeHit()
|
||||
+move()
|
||||
+isDead()
|
||||
}
|
||||
|
||||
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 ?*)"
|
||||
class User{
|
||||
+String name
|
||||
+int NbEntiteTuee
|
||||
}
|
||||
|
||||
class PlayerActif{
|
||||
+int currentLevel
|
||||
+ChangeCurrentLevel(int)
|
||||
+Play()
|
||||
}
|
||||
note for PlayerActif "Joueur en jeu"
|
||||
|
||||
class PlayerStatic{
|
||||
+int score
|
||||
+float percentToSuper
|
||||
+HandleUseSuper()
|
||||
}
|
||||
note for PlayerStatic "Joueur dans les menus"
|
||||
|
||||
User <|-- PlayerActif
|
||||
User <|-- PlayerStatic
|
||||
|
||||
class Level{
|
||||
+int number
|
||||
+String sescription
|
||||
+float time
|
||||
+int nbTotEnemy
|
||||
+int nbEnemyDown
|
||||
}
|
||||
PlayerActif --> Level : currentLvl
|
||||
```
|
@ -1,3 +1,20 @@
|
||||
# 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"?>
|
||||
<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"
|
||||
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>
|
||||
<string name="app_name">Pierre&Pierre</string>
|
||||
<string name="page_de_depart">Page de départ</string>
|
||||
|
||||
</resources>
|
Loading…
Reference in new issue