Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Need Your inputs in Card Game Query?
Old 04-13-2009, 05:27 AM Need Your inputs in Card Game Query?
Novice Talker

Posts: 11
Name: Jay Paul
Location: US
Trades: 0
Hi Friends,

we are working on a card game Carioca, on the logic of it and now at the GUI. i am confused about one query and need a bit of clarity from your answer.

To understand this is the class structure

CaricoaTable extends JFrame

CariocaPanel extends JPanel (uses border layout)

PlayerPanel extends JPanel

There are 4 player panels one for each player assigned at BorderLayout. SOUTH,WEST,NORTH and EAST at CariocaPanel. (plus a center panel containing the card piles)

Now, in order to draw the cards, Does CariocaPanel contain a "Graphics g" variable that it passes to each of the PlayerPanels to draw in its own section
or
Does each Player Panel contain its own "Graphics g" belonging to its own section. (this is what i started with originally but the former sounds like a better choice plus repaint would not work) ?

Your comments would be appreciate.


Thanks
Jay
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
jaypaul is offline
Reply With Quote
View Public Profile Visit jaypaul's homepage!
 
 
Register now for full access!
Old 04-13-2009, 07:23 AM Re: Need Your inputs in Card Game Query?
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
Yeah, The former is more efficient and maintains a server client relationship if this game is to be applied to a web environ.
__________________
Sleeping Troll, EMUSE, Mind Expansion...Truly serendipity!
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need Your inputs in Card Game Query?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13511 seconds with 12 queries