|
| | Cell (int id, int type, int target_surface, float target_length, sf::Color color) |
| | Construct a new Cell:: Cell object.
|
| |
|
| ~Cell () |
| | Destroy the Cell:: Cell object.
|
| |
| int | get_id () |
| | Get the id of the cell.
|
| |
| int | get_type () |
| | Get the type of the cell.
|
| |
| float | get_length () |
| | Get the length of the cell.
|
| |
| int | get_target_surface () |
| | Get the target surface of the cell.
|
| |
| float | get_target_length () |
| | Get the target length of the cell.
|
| |
| sf::Color | get_color () |
| | Get the color of the cell.
|
| |
| std::vector< std::pair< int, int > > | get_position () |
| | Get the position of the cell.
|
| |
| void | set_id (int id) |
| | Set the id of the cell.
|
| |
| void | set_type (int type) |
| | Set the type of the cell.
|
| |
| void | set_target_surface (int target_surface) |
| | Set the target surface of the cell.
|
| |
| void | set_target_length (float target_length) |
| | Set the target length of the cell.
|
| |
| void | set_color (sf::Color color) |
| | Set the color of the cell.
|
| |
| void | add_position (int x, int y) |
| | Add a position to the cell.
|
| |
| void | remove_position (int x, int y) |
| | Remove a position from the cell.
|
| |
| void | clear_position () |
| | Clear the position of the cell.
|
| |
| void | print () |
| | Print the cell in the console.
|
| |
| void | update_length () |
| | Update the length of the cell.
|
| |
◆ Cell()
| Cell::Cell |
( |
int |
id, |
|
|
int |
type, |
|
|
int |
target_surface, |
|
|
float |
target_length, |
|
|
sf::Color |
color |
|
) |
| |
Construct a new Cell:: Cell object.
- Parameters
-
| id | id of the cell |
| type | type of the cell |
| target_surface | target surface of the cell |
| target_length | target length of the cell |
| color | color of the cell |
◆ add_position()
| void Cell::add_position |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
Add a position to the cell.
- Parameters
-
| x | the x position |
| y | the y position |
- Returns
- void
◆ clear_position()
| void Cell::clear_position |
( |
| ) |
|
Clear the position of the cell.
- Returns
- void
◆ get_color()
| sf::Color Cell::get_color |
( |
| ) |
|
Get the color of the cell.
- Returns
- sf::Color
◆ get_id()
Get the id of the cell.
- Returns
- int
◆ get_length()
| float Cell::get_length |
( |
| ) |
|
Get the length of the cell.
- Returns
- float
◆ get_position()
| std::vector< std::pair< int, int > > Cell::get_position |
( |
| ) |
|
Get the position of the cell.
- Returns
- std::vector<std::pair<int, int>>
◆ get_target_length()
| float Cell::get_target_length |
( |
| ) |
|
Get the target length of the cell.
- Returns
- float
◆ get_target_surface()
| int Cell::get_target_surface |
( |
| ) |
|
Get the target surface of the cell.
- Returns
- int
◆ get_type()
Get the type of the cell.
- Returns
- int
◆ print()
Print the cell in the console.
- Returns
- void
◆ remove_position()
| void Cell::remove_position |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
Remove a position from the cell.
- Parameters
-
| x | the x position |
| y | the y position |
- Returns
- void
◆ set_color()
| void Cell::set_color |
( |
sf::Color |
color | ) |
|
Set the color of the cell.
- Parameters
-
| color | the color of the cell |
- Returns
- void
◆ set_id()
| void Cell::set_id |
( |
int |
id | ) |
|
Set the id of the cell.
- Parameters
-
- Returns
- void
◆ set_target_length()
| void Cell::set_target_length |
( |
float |
target_length | ) |
|
Set the target length of the cell.
- Parameters
-
| target_length | the target length of the cell |
- Returns
- void
◆ set_target_surface()
| void Cell::set_target_surface |
( |
int |
target_surface | ) |
|
Set the target surface of the cell.
- Parameters
-
| target_surface | the target surface of the cell |
- Returns
- void
◆ set_type()
| void Cell::set_type |
( |
int |
type | ) |
|
Set the type of the cell.
- Parameters
-
- Returns
- void
◆ update_length()
| void Cell::update_length |
( |
| ) |
|
Update the length of the cell.
- Returns
- void
The documentation for this class was generated from the following files: