Created the 'deck' structure, allocate() and initialize() for all structures.
This commit is contained in:
27
lib/deck.h
Normal file
27
lib/deck.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef DECK_H
|
||||
#define DECK_H
|
||||
|
||||
#include "stack.h"
|
||||
|
||||
struct deck {
|
||||
struct stack *stock;
|
||||
|
||||
struct stack *foundation_0;
|
||||
struct stack *foundation_1;
|
||||
struct stack *foundation_2;
|
||||
struct stack *foundation_3;
|
||||
|
||||
struct stack *maneuvre_0;
|
||||
struct stack *maneuvre_1;
|
||||
struct stack *maneuvre_2;
|
||||
struct stack *maneuvre_3;
|
||||
struct stack *maneuvre_4;
|
||||
struct stack *maneuvre_5;
|
||||
struct stack *maneuvre_6;
|
||||
};
|
||||
|
||||
void allocate_deck(struct deck **);
|
||||
void initialize_deck(struct deck *);
|
||||
//void delete_deck(struct deck *);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user