File tree Expand file tree Collapse file tree 2 files changed +0
-38
lines changed
Expand file tree Collapse file tree 2 files changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ class Player {
6464
6565 int getDevCardsInHand ();
6666
67- void buyCard (std::unique_ptr<DevelopmentCard> card);
6867 std::string getName () const ;
6968
7069// void playCard(int index);
Original file line number Diff line number Diff line change @@ -250,44 +250,7 @@ int Player::getVictoryPoints()
250250 return victoryPoints;
251251}
252252
253- /* *
254- * Acquire a development card.
255- * @param card An owning pointer to the card the player acquired.
256- */
257- void Player::buyCard (std::unique_ptr<DevelopmentCard> card);
258- {
259- if (canBuyCard ()){
260- buyCard ();
261- developmentCards.push_back (std::move (card));
262- }
263-
264- }
265-
266-
267- // play method refactored for dev cards
268253
269- // void Player::playCard(int index)
270- // {
271- // if(index >=developmentCards.size())
272- // return;
273- //
274- // playCard(developmentCards[index]);
275- // }
276-
277-
278- // void Player::playCard(DevelopmentCard *card)
279- // {
280- // auto cardTester = [card](std::unique_ptr<DevelopmentCard>& test) -> bool { return card == test.get(); };
281- // if(!std::any_of(developmentCards.begin(), developmentCards.end(), cardTester)) {
282- // return;
283- // }
284- // card->playCard(board);
285- // if (card->getType() == KNIGHT) {
286- // armySize++;
287- // }
288- //
289- // std::remove_if(developmentCards.begin(), developmentCards.end(), cardTester);
290- // }
291254
292255/* *
293256 * Gets the current modifier for trading wood
You can’t perform that action at this time.
0 commit comments