Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ISN 2022-ACL project Cyberpac 2077
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
RICHARD Florian
ISN 2022-ACL project Cyberpac 2077
Commits
36ca9c01
Commit
36ca9c01
authored
2 years ago
by
Louis MALTERRE
Browse files
Options
Downloads
Patches
Plain Diff
indexBoss LM
parent
b5996b3a
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
MAVENProject/pom.xml
+11
-0
11 additions, 0 deletions
MAVENProject/pom.xml
MAVENProject/src/main/java/map/LevelManager.java
+5
-3
5 additions, 3 deletions
MAVENProject/src/main/java/map/LevelManager.java
with
16 additions
and
3 deletions
MAVENProject/pom.xml
+
11
−
0
View file @
36ca9c01
...
...
@@ -35,4 +35,15 @@
</resources>
</build>
<dependencies>
<dependency>
<groupId>
org.junit
</groupId>
<artifactId>
junit4-runner
</artifactId>
<version>
5.0.0-ALPHA
</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
MAVENProject/src/main/java/map/LevelManager.java
+
5
−
3
View file @
36ca9c01
...
...
@@ -173,6 +173,7 @@ public class LevelManager {
}
public
List
<
Monster
>
generateMonsterTable
()
{
List
<
Monster
>
monsterList
=
new
ArrayList
<>();
Boss
boss
=
new
Boss
(
new
Coordonnees
(
1
,
1
),
1
,
1
,
1
,
1
,
1
);
for
(
int
j
=
0
;
j
<
Jeu
.
TILES_IN_HEIGHT
;
j
++){
for
(
int
i
=
0
;
i
<
Jeu
.
TILES_IN_WIDTH
;
i
++)
{
int
index
=
levelOne
.
getSpriteIndex
(
i
,
j
);
...
...
@@ -189,12 +190,13 @@ public class LevelManager {
}
//Boss
if
(
index
==
47
)
{
monsterList
.
add
(
new
Boss
(
new
Coordonnees
(
32
*
i
,
32
*
j
-
140
/
2
),
500
,
32
,
96
,
3
,
30
));
indexBoss
=
monsterList
.
size
()-
1
;
boss
=
new
Boss
(
new
Coordonnees
(
32
*
i
,
32
*
j
-
140
/
2
),
500
,
32
,
96
,
3
,
30
);
monsterList
.
add
(
boss
);
}
}
}
System
.
out
.
println
(
monsterList
);
indexBoss
=
monsterList
.
indexOf
(
boss
);
return
monsterList
;
}
...
...
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