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/Safari/Safari.hpp

31 lines
667 B
C++
Raw Normal View History

#pragma once
2023-12-27 22:44:32 +01:00
#include "../Jeu.hpp"
#include "PieceSafari.hpp"
#include "PlateauSafari.hpp"
2023-12-10 15:03:07 +01:00
2023-12-27 22:44:32 +01:00
class Safari : private Jeu {
friend std::ostream &operator<<(std::ostream &, const Safari &);
// Plateau de jeu
2023-12-10 15:03:07 +01:00
PlateauSafari plateau;
// Joueurs
2023-12-27 22:44:32 +01:00
Joueur &joueur2;
Joueur *joueur3;
// Barrières
std::vector<PieceSafari *> barrieres;
public:
2023-12-27 22:44:32 +01:00
Safari(Joueur &joueur1, Joueur &joueur2,
Joueur *joueur3 = nullptr); // constructor
virtual ~Safari(); // destructor
2023-12-10 15:03:07 +01:00
// Fonction d'initialisation du jeu
2023-12-28 00:04:30 +01:00
void init() override;
// Fonction d'initialisation du jeu
void choixAnimal(const PieceSafari::Categorie animal) const;
};