All the functions used to print.
More...
All the functions used to print.
◆ ft_print_color()
| void ft_print_color |
( |
t_color * | color | ) |
|
Print a color.
- Parameters
-
◆ ft_print_config()
| ssize_t ft_print_config |
( |
t_map * | map | ) |
|
Print the config.
- Parameters
-
- Returns
- ssize_t number of caracter printed
◆ ft_print_file()
| ssize_t ft_print_file |
( |
t_map * | map | ) |
|
Print the whole file.
- Parameters
-
- Returns
- ssize_t number of caracter printed
◆ ft_print_floor_ceiling()
| void ft_print_floor_ceiling |
( |
t_map * | map | ) |
|
Print the colors of floor and ceiling.
- Parameters
-
◆ ft_print_key()
| void ft_print_key |
( |
int | keycode | ) |
|
Print the keycode name if registered or just its value if not.
- Parameters
-
| [in] | keycode | keycode to print |
◆ ft_print_map()
| ssize_t ft_print_map |
( |
t_map * | map | ) |
|
Print the map.
- Parameters
-
- Returns
- ssize_t number of caracter printed
◆ ft_print_position()
| ssize_t ft_print_position |
( |
int | x, |
|
|
int | y ) |
Print a position.
- Parameters
-
- Returns
- ssize_t number of caracter printed
◆ print_error()
Print a special message according to enum.
- Parameters
-
| [in,out] | map | map structure |
| [in] | error | error state |
- Returns
- int 1 if error print OK, 2 otherwise
◆ print_leak_map()
| void print_leak_map |
( |
char ** | map, |
|
|
size_t | y, |
|
|
size_t | x ) |
Print where a leak is located on the map.
- Parameters
-
| [in] | map | array of strings representing map |
| [in] | y | map length |
| [in] | x | map height |
◆ print_map_error()
Print the corresponding map error.
- Parameters
-
| [in,out] | map | map structure |
| [in] | error | error state |
◆ print_map_validate_error()
Print the corresponding map validation error.
- Parameters
-
| [in,out] | map | map structure |
| [in] | error | error state |
◆ print_maze_error()
Print the corresponding maze error.
- Parameters
-
◆ print_visited()
| void print_visited |
( |
char ** | visited, |
|
|
char ** | map ) |
Print the map visited by the DFS (Depth First Search), DFS is used to search if the exterior is accessible by the player 'x' means visited '.' means not visited.
- Parameters
-
| [in] | visited | array of strings referring to visited tiles |
| [in] | map | array of strings referring to original map |