Removed GUI related code from card code.
This commit is contained in:
parent
7c4c16e705
commit
8960ae7f84
@ -1,7 +1,7 @@
|
|||||||
#include <ncurses.h>
|
#include <ncurses.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include "card.h"
|
|
||||||
#include "frame.h"
|
#include "frame.h"
|
||||||
|
#include "card.h"
|
||||||
#include "../src/common.h"
|
#include "../src/common.h"
|
||||||
|
|
||||||
struct card *initialize_card() {
|
struct card *initialize_card() {
|
||||||
@ -37,8 +37,3 @@ void set_card(struct card *card,
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void refresh_card(struct card *card) {
|
|
||||||
box(card->frame->shape, 0, 0);
|
|
||||||
wrefresh(card->frame->shape);
|
|
||||||
}
|
|
||||||
|
@ -42,6 +42,5 @@ struct card {
|
|||||||
struct card *initialize_card();
|
struct card *initialize_card();
|
||||||
void delete_card(struct card *);
|
void delete_card(struct card *);
|
||||||
void set_card(struct card *, enum value, enum suit, enum face, int, int);
|
void set_card(struct card *, enum value, enum suit, enum face, int, int);
|
||||||
void refresh_card(struct card *);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user