Elements used in the Balls and Things games for the RETRO.

Dependents:   RETRO_BallsAndPaddle RETRO_BallAndHoles

Committer:
maxint
Date:
Sat Feb 28 11:40:24 2015 +0000
Revision:
4:f421e34313d3
Child:
5:065f19e08dcb
Added support for walls

Who changed what in which revision?

UserRevisionLine numberNew contents of line
maxint 4:f421e34313d3 1 #pragma once
maxint 4:f421e34313d3 2 #include "mbed.h"
maxint 4:f421e34313d3 3
maxint 4:f421e34313d3 4 #include "Color565.h"
maxint 4:f421e34313d3 5 #include "font_OEM.h"
maxint 4:f421e34313d3 6 #include "LCD_ST7735.h"
maxint 4:f421e34313d3 7
maxint 4:f421e34313d3 8 #include "Shapes.h"
maxint 4:f421e34313d3 9
maxint 4:f421e34313d3 10 class Wall
maxint 4:f421e34313d3 11 {
maxint 4:f421e34313d3 12 public:
maxint 4:f421e34313d3 13 Wall();
maxint 4:f421e34313d3 14 Wall(LCD_ST7735* pDisp);
maxint 4:f421e34313d3 15 void draw();
maxint 4:f421e34313d3 16 bool fActive;
maxint 4:f421e34313d3 17 void setRect(Rectangle rNew);
maxint 4:f421e34313d3 18 Rectangle getRect();
maxint 4:f421e34313d3 19
maxint 4:f421e34313d3 20 private:
maxint 4:f421e34313d3 21 uint16_t uColor;
maxint 4:f421e34313d3 22 LCD_ST7735* pDisp;
maxint 4:f421e34313d3 23 Rectangle rWall;
maxint 4:f421e34313d3 24 };