Hello.
In my developping a card game (Riftforce, you guessed right
).
During a certain player action, this player :
Thank you all.
In my developping a card game (Riftforce, you guessed right
During a certain player action, this player :
- Choose a card on his board
- Then choose a new destination (on his board)
- inflict damage to the first card of the leaving space
- move the card on the screen
- inflict damage to the first card of the destination space (i.e. : destination he just choosed)
- this.ajaxcall("/riftforce/riftforce/dealDamage.html", ...
- this.ajaxcall("/riftforce/riftforce/moveCard.html", ...
- this.ajaxcall("/riftforce/riftforce/dealDamage.html", ...
- is it "better" to chain the AjaxCalls with notifications that chain other AjaxCalls (i.e. : ajaxcall_DealDamage -> notification_Damage -> ajaxcall_move -> notification_Move ->...) or to have all 3 AjaxCalls in the same method ?
- do the error "trying to lock but interface already locked" have to be avoided ?
- appart from solution 1, is there a way to "wait" for the end of the Ajax call ? Apparently the studio doc does not recommend to make another ajaxcall in a callback in order not to create race conditions (i.e. : by using the return on the ajax call)
Thank you all.