Graine
Génération procédurale de créatures et apprentissage par réseaux de neurones.
FeelingBar.hpp
Go to the documentation of this file.
1 #ifndef FEELING_BAR
2 #define FEELING_BAR
3 
5 
6 class FeelingBar{
7 
8  private:
9  double max;
10  double value;
11 
12  public:
13  FeelingBar(double max);
14 
15  void addValue(double value);
16  void removeValue(double value);
17 
18  void addPercent(double nbPercent);
19  void removePercent(double nbPercent);
20 
22  double getValue();
23  double getValueInPercent();
24  double getPercent();
25 };
26 
27 #endif
double getValueInPercent()
Definition: FeelingBar.cpp:42
void removeValue(double value)
Remove value to the bar.
Definition: FeelingBar.cpp:23
FeelingBarId
Definition: FeelingBar.hpp:4
double getValue()
Definition: FeelingBar.cpp:38
FeelingBar(double max)
Constructor of the FeelingBar.
Definition: FeelingBar.cpp:12
void addValue(double value)
Add value to the bar.
Definition: FeelingBar.cpp:16
Definition: FeelingBar.hpp:4
Definition: FeelingBar.hpp:6
Definition: FeelingBar.hpp:4
void addPercent(double nbPercent)
Add a certain percent amount to the bar.
Definition: FeelingBar.cpp:30
double getPercent()
Definition: FeelingBar.cpp:46
void removePercent(double nbPercent)
Remove a certain percent amount of the bar.
Definition: FeelingBar.cpp:34
Definition: FeelingBar.hpp:4