John Aspinall / Mbed 2 deprecated SpaceGame

Dependencies:   4DGL-uLCD-SE PinDetect mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Rectangle.h Source File

Rectangle.h

00001 #ifndef RECTANGLE_H
00002 #define RECTANGLE_H
00003 
00004 #include "Sprite.h"
00005 
00006 class Rectangle : public Sprite {
00007 public:
00008     Rectangle();
00009     void init(int x, int y, uLCD_4DGL *uLCD);
00010     void setDimensions(int height, int width);
00011     void drawRect(int baseX, int baseY, int color);
00012 
00013 private:
00014     int _height;
00015     int _width;
00016 };
00017 
00018 #endif
00019