Brickbreaker
Dependencies: NokiaLCD PS2 mbed
Fork of Pong by
block.h
- Committer:
- ipapp3
- Date:
- 2013-04-29
- Revision:
- 4:f3ac45fa2196
- Parent:
- 3:e1328f84b107
File content as of revision 4:f3ac45fa2196:
#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; };