Mylloon
bf74632047
* add const identifiers * expose category for children * documentation * helper for ignoring arguments * reduce useless imports * use enum for categories * refactor Dames instanciation
18 lines
454 B
C++
18 lines
454 B
C++
#pragma once
|
|
|
|
#include <iostream>
|
|
|
|
class Piece {
|
|
friend std::ostream &operator<<(std::ostream &, const Piece &);
|
|
|
|
protected:
|
|
// Couleur de la pièce ou type d'animal pour Safari par ex
|
|
std::string categorie;
|
|
|
|
public:
|
|
Piece(const std::string categorie); // constructor
|
|
virtual ~Piece(); // destructor
|
|
|
|
Piece(const Piece &); // copy constructor
|
|
const Piece &operator=(const Piece &); // copy assignement
|
|
};
|