#include <stdlib.h>
#include <stdio.h>
#include <iostream>
using namespace std;
#include "CardNode.h"

/*Card CardNode::count=0;*/

/* This is the constructor that will most often be used.
 */
CardNode::CardNode(Card* c)
{
    value = c;
	next = NULL;
	//count++;
}

/* here is another constructor in case someone wants to make the 
 * link before they know what value it will have.
 * You can have multiple constructors as long as each has a different
 * set of input parameter types.  The names don't matter.
 */
CardNode::CardNode()
{
	value = NULL;
	next = NULL;
	//count++;
}

CardNode::~CardNode()
{
  //count--;
}

/*Card CardNode::getCount()
{
	return count;
	}*/

void CardNode::setValue(Card* c)
{
        value = c;
}
void CardNode::setNext(CardNode *l)
{
	next = l;
}

Card* CardNode::getValue()
{
	return value;
}
CardNode* CardNode::getNext()
{
	return next;
}

void CardNode::printCardNode()
{
        Card* c;
        c->print_card();   
}

