Simple Pong game on NokiaLCD with PS2
Dependencies: mbed PS2 NokiaLCD
paddle.h
- Committer:
- wjohnsto
- Date:
- 2011-02-28
- Revision:
- 2:d1031c73e187
- Parent:
- 1:3cc8b1413557
File content as of revision 2:d1031c73e187:
#include "NokiaLCD.h" class Paddle { /* This class creates a paddle object */ // Attributes int x,y,width,height,color,lives,score; public: // Constructors Paddle(); Paddle(int x, int y, int w, int h, int c, int l, int s); // Member functions void move(NokiaLCD &lcd, int increment); void moveCPU(NokiaLCD &lcd, int _y); void draw(NokiaLCD &lcd, bool isBlack) const; bool loseLife(); void addPoint(); int size() const; int getWidth() const; int getHeight() const; int getX() const; int getY() const; int getLives() const; int getScore() const; void setLives(int l); };