Page 1 of 1

"args" vs. notifications & DB question.

Posted: 23 June 2013, 17:03
by phil_s_stein
I'm just getting started on BGA development and I have a few questions.

- When updating a page due to a user action, when should you use the state "args" and when should you use the dojo notifications? Or are they separate things for different purposes?
- I'm thinking of putting the 'current valid moves' and 'last move taken' in the database. When the player makes a move, computes this, then adds it to the database. My thinking is that if there is a disruption, it is then easy to redisplay this: just make this part of the game state so the js setup(gamedatas) function will display it automatically. Is this a good idea or not?

Thanks.

Re: "args" vs. notifications & DB question.

Posted: 23 June 2013, 20:47
by pikiou
Hi phil, welcome in BGA Studio ^^

The state "args" is there to prepare the interface to listen for active user action choices.
A "dojo notification" is meant to show the visible consequences of a chosen action.

You'll find way more in these presentations: http://en.doc.boardgamearena.com/Studio ... sentations