Doxygen comments added
Dependencies: mbed Gamepad N5110
Pipes/Pipes.cpp@3:5409b50b01b0, 2019-04-23 (annotated)
- Committer:
- rafeh
- Date:
- Tue Apr 23 17:09:28 2019 +0000
- Revision:
- 3:5409b50b01b0
- Child:
- 4:e98b22e5d5e8
updated classes
Who changed what in which revision?
User | Revision | Line number | New 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 | 3:5409b50b01b0 | 8 | void Pipes::draw(N5110 &lcd) { |
rafeh | 3:5409b50b01b0 | 9 | lcd.drawRect(_x,0,5,_height,FILL_BLACK); |
rafeh | 3:5409b50b01b0 | 10 | lcd.drawRect(_x,(_height+20),5,(84-(_height+20)),FILL_BLACK); |
rafeh | 3:5409b50b01b0 | 11 | } |
rafeh | 3:5409b50b01b0 | 12 | //if(_x<1) { |
rafeh | 3:5409b50b01b0 | 13 | //_height = rand() % (20 + 1 - 2) + 2; |
rafeh | 3:5409b50b01b0 | 14 | //_x=84; |
rafeh | 3:5409b50b01b0 | 15 | //} |
rafeh | 3:5409b50b01b0 | 16 | //} |