// add points from removed tiles void Player::addPoints(const ScoredTileArray& tArray) { // delete the positions stored in the array for ( std::vector<ScoredTile>::const_iterator it = tArray.begin(); it < tArray.end(); it++ ) { addPoints(*it); } }
// search for equal entries and removes them on the set // return true if something has been removed void GameField::removeTiles(const ScoredTileArray& tArray) { // delete the positions stored in the array for ( std::vector<ScoredTile>::const_iterator it = tArray.begin(); it < tArray.end(); it++ ) { // std::cout << "GameField::removeTiles() " // << (*it).getPos().x() << " " << (*it).getPos().y() << std::endl; removeTiles(*it); } }