colors
This commit is contained in:
parent
e121807660
commit
71c27206b2
1 changed files with 3 additions and 2 deletions
|
@ -41,7 +41,7 @@ void PlateauSafari::afficherPlateau(std::ostream &out, const bool d) const {
|
|||
// Remet la couleur de l'outline par défaut
|
||||
rhinoceros.setOutlineColor(sf::Color::Transparent);
|
||||
elephant.setOutlineColor(sf::Color::Transparent);
|
||||
lion.setOutlineColor(sf::Color::Transparent);
|
||||
lion.setOutlineColor(sf::Color::Black);
|
||||
|
||||
const float x = i * tailleCellule;
|
||||
const float y = j * tailleCellule;
|
||||
|
@ -58,7 +58,6 @@ void PlateauSafari::afficherPlateau(std::ostream &out, const bool d) const {
|
|||
// Alternation des couleurs
|
||||
if ((i + j) % 2 == 0) {
|
||||
cell.setFillColor(jaune);
|
||||
lion.setOutlineColor(sf::Color::Black);
|
||||
if (d) {
|
||||
out << ", J), ";
|
||||
}
|
||||
|
@ -77,6 +76,8 @@ void PlateauSafari::afficherPlateau(std::ostream &out, const bool d) const {
|
|||
if (p != nullptr) {
|
||||
if (p->isSelectionnee()) {
|
||||
lion.setOutlineColor(sf::Color::Green);
|
||||
rhinoceros.setOutlineColor(sf::Color::Green);
|
||||
elephant.setOutlineColor(sf::Color::Green);
|
||||
}
|
||||
switch (dynamic_cast<const PieceSafari *>(p)->getCategory()) {
|
||||
case PieceSafari::Elephant: {
|
||||
|
|
Reference in a new issue