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
504 B
C++
Raw Permalink 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
2024-01-12 01:15:19 +01:00
struct PieceButin final : 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
2023-12-31 04:59:45 +01:00
const sf::Color getScreenColor() const override;
2023-12-28 22:05:00 +01:00
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;
2023-12-31 04:59:45 +01:00
const std::string to_string(const enum Categorie) const;
2023-12-01 15:26:34 +01:00
};