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 bf74632047
update
* add const identifiers
* expose category for children
* documentation
* helper for ignoring arguments
* reduce useless imports
* use enum for categories
* refactor Dames instanciation
2023-12-14 17:09:27 +01:00

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
};