Brickbreaker
Dependencies: NokiaLCD PS2 mbed
Fork of Pong by
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 };
Generated on Thu Jul 14 2022 09:10:06 by
1.7.2
