Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CPP Ecosystem Project
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
Container 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
RIVOAL Samuel
CPP Ecosystem Project
Merge requests
!20
Aymeric
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Aymeric
Aymeric
into
master
Overview
0
Commits
11
Pipelines
0
Changes
3
Merged
BERTHOUMIEU Aymeric
requested to merge
Aymeric
into
master
4 years ago
Overview
0
Commits
11
Pipelines
0
Changes
3
0
0
Merge request reports
Viewing commit
dda60657
Prev
Next
Show latest version
3 files
+
4
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
dda60657
correction of name b_multiple
· dda60657
Aymeric berthoumieu
authored
4 years ago
src/Environment.cpp
+
2
−
1
View file @ dda60657
Edit in single-file editor
Open in Web IDE
Show full file
@@ -15,6 +15,7 @@ Environment::Environment(int _width, int _height, int nbAnimalsToStartWith, Anim
UImg
(
_width
,
_height
,
1
,
3
),
width
(
_width
),
height
(
_height
),
petCreator
(
factory
),
statistics
(
stats
){
cout
<<
"const Environment"
<<
endl
;
this
->
nb_steps
=
0
;
this
->
animals
=
this
->
petCreator
.
initializePopulation
(
nbAnimalsToStartWith
);
std
::
srand
(
time
(
NULL
));
}
@@ -99,7 +100,7 @@ void Environment::die() {
statistics
.
modifyData
(
behaviour
,
false
);
}
// Captors and accessories
// TODO
// TODO
: decrement accessories and captors
/*std::vector <std::string> acc = (*iter)->getAccessoriesAndCaptors();
for (std::string element : acc) {
statistics.modifyData(element, false);
Loading