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

35 lines
697 B
C++
Raw Normal View History

#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:
2023-11-24 20:13:28 +01:00
Piece(const 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