-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlandscape_interface.h
49 lines (38 loc) · 951 Bytes
/
landscape_interface.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
#ifndef LANDSCAPE_INTERFACE_H
#define LANDSCAPE_INTERFACE_H
#include "cell.h"
namespace wildland_firesim {
/*!
* \brief The LandscapeInterface class
* is a virtual class providing the interface for fire-landscape interactions.
*/
class LandscapeInterface {
public:
virtual ~LandscapeInterface() = default;
/*!
* \brief getWidth
* returns the width of the landscape
* \return
*/
virtual int getWidth() const noexcept = 0;
/*!
* \brief getHeight
* Returns the height in cells of the landscape.
* \return
*/
virtual int getHeight() const noexcept = 0;
/*!
* \brief getCellInformation
* \param x
* \param y
* \return
*/
virtual Cell *getCellInformation(int x, int y) = 0;
/*!
* \brief getCellSize
* \return
*/
virtual int getCellSize() const noexcept = 0;
};
} // namespace wildland_firesim
#endif // LANDSCAPE_INTERFACE_H