Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jean Descamps
projet_IA04
Commits
95c6ff2f
Commit
95c6ff2f
authored
Dec 31, 2021
by
Louis Soto
Browse files
correctif levels
parent
38e28ee5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Boid/game/level.go
View file @
95c6ff2f
...
...
@@ -9,6 +9,7 @@ type Level struct {
MaxForce
float64
MaxSpeed
float64
polygonSize
float64
SharkDensity
int
}
func
NewLevel
(
RepulsionFactorBtwnSpecies
float64
,
...
...
@@ -18,7 +19,8 @@ func NewLevel(RepulsionFactorBtwnSpecies float64,
numWall
int
,
MaxForce
float64
,
MaxSpeed
float64
,
polgonSize
float64
)
*
Level
{
polgonSize
float64
,
SharkDensity
int
)
*
Level
{
return
&
Level
{
RepulsionFactorBtwnSpecies
,
SeparationPerception
,
CohesionPerception
,
...
...
@@ -26,5 +28,6 @@ func NewLevel(RepulsionFactorBtwnSpecies float64,
numWall
,
MaxForce
,
MaxSpeed
,
polgonSize
}
polgonSize
,
SharkDensity
}
}
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment