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

Dependents:   RETRO_BallsAndPaddle RETRO_BallAndHoles

Committer:
maxint
Date:
Mon Mar 02 09:58:53 2015 +0000
Revision:
8:19dd2a538cbe
Parent:
5:065f19e08dcb
more clean-up

Who changed what in which revision?

UserRevisionLine numberNew contents of line
maxint 5:065f19e08dcb 1 #pragma once
maxint 5:065f19e08dcb 2 #include "mbed.h"
maxint 5:065f19e08dcb 3
maxint 5:065f19e08dcb 4 #include "Color565.h"
maxint 5:065f19e08dcb 5 #include "font_OEM.h"
maxint 5:065f19e08dcb 6 #include "LCD_ST7735.h"
maxint 5:065f19e08dcb 7
maxint 5:065f19e08dcb 8 #include "Shapes.h"
maxint 5:065f19e08dcb 9
maxint 5:065f19e08dcb 10 class Hole
maxint 5:065f19e08dcb 11 {
maxint 5:065f19e08dcb 12 public:
maxint 5:065f19e08dcb 13 Hole();
maxint 5:065f19e08dcb 14 Hole(LCD_ST7735* pDisp);
maxint 5:065f19e08dcb 15 Hole(LCD_ST7735* pDisp, uint16_t uClr);
maxint 5:065f19e08dcb 16 void setColor(uint16_t uClr);
maxint 5:065f19e08dcb 17 void draw();
maxint 5:065f19e08dcb 18 void setCirc(Circle cNew);
maxint 5:065f19e08dcb 19 Circle getCirc();
maxint 5:065f19e08dcb 20 bool collides(Circle cObject);
maxint 5:065f19e08dcb 21 bool hasGoneIn(Circle cObject);
maxint 5:065f19e08dcb 22
maxint 5:065f19e08dcb 23 bool fActive;
maxint 5:065f19e08dcb 24
maxint 5:065f19e08dcb 25 protected:
maxint 5:065f19e08dcb 26 uint16_t dimmedColor(uint16_t uColor);
maxint 5:065f19e08dcb 27
maxint 5:065f19e08dcb 28 private:
maxint 5:065f19e08dcb 29 uint16_t uColor;
maxint 5:065f19e08dcb 30 uint16_t uColorHigh;
maxint 5:065f19e08dcb 31 uint16_t uColorMid;
maxint 5:065f19e08dcb 32 uint16_t uColorLow;
maxint 5:065f19e08dcb 33 LCD_ST7735* pDisp;
maxint 5:065f19e08dcb 34 Circle cHole;
maxint 5:065f19e08dcb 35 };