2010-04-12 23:42:21 -03:00
|
|
|
#ifndef GAME_H
|
|
|
|
#define GAME_H
|
|
|
|
|
2011-02-20 18:45:15 -03:00
|
|
|
#include "stack.h"
|
2010-04-12 23:42:21 -03:00
|
|
|
#include "deck.h"
|
2011-02-06 00:15:21 -02:00
|
|
|
#include "cursor.h"
|
2010-04-12 23:42:21 -03:00
|
|
|
|
|
|
|
#define NUMBER_OF_CARDS 52
|
|
|
|
|
2011-02-20 18:45:15 -03:00
|
|
|
#define MANEUVRE_STACKS_STARTING_Y 7
|
|
|
|
|
|
|
|
#define STOCK_STARTING_X 1
|
|
|
|
#define STOCK_STARTING_Y 1
|
|
|
|
|
|
|
|
#define WASTE_PILE_STARTING_X 9
|
|
|
|
#define WASTE_PILE_STARTING_Y 1
|
|
|
|
|
|
|
|
#define FOUNDATION_STARTING_Y 1
|
|
|
|
#define FOUNDATION_0_STARTING_X 25
|
|
|
|
#define FOUNDATION_1_STARTING_X 33
|
|
|
|
#define FOUNDATION_2_STARTING_X 41
|
|
|
|
#define FOUNDATION_3_STARTING_X 49
|
|
|
|
|
|
|
|
#define MANEUVRE_STARTING_Y 9
|
|
|
|
#define MANEUVRE_0_STARTING_X 1
|
|
|
|
#define MANEUVRE_1_STARTING_X 9
|
|
|
|
#define MANEUVRE_2_STARTING_X 17
|
|
|
|
#define MANEUVRE_3_STARTING_X 25
|
|
|
|
#define MANEUVRE_4_STARTING_X 33
|
|
|
|
#define MANEUVRE_5_STARTING_X 41
|
|
|
|
#define MANEUVRE_6_STARTING_X 49
|
|
|
|
|
2011-02-06 03:44:45 -02:00
|
|
|
extern const char *program_name;
|
2010-04-20 01:10:42 -03:00
|
|
|
struct deck *deck;
|
2011-02-06 00:15:21 -02:00
|
|
|
struct cursor *cursor;
|
2010-04-20 01:10:42 -03:00
|
|
|
|
2011-02-16 22:26:18 -02:00
|
|
|
void move_card(struct stack **, struct stack **);
|
2010-04-13 01:07:00 -03:00
|
|
|
void greet_player();
|
2010-04-12 23:42:21 -03:00
|
|
|
void initialize_game();
|
|
|
|
void end_game();
|
|
|
|
|
|
|
|
#endif
|