webDip dev coordination forum / public access todo list
It is currently Sat Mar 24, 2018 5:55 pm

All times are UTC

Post new topic Reply to topic  [ 11 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Sun Sep 26, 2010 6:20 am 

Joined: Wed Jul 29, 2009 10:22 am
Posts: 841
kestasjk wrote:
I think the solution might be to add in new hooks for games which get called when a game is first created, and then when each player joins into the game. Then in these hooks units and occupations could be inserted as needed into the database when players join/when the game is created, and the map can display those units/occupations. The pre-game adjudicator will still run when the game actually starts, and if necessary it can reassign/remove the units/occupations previously created

This would also give variants more flexibility because they can do whatever they want when players join

This would be really useful. At the moment I use the makeBet function to implement some changes that are necessary if a user joins a game, but an "official" hook would be so much better.

One last problem: The drawmap wont't be able to display a initial-map without a running gameSo the variant overview might look really boring. We might need to switch back to a pre-rendered map for the variant-overview. Or the drawmap.php might have to create a fake game, initialize it, draw the initial map and discard the data afterwards.


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page Previous  1, 2

All times are UTC

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group