Incendie
Main Page
Related Pages
Classes
Files
File List
Moteur
vent.h
1
#ifndef VENT_H
2
#define VENT_H
3
4
#include <string>
5
#include <sstream>
6
#include <cmath>
7
8
#include "../debug.h"
9
#include "coordonnee.h"
10
11
class
Vent
12
{
13
private
:
14
// Coordonnee direction;
15
float
power_h;
// direction horizontale
16
float
power_v;
// direction verticale
17
18
public
:
19
Vent
();
20
Vent
(
float
_power_h,
float
_power_v);
21
Vent
(
const
Vent
& other);
22
virtual
~
Vent
();
23
24
// Getters and setters
25
void
setPower_h(
float
val);
26
void
setPower_v(
float
val);
27
28
int
getPower_h()
const
{
return
(
int
)power_h; };
29
int
getPower_v()
const
{
return
(
int
)power_v; };
30
31
32
virtual
Vent
& operator+(
const
Vent
& other);
33
virtual
Vent
& operator-(
const
Vent
& other);
34
virtual
Vent
& operator*(
float
coefficient);
35
virtual
Vent
& operator/(
float
coefficient);
36
37
virtual
Vent
& operator=(
const
Vent
& other);
38
virtual
Vent
& operator+=(
const
Vent
& other);
39
40
std::string toString()
const
;
41
42
int
getSpeed()
const
;
43
// std::ostringstream os;
44
45
};
46
47
std::ostream& operator<<(std::ostream& os,
const
Vent
& vent);
48
49
#endif // VENT_H
Vent
Definition:
vent.h:11
Generated by
1.8.11