Corns Library. More...
#include <stdbool.h>

Classes | |
| struct | position |
| struct | corn |
| struct | corns_group |
Defines | |
| #define | NUM_OF_FAKE_CORNS 7 |
| #define | NUM_OF_ALL_CORNS 18 |
Functions | |
| struct corns_group * | get_fake_corns (int left_right_conf, int center_conf) |
| Returns structure containing fake corns in game configuration given by the parameters. | |
| struct corns_group * | get_all_corns (int left_right_conf, int center_conf) |
| Returns structure containing all corns in game configuration given by the parameters. | |
| void | dispose_corns_group (struct corns_group *group) |
| Disposes corns_group properly. | |
| void | print_corns_positions (struct corns_group *corns_group) |
| Print all description of all corns in the corns_group structure pointed to by given argument. | |
| void | print_corn_position (struct corn *corn) |
| Print corns int corns_group structure pointed to by given argument. | |
Corns Library.
Corns Library interface.
| #define NUM_OF_ALL_CORNS 18 |
| #define NUM_OF_FAKE_CORNS 7 |
| void dispose_corns_group | ( | struct corns_group * | group | ) |
Disposes corns_group properly.
| struct corns_group* get_all_corns | ( | int | left_right_conf, | |
| int | center_conf | |||
| ) | [read] |
Returns structure containing all corns in game configuration given by the parameters.
| left_right_conf | configuration of center corns. Has to be 0 - 8. | |
| center_conf | configuration of side corns. Has to be 0 - 3. |

| struct corns_group* get_fake_corns | ( | int | left_right_conf, | |
| int | center_conf | |||
| ) | [read] |
Returns structure containing fake corns in game configuration given by the parameters.
| left_right_conf | configuration of center corns. Has to be 0 - 8. | |
| center_conf | configuration of side corns. Has to be 0 - 3. |


| void print_corn_position | ( | struct corn * | corn | ) |
Print corns int corns_group structure pointed to by given argument.

| void print_corns_positions | ( | struct corns_group * | corns_group | ) |
Print all description of all corns in the corns_group structure pointed to by given argument.

1.7.1