#ifndef JEFF_PILL_H #define JEFF_PILL_H #include "graph.h" #include "bitmap.h" /** * The map which contains the pill values follow this scheme : * [-Energizers-][-Nodes-][[Edge1][Edge2]...[EdgeN]] * Bits 4 N Sum[X=1..N](#Bits(X)) */ typedef struct bmap_and_offset { struct jeff_bmap *bmap; unsigned int offset; } bmap_and_offset_t; struct jeff_bmap* create_pill_table(); unsigned int number_of_pills_eaten(); void extract_pill_table(graph_t *g, struct jeff_bmap *bmap); void print_pill_table(struct jeff_bmap *bmap); unsigned int remaining_pills(struct jeff_bmap *bmap); unsigned int eaten_pills(); #endif /* JEFF_PILL_H */