Doxygen comments added

Dependencies:   mbed Gamepad N5110

Committer:
rafeh
Date:
Mon May 06 10:57:08 2019 +0000
Revision:
6:bc580b480ac8
Parent:
4:e98b22e5d5e8
Child:
7:05f433e196d6
updated bird class

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rafeh 3:5409b50b01b0 1 #include "Pipes.h"
rafeh 3:5409b50b01b0 2
rafeh 3:5409b50b01b0 3 void Pipes::init(int x, int height) {
rafeh 3:5409b50b01b0 4 _x = x;
rafeh 3:5409b50b01b0 5 _height = height;
rafeh 3:5409b50b01b0 6 }
rafeh 3:5409b50b01b0 7
rafeh 6:bc580b480ac8 8
rafeh 6:bc580b480ac8 9
rafeh 3:5409b50b01b0 10 void Pipes::draw(N5110 &lcd) {
rafeh 4:e98b22e5d5e8 11 lcd.drawRect(_x,0,6,_height,FILL_BLACK);
rafeh 4:e98b22e5d5e8 12 lcd.drawRect((_x-1),_height,8,3,FILL_BLACK);
rafeh 4:e98b22e5d5e8 13 lcd.drawRect((_x-1),(_height+23),8,3,FILL_BLACK);
rafeh 4:e98b22e5d5e8 14 lcd.drawRect(_x,(_height+26),6,(84-(_height+26)),FILL_BLACK);
rafeh 3:5409b50b01b0 15 }
rafeh 3:5409b50b01b0 16 //if(_x<1) {
rafeh 3:5409b50b01b0 17 //_height = rand() % (20 + 1 - 2) + 2;
rafeh 3:5409b50b01b0 18 //_x=84;
rafeh 3:5409b50b01b0 19 //}
rafeh 3:5409b50b01b0 20 //}