
Final Commit
Dependencies: mbed
Diff: SnakeEngine/SnakeEngine.h
- Revision:
- 19:b437806e579b
- Parent:
- 18:406fc298a7c4
- Child:
- 20:277e88a8185f
diff -r 406fc298a7c4 -r b437806e579b SnakeEngine/SnakeEngine.h --- a/SnakeEngine/SnakeEngine.h Mon Apr 30 08:11:40 2018 +0000 +++ b/SnakeEngine/SnakeEngine.h Mon Apr 30 10:13:35 2018 +0000 @@ -50,13 +50,13 @@ SnakeEngine(); // constructor ~SnakeEngine(); // destructor - void init(); // initiallises the position of the food, and snake + void init(Direction in, Direction cur, int pos_x, int pos_y); // initiallises the position of the food, and snake void draw(N5110 &lcd); // draws snake/food to the lcd void update(Gamepad &pad); // updates depending on gamepad input void get_input(Gamepad &pad); // gets the input from the gamepad bool detect_food_collision(Gamepad &pad); - bool detect_wall_collision(); + bool detect_wall_collision(Gamepad &pad); bool detect_tail_collision(); void set_tail_length(bool collision_detected);