Meeple placement

1 view
Skip to first unread message

CoreSpace

unread,
Mar 27, 2009, 12:41:22 PM3/27/09
to Javassonne Discussion
Ok, so I added logic to add / remove meeple numbers from players when
they use a merson, but I'm not sure how to check if the current player
has meeple to place in the MapLayer. We'll probably have to add a ref
to the player list, but I didn't want to do that unilaterally. Also,
I'm not sure how we should update the display of meeple remaining in
the hud panel. Thoughts? Opinions?

-Kyle

David Laurence Leinweber

unread,
Mar 27, 2009, 2:30:54 PM3/27/09
to javas...@googlegroups.com
Hey Kyle,
   The Player object has a meepleRemaining_ variable if that helps. Not sure what you're doing in the MapLayer though. Good luck.

   David

Ben Gotow

unread,
Mar 27, 2009, 6:19:14 PM3/27/09
to javas...@googlegroups.com
Hey Kyle,

I think the best bet would be to fetch the Player object while preparing the "HUDConfirmPlacementPanel." It's created in the BoardController, and from there you could set a "canPlaceMeeple" flag or something to actually had the drag panels.

In the future, we need to create a GameState singleton object that holds information about the players and the game... It's getting kind of crazy passing the Players around all over the place, because a lot of different people need to know about the game state. You could go ahead and create that if you want - I think it'll take some refactoring. But all in all - probably better if we do it soon.

I've got a test early next week so I don't know how much time I can put in this weekend, but I'll try :-)

- Ben


Ben Gotow
-----------------------------------

Reply all
Reply to author
Forward
0 new messages