Added functions to cover and expose cards.

This commit is contained in:
Murilo Soares Pereira 2010-04-10 00:45:54 -03:00
parent 0c798f3d56
commit d7f349a82c
2 changed files with 14 additions and 0 deletions

View File

@ -39,3 +39,15 @@ void set_card(struct card *card,
return;
}
void expose_card(struct card *card) {
card->face = EXPOSED;
return;
}
void cover_card(struct card *card) {
card->face = COVERED;
return;
}

View File

@ -45,5 +45,7 @@ void allocate_card(struct card **);
void initialize_card(struct card *);
void delete_card(struct card *);
void set_card(struct card *, enum value, enum suit, enum face, int, int);
void expose_card(struct card *);
void cover_card(struct card *);
#endif