Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: RETRO_BallsAndPaddle RETRO_BallAndHoles
Hole.h
00001 #pragma once 00002 #include "mbed.h" 00003 00004 #include "Color565.h" 00005 #include "font_OEM.h" 00006 #include "LCD_ST7735.h" 00007 00008 #include "Shapes.h" 00009 00010 class Hole 00011 { 00012 public: 00013 Hole(); 00014 Hole(LCD_ST7735* pDisp); 00015 Hole(LCD_ST7735* pDisp, uint16_t uClr); 00016 void setColor(uint16_t uClr); 00017 void draw(); 00018 void setCirc(Circle cNew); 00019 Circle getCirc(); 00020 bool collides(Circle cObject); 00021 bool hasGoneIn(Circle cObject); 00022 00023 bool fActive; 00024 00025 protected: 00026 uint16_t dimmedColor(uint16_t uColor); 00027 00028 private: 00029 uint16_t uColor; 00030 uint16_t uColorHigh; 00031 uint16_t uColorMid; 00032 uint16_t uColorLow; 00033 LCD_ST7735* pDisp; 00034 Circle cHole; 00035 };
Generated on Thu Jul 14 2022 10:55:45 by
1.7.2