![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Brickbreaker
Dependencies: NokiaLCD PS2 mbed
Fork of Pong by
Diff: block.h
- Revision:
- 3:e1328f84b107
diff -r d1031c73e187 -r e1328f84b107 block.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/block.h Mon Apr 29 18:14:57 2013 +0000 @@ -0,0 +1,25 @@ +#include "NokiaLCD.h" + +class Block +{ + /* This class creates a block object */ + + // Attributes + int x,y,width,height,color; + +public: + // Constructors + Block(); + Block(int x, int y, int w, int h, int c); + + // Member functions + void move(NokiaLCD &lcd, int increment); + void moveCPU(NokiaLCD &lcd, int _y); + void draw(NokiaLCD &lcd, bool isBlack) const; + int size() const; + int getWidth() const; + int getHeight() const; + int getX() const; + int getY() const; + +}; \ No newline at end of file