Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
groupe-6
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024-projet-agile-de-rentree
groupe-6
Commits
837734af
Commit
837734af
authored
10 months ago
by
Charlie Darques
Browse files
Options
Downloads
Patches
Plain Diff
modif affichage vie ennemi
parent
c13b6c91
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/main/java/bitFight/Enemy.java
+1
-1
1 addition, 1 deletion
src/main/java/bitFight/Enemy.java
src/main/java/bitFight/Input.java
+0
-2
0 additions, 2 deletions
src/main/java/bitFight/Input.java
src/main/java/bitFight/Level.java
+1
-1
1 addition, 1 deletion
src/main/java/bitFight/Level.java
with
2 additions
and
4 deletions
src/main/java/bitFight/Enemy.java
+
1
−
1
View file @
837734af
...
...
@@ -32,7 +32,7 @@ public class Enemy extends Character{
public
String
toString
()
{
return
name
+
" LE "
+
characteristic
.
name
()
+
" : level "
+
this
.
level
+
" - Current life level : "
+
(
int
)
this
.
currentHealth
;
return
name
+
" LE "
+
characteristic
.
name
()
+
" : level "
+
this
.
level
;
}
public
Characteristics
getCharacteristic
()
{
...
...
This diff is collapsed.
Click to expand it.
src/main/java/bitFight/Input.java
+
0
−
2
View file @
837734af
package
bitFight
;
import
java.io.BufferedReader
;
import
java.io.IOException
;
import
java.io.InputStreamReader
;
import
java.util.ArrayList
;
public
class
Input
{
...
...
This diff is collapsed.
Click to expand it.
src/main/java/bitFight/Level.java
+
1
−
1
View file @
837734af
...
...
@@ -70,7 +70,7 @@ public class Level{
// affiche la jauge de vie de l'ennemi
public
String
displayEnnemyHealth
()
{
return
(
int
)
this
.
ennemy
.
getCurrentHealth
()
+
"/"
+
(
int
)
this
.
ennemy
.
getMaxHealth
();
return
this
.
ennemy
.
toString
()
+
" - "
+
(
int
)
this
.
ennemy
.
getCurrentHealth
()
+
"/"
+
(
int
)
this
.
ennemy
.
getMaxHealth
();
}
// affiche la jauge de vie du joueur
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment