SCJA
~Currently preparing for SCJP6
SCJA
~Currently preparing for SCJP6
SCJA
~Currently preparing for SCJP6
Gaz Johnson wrote:Or would I make the black and white counters belong to each appropriate player and the queen and striker belong to the board?
SCJA
~Currently preparing for SCJP6
salvin francis wrote:[If i am not wrong, maybe the "Driver" object mentioned is same as my Controller]
SCJA
~Currently preparing for SCJP6
Gaz Johnson wrote:For setting the position each instance of counter class will have an x and y value stored. I thought I could have a drawOn() method in the counter class. However i'm not sure how that class would "know" to draw onto the JPanel constructed as the Board class.
SCJA
~Currently preparing for SCJP6
Brian Legg wrote:
The GameEngine will create the Board, the Players, the Counters, and everything else. ..
SCJA
~Currently preparing for SCJP6
SCJA
~Currently preparing for SCJP6
SCJA
~Currently preparing for SCJP6
Brian Legg wrote:
Gaz Johnson wrote:Sorry for all the posting guys. Ok, if I do something like above as suggestion very kindly by Brian, whats the best way of each player recognising each others counters. e.g. when i pass control to the player class and call the method takeShot or whatever I need it to check for collisions with counters stored in the array in the other player class
SCJA
~Currently preparing for SCJP6
Would you like to try a free sample? Today we are featuring tiny ads:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|