Classes | Defines | Functions

corns_configs.h File Reference

Corns Library. More...

#include <stdbool.h>
Include dependency graph for corns_configs.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  position
struct  corn
struct  corns_group

Defines

#define NUM_OF_FAKE_CORNS   7
#define NUM_OF_ALL_CORNS   18

Functions

struct corns_groupget_fake_corns (int left_right_conf, int center_conf)
 Returns structure containing fake corns in game configuration given by the parameters.
struct corns_groupget_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.

Detailed Description

Corns Library.

Corns Library interface.

Author:
Filip Jares

Define Documentation

#define NUM_OF_ALL_CORNS   18
#define NUM_OF_FAKE_CORNS   7

Function Documentation

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.

Parameters:
left_right_conf configuration of center corns. Has to be 0 - 8.
center_conf configuration of side corns. Has to be 0 - 3.

Here is the call graph for this function:

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.

Parameters:
left_right_conf configuration of center corns. Has to be 0 - 8.
center_conf configuration of side corns. Has to be 0 - 3.

Here is the call graph for this function:

Here is the caller graph for this function:

void print_corn_position ( struct corn corn  ) 

Print corns int corns_group structure pointed to by given argument.

Here is the call graph for this function:

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.

Here is the call graph for this function: