Added function to set the initial deck's stacks coordinates on screen.
This commit is contained in:
28
lib/deck.h
28
lib/deck.h
@@ -5,6 +5,33 @@
|
||||
|
||||
#define NUMBER_OF_CARDS 52
|
||||
|
||||
#define STOCK_STARTING_X 1
|
||||
#define STOCK_STARTING_Y 1
|
||||
#define WASTE_PILE_STARTING_X 9
|
||||
#define WASTE_PILE_STARTING_Y 1
|
||||
#define FOUNDATION_0_STARTING_X 25
|
||||
#define FOUNDATION_0_STARTING_Y 1
|
||||
#define FOUNDATION_1_STARTING_X 33
|
||||
#define FOUNDATION_1_STARTING_Y 1
|
||||
#define FOUNDATION_2_STARTING_X 41
|
||||
#define FOUNDATION_2_STARTING_Y 1
|
||||
#define FOUNDATION_3_STARTING_X 49
|
||||
#define FOUNDATION_3_STARTING_Y 1
|
||||
#define MANEUVRE_0_STARTING_X 1
|
||||
#define MANEUVRE_0_STARTING_Y 7
|
||||
#define MANEUVRE_1_STARTING_X 9
|
||||
#define MANEUVRE_1_STARTING_Y 7
|
||||
#define MANEUVRE_2_STARTING_X 17
|
||||
#define MANEUVRE_2_STARTING_Y 7
|
||||
#define MANEUVRE_3_STARTING_X 25
|
||||
#define MANEUVRE_3_STARTING_Y 7
|
||||
#define MANEUVRE_4_STARTING_X 33
|
||||
#define MANEUVRE_4_STARTING_Y 7
|
||||
#define MANEUVRE_5_STARTING_X 41
|
||||
#define MANEUVRE_5_STARTING_Y 7
|
||||
#define MANEUVRE_6_STARTING_X 49
|
||||
#define MANEUVRE_6_STARTING_Y 7
|
||||
|
||||
struct deck {
|
||||
struct stack *stock;
|
||||
struct stack *waste_pile;
|
||||
@@ -26,6 +53,7 @@ struct deck {
|
||||
void allocate_deck(struct deck **);
|
||||
void initialize_deck(struct deck *);
|
||||
void delete_deck(struct deck *);
|
||||
void set_deck_stacks_coordinates(struct deck *);
|
||||
void fill_deck(struct deck *);
|
||||
void shuffle_deck(struct deck *);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user