Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Romain De Laage De Bellefaye
LO21-projet
Commits
337f58ac
Commit
337f58ac
authored
May 23, 2021
by
Victor Blanchet
Browse files
Update reseau_cellule_etats.cpp
parent
d237a7d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Reseau_Cellule_Etat/reseau_cellule_etats.cpp
View file @
337f58ac
...
...
@@ -2,6 +2,8 @@
#include
<iostream>
#include
<iomanip>
using
namespace
std
;
//méthodes de la classe EnsembleEtat
EnsembleEtat
::
Handler
EnsembleEtat
::
handler
;
...
...
@@ -25,8 +27,8 @@ void EnsembleEtat::libererInstance() {
handler
.
instance
=
nullptr
;
}
void
EnsembleEtat
::
ajouterEtat
(
unsigned
int
ind
,
std
::
string
lab
,
int
r
,
int
g
,
int
b
,
int
a
){
handler
.
instance
->
ensEtats
[
nbEtats
]
=
new
Etat
(
ind
,
lab
,
r
,
g
,
b
,
a
);
void
EnsembleEtat
::
ajouterEtat
(
unsigned
int
ind
,
std
::
string
lab
,
int
r
,
int
g
,
int
b
){
handler
.
instance
->
ensEtats
[
nbEtats
]
=
new
Etat
(
ind
,
lab
,
r
,
g
,
b
);
nbEtats
++
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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