Snake game food library

Committer:
Nefos
Date:
Fri May 05 11:55:49 2017 +0000
Revision:
0:337503f9282c
Child:
1:8d4639c9d1b0
Food class created;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Nefos 0:337503f9282c 1 #ifndef FOOD_H
Nefos 0:337503f9282c 2 #define FOOD_H
Nefos 0:337503f9282c 3
Nefos 0:337503f9282c 4
Nefos 0:337503f9282c 5 #include "mbed.h"
Nefos 0:337503f9282c 6 #include "N5110.h"
Nefos 0:337503f9282c 7 #include "Gamepad.h"
Nefos 0:337503f9282c 8 //#include "Snake.h"
Nefos 0:337503f9282c 9 struct posXY{
Nefos 0:337503f9282c 10 int x;
Nefos 0:337503f9282c 11 int y;
Nefos 0:337503f9282c 12
Nefos 0:337503f9282c 13 };
Nefos 0:337503f9282c 14 class Food
Nefos 0:337503f9282c 15 {
Nefos 0:337503f9282c 16
Nefos 0:337503f9282c 17
Nefos 0:337503f9282c 18
Nefos 0:337503f9282c 19 public:
Nefos 0:337503f9282c 20
Nefos 0:337503f9282c 21 Food();
Nefos 0:337503f9282c 22 ~Food();
Nefos 0:337503f9282c 23 void init();
Nefos 0:337503f9282c 24 void draw();
Nefos 0:337503f9282c 25 void respawn();
Nefos 0:337503f9282c 26
Nefos 0:337503f9282c 27
Nefos 0:337503f9282c 28 private:
Nefos 0:337503f9282c 29
Nefos 0:337503f9282c 30
Nefos 0:337503f9282c 31
Nefos 0:337503f9282c 32
Nefos 0:337503f9282c 33 };
Nefos 0:337503f9282c 34
Nefos 0:337503f9282c 35
Nefos 0:337503f9282c 36
Nefos 0:337503f9282c 37
Nefos 0:337503f9282c 38
Nefos 0:337503f9282c 39
Nefos 0:337503f9282c 40
Nefos 0:337503f9282c 41 #endif