Hello everybody 
I am trying to customize a pile of cards using Zone component, but the documentation about it is rather sparse: http://en.doc.boardgamearena.com/Zone
I have three questions:
1) Is it mandatory to declare the zone inside the constructor?I currently declare it in the setup because in the constructor I can't have access to the player list, and I need several zones for each player. Moreover, the stock component is declarable in the setup as the doc for it reads: http://en.doc.boardgamearena.com/Stock, what would it be different for zone?
2) I am using setPattern('custom') but I got an error message reading "unknown pattern: 'custom'" so I can't specify my item coordinates. This problem could be linked with number 1), since I declare the zone inside the setup and not the constructor...
3) How does the weight works for sorting items ? When I have already x cards in my zone, what value for weight should I use for:
Do you have any experience with that? That would help me a lot
Thanks
Tchebychev
I am trying to customize a pile of cards using Zone component, but the documentation about it is rather sparse: http://en.doc.boardgamearena.com/Zone
I have three questions:
1) Is it mandatory to declare the zone inside the constructor?
Code: Select all
this.myZone = new ebg.zone();2) I am using setPattern('custom') but I got an error message reading "unknown pattern: 'custom'" so I can't specify my item coordinates. This problem could be linked with number 1), since I declare the zone inside the setup and not the constructor...
3) How does the weight works for sorting items ? When I have already x cards in my zone, what value for weight should I use for:
- Put a new card on top, that is on x+1 position;
- Put a new card on bottom, that is in position 1 and other cards increase their position by one.
Do you have any experience with that? That would help me a lot
Thanks
Tchebychev