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/Piece.hpp
Mylloon 0f76d1a947
ajouts d’attribut &co
Co-authored-by: Emma <emmbotti@gmail.com>
2023-11-21 12:33:04 +01:00

34 lines
685 B
C++

#ifndef PIECE
#define PIECE
#include <iostream>
class Piece {
friend std::ostream &operator<<(std::ostream &, const Piece &);
// Couleur de la pièce ou type d'animal pour Safari par ex
std::string categorie;
public:
Piece(std::string categorie); // constructor
virtual ~Piece(); // destructor
Piece(const Piece &); // copy constructor
const Piece &operator=(const Piece &); // copy assignement
};
class PieceDames : public Piece {
public:
PieceDames(std::string categorie);
virtual ~PieceDames();
};
class PieceButin : public Piece {
int points;
public:
PieceButin(std::string categorie);
virtual ~PieceButin();
};
#endif