Hi Vlad,
To save some time, Id like to make a first review of the iteration tomorrow morning, even if its not finished yet. Will I be able at this point to retrieve a version on launchpad that I can already test ? De : [email protected] [mailto:[email protected]] De la part de Vlad Dragu Envoyé : mardi 7 septembre 2010 20:01 À : [email protected] Objet : [HackIt Bar] [hackit] [code] daily report 2010.09.07 Hi, I continued to work on the missions. I switched to triggers and serializations to implement the wait_for_action system Because we can have more than one wait for action active at one point (see mission_start_2 in pseudo code), I implemented an action queue. With the action queue, I needed a way to remove actions from the queue so I added the function call in the code for individual missions (clear_action is the function name, it has the same parameters as the wait for action call) I made a modification to the go_to_site function. Because I have a page change and a re-initialization of the mission object, it was a problem to know which say function would be next after the page reload. So, I choose to split the function mission_start_2 into 2 functions, one that ends with the call to go_to_site and the other with the rest of the function calls. And I added a second parameter to the go_to_site function that specifies what function should be called upon a successful page change. Basically, I made go_to_site function similar with a wait_for_action(GO_TO_SITE, ) function call, the difference being that for go_to_site the mission engine itself is the one that executes the action and triggers the function. I started to create a test file for the missions code. You can find it in the root of hackit, its called test_missions.php. Im adding submit buttons to it that will replicate the triggers from the final version. You mention that the actions should be binary constants. Can you give me more details about this? Maybe a link to read about it? Thanks and sorry for the technical post J Vlad
_______________________________________________ Hackit Bar mailing list - [email protected] Wiki: http://community.hackit.cx/ List: http://community.hackit.cx/ml/ Forum: http://community.hackit.cx/forum/ Ideas: http://community.hackit.cx/ideas/ IRC: irc://irc.freenode.net/#politis
