void player::printPlayer(WINDOW*& window) { char firstLetter = name.at(0); init_pair(7, COLOR_MAGENTA, COLOR_BLACK); init_pair(8, COLOR_BLUE, COLOR_BLACK); if(getGender() == 'M') { mvwaddch(window, getYCoord(), getXCoord(), firstLetter | COLOR_PAIR(8)); } else if(getGender() == 'F') { mvwaddch(window, getYCoord(), getXCoord(), firstLetter | COLOR_PAIR(7)); } wrefresh(window); }
void TetrixPiece::rotateRight() { if ( pieceType == 5 ) // don't rotate square piece type return; int tmp; for (int i = 0 ; i < 4 ; i++) { tmp = getXCoord(i); setXCoord(i,-getYCoord(i)); setYCoord(i,tmp); } }
void player::clearPlayer(WINDOW*& window) { mvwaddch(window, getYCoord(), getXCoord(), ' '); wrefresh(window); }