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/Butin/PieceButin.hpp

27 lines
486 B
C++
Raw Normal View History

#pragma once
2023-12-01 15:26:34 +01:00
#include "../Piece.hpp"
2023-12-28 19:55:50 +01:00
#include "Butin.hpp"
2023-12-01 15:26:34 +01:00
struct PieceButin : public Piece {
enum Categorie {
Jaune = 1,
Rouge = 2,
Noire = 3,
};
2023-12-01 15:26:34 +01:00
2023-12-29 02:09:11 +01:00
PieceButin(const enum Categorie, const int x, const int y);
2023-12-01 15:26:34 +01:00
virtual ~PieceButin();
2023-12-28 22:05:00 +01:00
// Couleur sur l'écran
sf::Color getScreenColor() const override;
2023-12-31 03:58:21 +01:00
// Récupère le nombre de points que la pièce vaut
int getPoints() const;
private:
int points;
std::string to_string(const enum Categorie) const;
2023-12-01 15:26:34 +01:00
};