How to make a Strategic Map?

Hi there, i am german so excuse my bad english ::slight_smile:

I want to make a strategic map for a strategic game ::slight_smile: :stuck_out_tongue: like this or more cheap: http://www.wargamer.com/reviews/shogun/STRATEGIC_MAP.jpg

so, if i click on it, it should call a method with the Nation-Object of the nation i just clicked if you understand :-[

and there should be an option to highlight the area of the nation you clicked. like you click on a nation and the background changes to red, but only for that nation <.<

ok, i think you got it, i hope :stuck_out_tongue:

There are lots of posiblities. one that comes to mind is to have a 2d array of bytes the same dimensions as the map image. The byte at each array position will be set to the id # for that “nation” or “territory”. you can also use the byte array to implement some kind of flood fill to colour selected nations. There was a good flood-fill algorithm posted here recently - try searching in the Shared Code area.

thanks for your reply. i will search around for some other others before i decide how i am going to solve this…