This repository has been archived on 2024-01-18. You can view files and clone it, but cannot push or open issues or pull requests.
DamesEtCo/includes/Dames/PieceDames.hpp

29 lines
507 B
C++
Raw Normal View History

#pragma once
2023-12-01 15:26:34 +01:00
#include "../Piece.hpp"
2023-12-01 15:26:34 +01:00
struct PieceDames : public Piece {
enum Categorie {
Blanche,
Noire,
};
PieceDames(const enum Categorie);
virtual ~PieceDames();
2023-12-25 18:54:04 +01:00
2023-12-28 22:05:00 +01:00
// Couleur sur l'écran
sf::Color getScreenColor() const override;
2023-12-19 15:55:56 +01:00
// Getter pour la piece (dame ou non)
bool getDame() const;
2023-12-19 15:55:56 +01:00
// Setter pour la piece (dame ou non)
2023-12-25 19:09:20 +01:00
void setDame(const bool d);
private:
2023-12-12 12:15:53 +01:00
// True si la piece est une dame
bool dame;
2023-12-13 12:01:59 +01:00
std::string to_string(const enum Categorie) const;
2023-12-01 15:26:34 +01:00
};