tty-solitaire/lib/display.h
2011-05-08 20:20:22 -03:00

33 lines
713 B
C

#ifndef DISPLAY_H
#define DISPLAY_H
#include "card.h"
#include "stack.h"
#include "deck.h"
#include "cursor.h"
#define EMPTY_STACKS_NUMBER 13
#define DIAMONDS_SYMBOL "\u2666"
#define SPADES_SYMBOL "\u2660"
#define HEARTS_SYMBOL "\u2665"
#define CLUBS_SYMBOL "\u2663"
#define BLACK_ON_WHITE 1
#define RED_ON_WHITE 2
#define WHITE_ON_BLUE 3
#define WHITE_ON_GREEN 4
void erase_stack(struct stack *);
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 *);
void draw_stack(struct stack *);
void draw_deck(struct deck *);
void draw_cursor(struct cursor *);
void erase_cursor(struct cursor *);
#endif