Javassonne: Populating Possible Locations

0 views
Skip to first unread message

CoreSpace

unread,
Mar 11, 2009, 2:52:16 PM3/11/09
to Javassonne Discussion
Guys,

Here's what I'm thinking. Have the BoardController subscribe to
TileInHandChanged. When that occurs, query the board for a list of
possible locations the Tile can go, then add our temp glowy tiles in
those locations. Does this sound good?

An easier to code solution would be to have the Board add the temp
tiles too, but I have a feeling you guys will shoot that down as not
being the board's responsibility....

Comments?

-Kyle

Ben Gotow

unread,
Mar 11, 2009, 5:20:16 PM3/11/09
to javas...@googlegroups.com
Hey - that sounds good! I think the "query the board for a list of
possible locations" could just return an array of Point objects, and
then you could add the temp tiles at those locations by calling a
single function on the board - like
"addTempTilesAtPoints(ArrayList<Point>)". I think you're right - It is
probably best for the high-level logic to go in the controller and not
the board. But the functions in the board could take arrays of
locations :-)

- Ben
Ben Gotow
-----------------------------------
http://www.gotow.net/
beng...@gmail.com
540-250-2334

Hamilton Turner

unread,
Mar 11, 2009, 5:42:12 PM3/11/09
to javas...@googlegroups.com
Sounds good! I agree with ben about the arrays and logic.

Ham
Reply all
Reply to author
Forward
0 new messages