> I'm a bit skeptical on trying to support each game's
> individual hex numbering. I think it'll be much easier on us
> (less coding) if we just use one numbering scheme for all boards.
I think we should distinguish internal and external numbering.
If I understand ui.hexmap.Hex correctly, then xCoord and yCoord
are the internal coordinates (row and column), whereas the label
is the externally visible name (or label).
This is similar to the rows and column numbers vs. the name
of each stock market space.
Surely we will have (or indeed already have) some form of row/column
numbers internally, which we can do in whatever way that suits us best.
But for the externally visible names (or labels) I would tend to insist
that we use each game's real hex labels.
No big issue for now, we can start with whatever you already have.
I am willing to work out the algorithms and the relevant XML configuration
at some point for the actual numbering variations.
I think we need just one or two methods to map internal to external
coordinates
and vice versa, the mapping being parametrized by some <Map> attributes.
Erik.
|