-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCell.h
More file actions
35 lines (27 loc) · 665 Bytes
/
Cell.h
File metadata and controls
35 lines (27 loc) · 665 Bytes
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
#ifndef CELL_H
#define CELL_H
#include <SFML/Graphics.hpp>
class Cell
{
public:
/** CONSTRUCTORS / DESCTRUCTORS **/
Cell(const sf::Vector2f &pos, const int &height, const bool &light);
Cell() = default;
~Cell() = default;
/** SETTERS **/
void setHeight(const int &height);
void setLight(const bool &light);
void setPos(const sf::Vector2f &pos);
/** GETTERS**/
int getHeight() const;
bool getLight() const;
sf::Vector2f getPos() const;
private:
// Position (x,y) of the cell
sf::Vector2f m_pos;
// Height of the cell
int m_height;
// Light of the cell
bool m_light;
};
#endif // CELL_H