Istvan Papp / Mbed 2 deprecated Brickbreaker

Dependencies:   NokiaLCD PS2 mbed

Fork of Pong by William Johnston

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers block.h Source File

block.h

00001 #include "NokiaLCD.h"
00002 
00003 class Block
00004 {
00005     /* This class creates a block object */
00006 
00007     // Attributes
00008     int x,y,width,height,color;
00009 
00010 public:
00011     // Constructors
00012     Block();
00013     Block(int x, int y, int w, int h, int c);
00014 
00015     // Member functions
00016     void move(NokiaLCD &lcd, int increment);
00017     void moveCPU(NokiaLCD &lcd, int _y);
00018     void draw(NokiaLCD &lcd, bool isBlack) const;
00019     int size() const;
00020     int getWidth() const;
00021     int getHeight() const;
00022     int getX() const;
00023     int getY() const;
00024 
00025 };