However, my problem is that I'm not sure how to draw these 3 cards within the Displayablehand class, like I did with the display() method of card.

12-14-2012, 02:06 AM

Sierra

Re: Displaying a hand of cards

IF your "Card" class would have a "display()" method you actually could call it for every card in your hand... sadly it does not.
So if you make it one and override it in DisplayableCard you could call it in a loop that loops through all your cards in your hand.

12-14-2012, 02:16 AM

ralph

Re: Displaying a hand of cards

doh! I just made the array of cards in hand protected so I could look through them and draw them as if they were separate cards, works perfectly :3