ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el17sdl_v2

Dependencies:   mbed

Committer:
sdlashmar
Date:
Thu May 21 13:55:57 2020 +0000
Revision:
7:c67a5c6a874f
Parent:
5:256e5e0b6cd7
Child:
11:c4b740a970f8
Game enine revision 1 (untested)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sdlashmar 5:256e5e0b6cd7 1 #ifndef SNAKETAIL_H
sdlashmar 5:256e5e0b6cd7 2 #define SNAKETAIL_H
sdlashmar 5:256e5e0b6cd7 3
sdlashmar 5:256e5e0b6cd7 4 #include "mbed.h"
sdlashmar 5:256e5e0b6cd7 5 #include "Gamepad.h"
sdlashmar 5:256e5e0b6cd7 6 #include "N5110.h"
sdlashmar 7:c67a5c6a874f 7 #include "SnakeHead.h"
sdlashmar 5:256e5e0b6cd7 8
sdlashmar 5:256e5e0b6cd7 9 class SnakeTail
sdlashmar 5:256e5e0b6cd7 10
sdlashmar 5:256e5e0b6cd7 11 {
sdlashmar 5:256e5e0b6cd7 12
sdlashmar 5:256e5e0b6cd7 13 public:
sdlashmar 5:256e5e0b6cd7 14
sdlashmar 5:256e5e0b6cd7 15 SnakeTail();
sdlashmar 5:256e5e0b6cd7 16 ~SnakeTail();
sdlashmar 7:c67a5c6a874f 17 void update(Vector2D headPos, int length);
sdlashmar 7:c67a5c6a874f 18 void draw(N5110 &lcd, int length);
sdlashmar 5:256e5e0b6cd7 19
sdlashmar 5:256e5e0b6cd7 20
sdlashmar 5:256e5e0b6cd7 21 private:
sdlashmar 5:256e5e0b6cd7 22
sdlashmar 5:256e5e0b6cd7 23 int tailX[];
sdlashmar 5:256e5e0b6cd7 24 int tailY[];
sdlashmar 5:256e5e0b6cd7 25 };
sdlashmar 5:256e5e0b6cd7 26
sdlashmar 5:256e5e0b6cd7 27 #endif
sdlashmar 5:256e5e0b6cd7 28