When a card is moved between stacks, its coordinates are refreshed.
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
#include "card.h"
|
||||
|
||||
#define MANEUVRE_STACKS_START_Y 7
|
||||
|
||||
struct stack {
|
||||
struct card *card;
|
||||
struct stack *next;
|
||||
@@ -15,6 +17,8 @@ bool empty(struct stack *);
|
||||
int length(struct stack *);
|
||||
void push(struct stack **, struct card *);
|
||||
struct stack *pop(struct stack **);
|
||||
bool maneuvre_stack(struct stack *);
|
||||
void refresh_card_coordinates(struct stack *, struct stack *);
|
||||
void move_card(struct stack **, struct stack **);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user