'draw_deck' is more consistent.
This commit is contained in:
parent
a8c98d4756
commit
8bd7147a8e
@ -94,7 +94,7 @@ void move_cursor(struct cursor *cursor, enum movement movement) {
|
|||||||
/* this is needed because of the screen glitch that moving the cursor
|
/* this is needed because of the screen glitch that moving the cursor
|
||||||
* on the maneuvre's stacks causes */
|
* on the maneuvre's stacks causes */
|
||||||
refresh();
|
refresh();
|
||||||
draw_game(deck);
|
draw_deck(deck);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -197,7 +197,7 @@ void draw_stack(struct stack *stack) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void draw_game(struct deck *deck) {
|
void draw_deck(struct deck *deck) {
|
||||||
draw_stack(deck->stock);
|
draw_stack(deck->stock);
|
||||||
draw_stack(deck->waste_pile);
|
draw_stack(deck->waste_pile);
|
||||||
|
|
||||||
|
@ -25,6 +25,6 @@ void draw_front(struct card *);
|
|||||||
void draw_back(struct card *);
|
void draw_back(struct card *);
|
||||||
void draw_card(struct card *);
|
void draw_card(struct card *);
|
||||||
void draw_stack(struct stack *);
|
void draw_stack(struct stack *);
|
||||||
void draw_game(struct deck *);
|
void draw_deck(struct deck *);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -211,7 +211,7 @@ void initialize_game() {
|
|||||||
|
|
||||||
draw_empty_stacks();
|
draw_empty_stacks();
|
||||||
draw_cursor(cursor);
|
draw_cursor(cursor);
|
||||||
draw_game(deck);
|
draw_deck(deck);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,6 @@ int main(int argc, const char *argv[]) {
|
|||||||
int option;
|
int option;
|
||||||
|
|
||||||
initialize_curses();
|
initialize_curses();
|
||||||
|
|
||||||
greet_player();
|
greet_player();
|
||||||
|
|
||||||
while (option != KEY_SPACEBAR) {
|
while (option != KEY_SPACEBAR) {
|
||||||
|
Loading…
Reference in New Issue
Block a user