summaryrefslogtreecommitdiffstats
path: root/src/paddle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/paddle.h')
-rw-r--r--src/paddle.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/paddle.h b/src/paddle.h
index 5f7de67..46891ba 100644
--- a/src/paddle.h
+++ b/src/paddle.h
@@ -7,12 +7,19 @@ static const int PADDLE_H_SIZE_NORMAL = 8;
static const int PADDLE_V_SIZE_NORMAL = 4;
static const int PADDLE_H_SPEED_NORMAL = 2;
static const int PADDLE_V_SPEED_NORMAL = 1;
+enum paddle_type {
+ PADDLE_TYPE_H,
+ PADDLE_TYPE_V
+};
struct paddle {
int pos;
int size;
int speed;
int dir;
+ int type;
};
+void update_paddle(struct paddle *pad);
+
#endif