-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobjet.hpp
More file actions
38 lines (36 loc) · 730 Bytes
/
objet.hpp
File metadata and controls
38 lines (36 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* Classe d'un objet
* \file objet.hpp
* \author Taylor et Alaa-Eddine
* \date 22 decembre 2021
* Créé le 18 decembre 2021
*/
#pragma once
#include <string>
#include <map>
#include <unordered_map>
#include <memory>
#include <vector>
#include <iostream>
using namespace std;
class Objet
{
public:
Objet(string nom, string description, string action, bool cache = false) :
nom_(nom),
desciption_(description),
action_(action),
estCache_(cache)
{}
virtual ~Objet() = default;
virtual void activerObjet() const;
const string& getNom()const;
const string& getDiscription() const;
void montrerObjet();
bool getEstCache() const;
protected:
string nom_;
string desciption_;
string action_;
bool estCache_;
};