Hello, Thanks for the answer, I want to be sure before going deeper. I look how this isometric projection works and now, I understand why there is this strang values. Maybe I can try to add an explanation somewhere for the next generation of developers.
I agree with you. This representation should be an internal one and we not have to worry about it, and I am sure the elders made a good job. Perhaps, it's not enough encapsulated, mostly in test where getTile with x and y is much used. Seb Le mar. 8 janv. 2019 à 22:57, Michael T. Pope <mp...@computer.org> a écrit : > On Tue, 8 Jan 2019 21:10:18 +0100 > Sébastien Fauvel <sfau...@gmail.com> wrote: > > I try to understand application to give some help if I can. > > I found a strange behviour in MapTest (method testGetSurroundingTiles). > > Look at Direction.java for clarification, although ISTR there are > better commented places which I can not bring to mind. > > The way the grid is laid out is not something I can comment on with any > confidence as it was in place from years before I joined the project. I > certainly recall finding it surprising initially, however it clearly > works, and knowing nothing much about map projections I am happy to credit > the elder developers with knowing what they were doing. > > Generally I think it is best not to have to think about the map > embedding detail, and use abstractions like getSurroundingTiles() that > hide that from you. > > Cheers, > Mike Pope > _______________________________________________ > Freecol-developers mailing list > Freecol-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freecol-developers >
_______________________________________________ Freecol-developers mailing list Freecol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freecol-developers