-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCell.h
50 lines (35 loc) · 1 KB
/
Cell.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// Created by obire on 27.11.2019.
//
#ifndef FORESTCREATOR_CELL_H
#define FORESTCREATOR_CELL_H
static const int FUEL = 0;
static const int BURNING = 1;
static const int BURNED = 2;
static const int NFUEL = -1;
class Cell {
//Height of the cell
double height = 10;
//Rate of burning, right now 1.0 means it will be fully burned in 1 time step
double fire_rate = 0.25;
//State of the cell
double state =0.0;
//Status of the cell, according to the model;
int status = FUEL;
//Turn during which it got burned fully
int turn_of_burning = -1;
public:
Cell();
Cell(double height, double fireRate);
double getHeight() const;
int getStatus() const;
void setStatus(int status);
void setHeight(double height);
double getFireRate() const;
void setFireRate(double fireRate);
double getState() const;
void setState(double state);
int getTurnOfBurning() const;
void setTurnOfBurning(int turnOfBurning);
};
#endif //FORESTCREATOR_CELL_H