On Tue, 2010-12-07 at 21:54 +0100, Xavier Antoviaque wrote:

> I've started the integration of the missions menu - I've incorporated
> the HTML/CSS/JS to the codebase.


The menu now loads the different mission files and starts the relevant
mission when clicked. I've merged to trunk, but not everything is clean
and properly tested, so I expect some rough edges (for example, you have
to click on the mission in the menu after the redirect to make it
reappear) - if there is any blocking issue let me know.

http://hackit.cx/

Please note that I've moved the missions files in the process - they now
reside in missions/ (on the root of your installation), with one
directory for each mission. Here is a sample structure:

missions/introduction/
missions/introduction/vitrine_50x38.jpg
missions/introduction/introduction.php
missions/introduction/vitrine_600x400.jpg

("introduction" is the new name for "FirstMission").

Done:

      * Moved mission files to new directory structure in missions/ &
        modified attributes to display in menu
      * Added script to grep the entire codebase, without looking at
        non-relevant files such as logs, changelogs, bzr meta info...
      * All missions objects are now instantiated - Exposed mission
        attributes in views - Added launch of selected mission



> Vlad, I'm undecided about the right path to take to retrieve the
> missions pool. It's currently stored on MissionAction, which makes it
> difficult to access from GameSession. I'm tempted to move the main
> logic to a class separate from MissionAction, a bit like for the
> leaderboard, as the mission engine isn't only a listener. 


Until we can discuss this, I've circumvented the issue by adding a
method to GameSession that retrieves the MissionAction object from the
observers pool - but this is obviously not something we can keep as is,
so we'll need to look at the issue.

Xavier.
_______________________________________________
Farsides mailing list - [email protected]

Wiki:  http://farsides.com/
List:  http://farsides.com/ml/
Forum: http://farsides.com/forum/
Ideas: http://farsides.com/ideas/
Chat:  http://farsides.com/chat/

Reply via email to