Final Submission. I have read and agreed with Statement of Academic Integrity.

Dependencies:   mbed Gamepad N5110 Joystick

Committer:
el16dlc
Date:
Wed May 08 19:32:05 2019 +0000
Revision:
1:b9f3b7d869d8
Child:
2:0bd6711eae26
2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el16dlc 1:b9f3b7d869d8 1 #ifndef SNAKE_H
el16dlc 1:b9f3b7d869d8 2 #define SNAKE_H
el16dlc 1:b9f3b7d869d8 3
el16dlc 1:b9f3b7d869d8 4 #include "mbed.h"
el16dlc 1:b9f3b7d869d8 5 #include "N5110.h"
el16dlc 1:b9f3b7d869d8 6 #include "Gamepad.h"
el16dlc 1:b9f3b7d869d8 7
el16dlc 1:b9f3b7d869d8 8 class Snake {
el16dlc 1:b9f3b7d869d8 9
el16dlc 1:b9f3b7d869d8 10 public:
el16dlc 1:b9f3b7d869d8 11 // constructor
el16dlc 1:b9f3b7d869d8 12 Snake();
el16dlc 1:b9f3b7d869d8 13
el16dlc 1:b9f3b7d869d8 14 // destructor
el16dlc 1:b9f3b7d869d8 15 ~Snake();
el16dlc 1:b9f3b7d869d8 16
el16dlc 1:b9f3b7d869d8 17 void init();
el16dlc 1:b9f3b7d869d8 18 void draw_head(N5110 &lcd);
el16dlc 1:b9f3b7d869d8 19
el16dlc 1:b9f3b7d869d8 20 private:
el16dlc 1:b9f3b7d869d8 21 int _snake_posX;
el16dlc 1:b9f3b7d869d8 22 int _snake_posY;
el16dlc 1:b9f3b7d869d8 23 };
el16dlc 1:b9f3b7d869d8 24 #endif
el16dlc 1:b9f3b7d869d8 25