34 lines
685 B
C++
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
|