
/* Generated by Interface Builder */

#import "DrawPileStackView.h"

@implementation DrawPileStackView


- setCardCountFormCell:anObject
{


    cardCountFormCell = anObject;
    [ cardCountFormCell setIntValue:0 ];
    
    return self;
}


- addCard:( CardView * )aCard :sender
{

	int		count = [ cardCountFormCell intValue ];
	
	
	[ cardCountFormCell setIntValue:( count + 1 ) ];
	[ super addCard:aCard :sender ];

	return self;
}


- removeCard:( CardView * )aCard :sender
{

	int		count = [ cardCountFormCell intValue ];
	
	
	[ cardCountFormCell setIntValue:( count - 1 ) ];
	[ super removeCard:aCard :sender ];

	return self;
}


- ( int )cardsInPile
{


	return [ cardCountFormCell intValue ];
}


@end
