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

Dependents:   RETRO_BallsAndPaddle RETRO_BallAndHoles

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Wall.h Source File

Wall.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 Wall
00011 {
00012     public:
00013         Wall();
00014         Wall(LCD_ST7735* pDisp);
00015         Wall(LCD_ST7735* pDisp, uint16_t uClr);
00016         void draw();
00017         bool fActive;
00018         void setRect(Rectangle rNew);
00019         Rectangle getRect();
00020 
00021     private:
00022         uint16_t uColor;
00023         LCD_ST7735* pDisp;
00024         Rectangle rWall;        
00025 };