2010-04-03 07:11:27 +00:00
|
|
|
#ifndef DISPLAY_H
|
|
|
|
#define DISPLAY_H
|
|
|
|
|
2011-02-06 06:10:54 +00:00
|
|
|
#include "card.h"
|
|
|
|
#include "stack.h"
|
2010-04-11 20:11:45 +00:00
|
|
|
#include "deck.h"
|
2011-02-17 01:50:29 +00:00
|
|
|
#include "cursor.h"
|
2010-04-05 00:44:31 +00:00
|
|
|
|
2010-04-05 01:48:55 +00:00
|
|
|
#define EMPTY_STACKS_NUMBER 13
|
|
|
|
|
2010-04-03 07:11:27 +00:00
|
|
|
#define DIAMONDS_SYMBOL "\u2666"
|
|
|
|
#define SPADES_SYMBOL "\u2660"
|
|
|
|
#define HEARTS_SYMBOL "\u2665"
|
|
|
|
#define CLUBS_SYMBOL "\u2663"
|
|
|
|
|
2010-04-03 19:34:45 +00:00
|
|
|
#define BLACK_ON_WHITE 1
|
|
|
|
#define RED_ON_WHITE 2
|
|
|
|
#define WHITE_ON_BLUE 3
|
2010-04-21 07:14:39 +00:00
|
|
|
#define WHITE_ON_GREEN 4
|
2010-04-03 19:34:45 +00:00
|
|
|
|
2011-02-06 05:44:45 +00:00
|
|
|
extern const char *program_name;
|
|
|
|
|
2010-04-21 07:14:39 +00:00
|
|
|
void erase_stack(struct stack *);
|
2010-04-13 02:42:21 +00:00
|
|
|
void draw_empty_stacks();
|
2010-04-03 19:34:45 +00:00
|
|
|
void draw_value(struct card *);
|
|
|
|
void draw_suit(struct card *);
|
|
|
|
void draw_front(struct card *);
|
|
|
|
void draw_back(struct card *);
|
|
|
|
void draw_card(struct card *);
|
2010-04-11 20:11:45 +00:00
|
|
|
void draw_stack(struct stack *);
|
2011-02-06 02:22:16 +00:00
|
|
|
void draw_deck(struct deck *);
|
2011-02-17 01:50:29 +00:00
|
|
|
void draw_cursor(struct cursor *);
|
|
|
|
void erase_cursor(struct cursor *);
|
2010-04-03 07:11:27 +00:00
|
|
|
|
|
|
|
#endif
|