Is there any good idea to split your map in zones?
I want to create different zones for example in WoW "Westfall", "Stormwind" and so on.
Now there are different ways to get the zone of an unit.
First :
Just save the new zone when enter it (problem, you have to check every entry of the zones)
Second :
Create regions for the zones and then go to every saved regions and check if the unit is in there (problem...what check every region?)
Third :
Create regions and save every x and y which are in it into a hashtable with the index of the region (nice to read it but guess it sucks when save all)
I want to create different zones for example in WoW "Westfall", "Stormwind" and so on.
Now there are different ways to get the zone of an unit.
First :
Just save the new zone when enter it (problem, you have to check every entry of the zones)
Second :
Create regions for the zones and then go to every saved regions and check if the unit is in there (problem...what check every region?)
Third :
Create regions and save every x and y which are in it into a hashtable with the index of the region (nice to read it but guess it sucks when save all)