-
Notifications
You must be signed in to change notification settings - Fork 0
/
shoot.h
44 lines (33 loc) · 1.14 KB
/
shoot.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef _GRAPH_DATA_STRUCTURES_H
#define _GRAPH_DATA_STRUCTURES_H
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 500
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "internal_graph_structures.h"
#include "coloring_algorithm.h"
#ifndef DAYS_OF_WEEK
#define DAYS_OF_WEEK
#define MONDAY 0x1
#define TUESDAY 0x2
#define WEDNESDAY 0x4
#define THURSDAY 0x8
#define FRIDAY 0x10
#endif
//This data structure is for the users convienience, it is tied
//to the field space variable in the internal code. We need to think
//of more dynamic ways to do this in the future so it's not all hardcoded.
enum time_slot { FIVE, SIX, SIX_THIRTY, SEVEN_THIRTY, EIGHT };
int read_entries(FILE * input_file);
/* This is a wrapper function for the high layer to use to access the internal
* coloring data structures in a controlled way, which days shouldn't be bigger than 27*/
int make_new_field_space(char * name, int number_of_teams, enum time_slot what_time, unsigned int which_days);
void print_team_node_info();
void print_graph_representation();
void print_subgraph_info();
void print_field_info();
int make_shoot_graph();
void cleanup_graph();
#endif