2010-04-13 02:42:21 +00:00
|
|
|
#ifndef GAME_H
|
|
|
|
#define GAME_H
|
|
|
|
|
2011-02-20 21:45:15 +00:00
|
|
|
#include "stack.h"
|
2010-04-13 02:42:21 +00:00
|
|
|
#include "deck.h"
|
2011-02-06 02:15:21 +00:00
|
|
|
#include "cursor.h"
|
2010-04-13 02:42:21 +00:00
|
|
|
|
|
|
|
#define NUMBER_OF_CARDS 52
|
|
|
|
|
2011-05-09 03:38:31 +00:00
|
|
|
#define MANEUVRE_STACKS_BEGIN_Y 7
|
|
|
|
|
|
|
|
#define STOCK_BEGIN_X 1
|
|
|
|
#define STOCK_BEGIN_Y 1
|
|
|
|
|
|
|
|
#define WASTE_PILE_BEGIN_X 9
|
|
|
|
#define WASTE_PILE_BEGIN_Y 1
|
|
|
|
|
|
|
|
#define FOUNDATION_BEGIN_Y 1
|
|
|
|
#define FOUNDATION_0_BEGIN_X 25
|
|
|
|
#define FOUNDATION_1_BEGIN_X 33
|
|
|
|
#define FOUNDATION_2_BEGIN_X 41
|
|
|
|
#define FOUNDATION_3_BEGIN_X 49
|
|
|
|
|
|
|
|
#define MANEUVRE_BEGIN_Y 9
|
|
|
|
#define MANEUVRE_0_BEGIN_X 1
|
|
|
|
#define MANEUVRE_1_BEGIN_X 9
|
|
|
|
#define MANEUVRE_2_BEGIN_X 17
|
|
|
|
#define MANEUVRE_3_BEGIN_X 25
|
|
|
|
#define MANEUVRE_4_BEGIN_X 33
|
|
|
|
#define MANEUVRE_5_BEGIN_X 41
|
|
|
|
#define MANEUVRE_6_BEGIN_X 49
|
2011-02-20 21:45:15 +00:00
|
|
|
|
2010-04-20 04:10:42 +00:00
|
|
|
struct deck *deck;
|
2011-02-06 02:15:21 +00:00
|
|
|
struct cursor *cursor;
|
2010-04-20 04:10:42 +00:00
|
|
|
|
2011-05-08 02:09:39 +00:00
|
|
|
bool valid_move(struct stack *, struct stack *);
|
|
|
|
bool maneuvre_stack(struct stack *);
|
2011-02-17 00:26:18 +00:00
|
|
|
void move_card(struct stack **, struct stack **);
|
2010-04-13 04:07:00 +00:00
|
|
|
void greet_player();
|
2010-04-13 02:42:21 +00:00
|
|
|
void initialize_game();
|
|
|
|
void end_game();
|
|
|
|
|
|
|
|
#endif
|