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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024-projet-agile-de-rentree
groupe-6
Commits
f6cc9c83
Commit
f6cc9c83
authored
8 months ago
by
Jeyda Parlar
Browse files
Options
Downloads
Patches
Plain Diff
maj level
parent
2fc85676
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/bitFight/Level.java
+2
-2
2 additions, 2 deletions
src/main/java/bitFight/Level.java
src/test/java/bitFight/LevelTest.java
+15
-4
15 additions, 4 deletions
src/test/java/bitFight/LevelTest.java
with
17 additions
and
6 deletions
src/main/java/bitFight/Level.java
+
2
−
2
View file @
f6cc9c83
...
@@ -112,9 +112,9 @@ public class Level{
...
@@ -112,9 +112,9 @@ public class Level{
}
}
// annonce la mort du joueur
// annonce la mort du joueur
public
void
playerDying
()
{
/*
public void playerDying() {
System.out.println(this.player.getName() + " is dead!");
System.out.println(this.player.getName() + " is dead!");
}
}
*/
// action quand le joueur n'est pas épuisé
// action quand le joueur n'est pas épuisé
public
void
playerHasEnergy
(
Attack
attack
)
{
public
void
playerHasEnergy
(
Attack
attack
)
{
...
...
This diff is collapsed.
Click to expand it.
src/test/java/bitFight/LevelTest.java
+
15
−
4
View file @
f6cc9c83
...
@@ -4,9 +4,20 @@ import java.io.IOException;
...
@@ -4,9 +4,20 @@ import java.io.IOException;
public
class
LevelTest
{
public
class
LevelTest
{
public
static
void
main
(
String
[]
args
)
throws
IOException
,
InterruptedException
{
public
static
void
main
(
String
[]
args
)
throws
IOException
,
InterruptedException
{
//Level.fightScene();
Enemy
enemy
=
new
Enemy
(
"BAD PAUL"
,
1
);
//Level.bigFightScene();
Player
player
=
new
Player
(
"play"
);
//Level.gameOver();
Level
level
=
new
Level
(
1
,
player
,
enemy
);
// Level.defeat();
level
.
fightScene
();
level
.
bigFightScene
();
Thread
.
sleep
(
1250
);
Display
.
clearScreen
();
level
.
displayLifePoints
();
Thread
.
sleep
(
1250
);
Display
.
clearScreen
();
level
.
gameOver
();
level
.
defeat
();
Thread
.
sleep
(
1250
);
Display
.
clearScreen
();
level
.
victory
();
}
}
}
}
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