12#include <SFML/Graphics.hpp>
24 float m_target_length;
29 std::vector<std::pair<int, int>> m_position;
34 Cell(
int id,
int type,
int target_surface,
float target_length, sf::Color color);
void remove_position(int x, int y)
Remove a position from the cell.
Definition Cell.cpp:206
void set_target_length(float target_length)
Set the target length of the cell.
Definition Cell.cpp:152
float get_target_length()
Get the target length of the cell.
Definition Cell.cpp:92
std::vector< std::pair< int, int > > get_position()
Get the position of the cell.
Definition Cell.cpp:110
int get_type()
Get the type of the cell.
Definition Cell.cpp:65
int get_target_surface()
Get the target surface of the cell.
Definition Cell.cpp:83
float get_length()
Get the length of the cell.
Definition Cell.cpp:74
void add_position(int x, int y)
Add a position to the cell.
Definition Cell.cpp:195
void set_color(sf::Color color)
Set the color of the cell.
Definition Cell.cpp:162
void set_type(int type)
Set the type of the cell.
Definition Cell.cpp:132
~Cell()
Destroy the Cell:: Cell object.
Definition Cell.cpp:45
void update_length()
Update the length of the cell.
Definition Cell.cpp:231
int get_id()
Get the id of the cell.
Definition Cell.cpp:56
void clear_position()
Clear the position of the cell.
Definition Cell.cpp:222
void print()
Print the cell in the console.
Definition Cell.cpp:173
void set_target_surface(int target_surface)
Set the target surface of the cell.
Definition Cell.cpp:142
void set_id(int id)
Set the id of the cell.
Definition Cell.cpp:122
sf::Color get_color()
Get the color of the cell.
Definition Cell.cpp:101