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 #include "Food.h"
Nefos 0:337503f9282c 2
Nefos 0:337503f9282c 3 //posXY food;
Nefos 0:337503f9282c 4
Nefos 0:337503f9282c 5
Nefos 0:337503f9282c 6 Food::Food(){
Nefos 0:337503f9282c 7
Nefos 0:337503f9282c 8
Nefos 0:337503f9282c 9
Nefos 0:337503f9282c 10
Nefos 0:337503f9282c 11 }
Nefos 0:337503f9282c 12
Nefos 0:337503f9282c 13 Food::~Food(){
Nefos 0:337503f9282c 14
Nefos 0:337503f9282c 15
Nefos 0:337503f9282c 16
Nefos 0:337503f9282c 17
Nefos 0:337503f9282c 18
Nefos 0:337503f9282c 19 }
Nefos 0:337503f9282c 20 void Food::init(){
Nefos 0:337503f9282c 21
Nefos 0:337503f9282c 22
Nefos 0:337503f9282c 23
Nefos 0:337503f9282c 24
Nefos 0:337503f9282c 25
Nefos 0:337503f9282c 26
Nefos 0:337503f9282c 27 }
Nefos 0:337503f9282c 28
Nefos 0:337503f9282c 29 void Food::draw(){
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 void Food::respawn(){
Nefos 0:337503f9282c 37
Nefos 0:337503f9282c 38
Nefos 0:337503f9282c 39
Nefos 0:337503f9282c 40 }