Hi!
I and a couple of my friends are quite green but we have decided to expand our knowledge in the C++ language. So we have started a game project.
However, the map will consist of hexagon shaped cells with individual properties. Landscape, current population and so on.
Therefor we thought that it would be good to create a class "Hex" that contain the data members and functions needed for each individual cell.
But, how do we create an n amount of objects with the names hex(0-n)?
Or is there a better way to create the map and still have individual properties?
Thankful for any answer.
Thank you,
Never really used arrays that much. Guess I'll be using them more in the future.
Good suggestion to name change too.
Thank you once again, been bugging me for days.