Hello Everyone,
for my new project I need a Campaignmap in the style of Hearts of Iron or Total War.
Heres a pic if you dont know what it is:
http://l.yimg.com/eur.yimg.com/xp/justgamers/20090713/14/3516518288-hearts-of-iron-3.jpg
I got a basic idea:
A province is a object holding all the information, e.g. position (x,y), id, adjectant province ids, sprite and a polygon for collision detection.
I would then render the images with the x,y position and if the player clicks on one of the provinces I know which one, via point in polygon.
Is this a good idea? Or does anybody have a better idea? Especially with the adjectant provinces or map managment?
With polygons it would get very tedious to actually make the map, as I would have to get a map with point data and then manually create a polygon for each province.