void Hero::GetAttackCard() { Card tmp; srand((unsigned int)time(NULL)); int randNum = rand(); if(randNum%2==0) { //패시브카드 획득 int getCard = tmp.getPassiveCard("ATTACK"); attackPassiveCard.push_back(getCard); attackPoint += getCard; } else { //액티브카드 획득 int getCard = tmp.getActiveCard("ATTACK"); attackActiveCard.push_back(getCard); } }
void Hero::GetDepenceCard() { Card tmp; srand((unsigned int)time(NULL)); int randNum = rand(); if(randNum%2==0) { //패시브카드 획득 int getCard = tmp.getPassiveCard("DEPENCE"); depencePassiveCard.push_back(getCard); healthPoint += getCard; } else { //액티브카드 획득 int getCard = tmp.getActiveCard("DEPENCE"); depenceActiveCard.push_back(getCard); } }
void Hero::GetMagicCard() { Card tmp; magicActiveCard.push_back(tmp.getActiveCard("MAGIC")); }