-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathciclismo.h
35 lines (31 loc) · 1.02 KB
/
ciclismo.h
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
/*
* Andrea Favero
* 1125545
*/
#ifndef CICLISMO_H
#define CICLISMO_H
#include "allenamento.h"
#include <memory>
#include "data.h"
class Ciclismo : virtual public Allenamento {
unsigned int kmSalita, kmPianura, kmDiscesa;
public:
Ciclismo(std::shared_ptr<Persona>, unsigned int, Data, unsigned int,
unsigned int, unsigned int, unsigned int);
Ciclismo* clone() const override;
std::string tipo() const override;
unsigned int calorie() const override;
unsigned int grassoPerso() const override;
unsigned int saliMinerali() const override;
bool operator==(const Allenamento&) const override;
bool operator>=(const Allenamento&) const override;
bool operator<=(const Allenamento&) const override;
unsigned int getKmSalita() const;
unsigned int getKmDiscesa() const;
unsigned int getKmPianura() const;
void setKmSalita(unsigned int);
void setKmDiscesa(unsigned int);
void setKmPianura(unsigned int);
};
#endif // CICLISMO_H