View Single Post
Old 05-26-2009, 11:53 PM   #2
Claxon
Senior Member

Activity Longevity
0/20 17/20
Today Posts
0/11 ssssss345
Location: London
Default

I've never used Silverlight so I'm not sure how that affects what I'm about to say, but typically I'd go for an approach like you suggested, where player classes have a list of units in them (actually I'd be a little more abstract, and have a "Civilization" class with the list of units, and Player classes seperate, so you can replace human players with AI players, but if you're only beginning, keeping it simple is sensible).

For each unit store the grid position that it is currently in rather than the world position, you could also try storing a reference to the units from the hex tile that they are located at. The trick is really to try things out, and see what works best and which option is easiest.
Claxon is offline   Reply With Quote