tty-solitaire/lib/deck.h

47 lines
792 B
C
Raw Normal View History

#ifndef DECK_H
#define DECK_H
#include "stack.h"
2010-04-22 04:50:19 +00:00
enum stack_name {
STOCK,
WASTE_PILE,
FOUNDATION_0,
FOUNDATION_1,
FOUNDATION_2,
FOUNDATION_3,
MANEUVRE_0,
MANEUVRE_1,
MANEUVRE_2,
MANEUVRE_3,
MANEUVRE_4,
MANEUVRE_5,
MANEUVRE_6
};
struct deck {
struct stack *stock;
2010-04-09 03:12:06 +00:00
struct stack *waste_pile;
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;
};
extern const char *program_name;
void allocate_deck(struct deck **);
void initialize_deck(struct deck *);
2010-04-07 00:59:21 +00:00
void delete_deck(struct deck *);
#endif