/*
 * user.cpp
 *
 *
 */

#include "user.h"

User::User(void) : whatHand(9)
{

}

void User::dealUserCards(void)
{
    /* the cards will be dealt from end of the deck array using deckCurrIndex */
    int i;
    for (i = 0; i < 5; i++)
        userCards[i] = PopCardFromDeck();
}

void User::printUserCards(void)
{
    int i;
    for (i = 0; i < 5; i++)
        if (userCards[i])
        cout << i+1 << ") " << userCards[i]->getType() << " ";
    cout << endl;
}

void User::sortUserCards(void)
{
    sortCards(userCards);
}

void User::discardCards(void)
{
    cout << "List the cards' numbers you wish to discard: ";
}

Card **User::getUserCards(void)
{
    return userCards;
}