Erasing stacks when empty. Also moved some event-related code to the keyboard object.

This commit is contained in:
Murilo Soares Pereira
2010-04-21 04:14:39 -03:00
parent 87909b5075
commit 7b39ec5cc6
11 changed files with 50 additions and 16 deletions
+2 -1
View File
@@ -3,7 +3,7 @@
#include "card.h"
#define MANEUVRE_STACKS_START_Y 7
#define MANEUVRE_STACKS_STARTING_Y 7
struct stack {
struct card *card;
@@ -18,6 +18,7 @@ int length(struct stack *);
void push(struct stack **, struct card *);
struct stack *pop(struct stack **);
bool maneuvre_stack(struct stack *);
bool waste_pile_stack(struct stack *);
void refresh_card_coordinates(struct stack *, struct stack *);
void move_card(struct stack **, struct stack **);