#include "Racket.h" Racket::Racket(short x, short y, short s) { xPos = x; yPos = y; size = s; symbol = '|'; } Racket::~Racket(void) { } bool Racket::moveUp(void) { bool rc = false; if ( yPos > PongController::ga->yMin ) { yPos--; rc = true; } return rc; } bool Racket::moveDown(void) { bool rc = false; if ( yPos + size -1 < PongController::ga->yMax ) { yPos++; rc = true; } return rc; } short Racket::getXPos(void) { return xPos; } short Racket::getYPos(void) { return yPos; } short Racket::getSize(void) { return size; } unsigned char Racket::getSymbol(void) { return symbol; }