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

Dependents:   RETRO_BallsAndPaddle RETRO_BallAndHoles

Committer:
maxint
Date:
Sat Feb 28 16:32:03 2015 +0000
Revision:
5:065f19e08dcb
Parent:
4:f421e34313d3
added holes

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 5:065f19e08dcb 15 Wall(LCD_ST7735* pDisp, uint16_t uClr);
maxint 4:f421e34313d3 16 void draw();
maxint 4:f421e34313d3 17 bool fActive;
maxint 4:f421e34313d3 18 void setRect(Rectangle rNew);
maxint 4:f421e34313d3 19 Rectangle getRect();
maxint 4:f421e34313d3 20
maxint 4:f421e34313d3 21 private:
maxint 4:f421e34313d3 22 uint16_t uColor;
maxint 4:f421e34313d3 23 LCD_ST7735* pDisp;
maxint 4:f421e34313d3 24 Rectangle rWall;
maxint 4:f421e34313d3 25 };