|
-
November 27th, 2011, 11:06 AM
#1
Designing classes
I'm designing classes for a blackjack simulator. I have CBJTable which has a CDealer which deals CCards to a CPlayer. What is the best way to send messages back and forth from CDealer and CPlayer. I need for CDealer to be able to give CPlayer a CCard and for CPlayer to let CDealer know when he Hits, Stands, Splits and Doubles. The problem is that CDealer has to know about CPlayer and CPlayer has to know about CDealer but if I use #include in both classes it causes errors obviously. What is best way to do this?
Thanks in advance,
Jack
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|