- Joined
- Jun 7, 2009
- Messages
- 12
Hello. I was simply wondering if you could use multi-dimensional arrays in the editor. If not, then perhaps JASS?
I need three-dimensional arrays to adept the A* algorithm (pathfinding algorithm) to Warcraft Maul X17.
Something like this:
Point[X][Y][Walkability]
Point[X][Y][F]
Point[X][Y][G]
Point[X][Y][H]
Point[X][Y][ParentX]
Point[X][Y][ParentY]
As you can see, it's the only way...
Multiplying X and add Y wouldn't work since 6144*6144 = 37748736, that is only one direction. So it stretches from -37748736 to 37748736. A total of 75497472. War III integers only reach 65534 though.
Please respond. =)
I need three-dimensional arrays to adept the A* algorithm (pathfinding algorithm) to Warcraft Maul X17.
Something like this:
Point[X][Y][Walkability]
Point[X][Y][F]
Point[X][Y][G]
Point[X][Y][H]
Point[X][Y][ParentX]
Point[X][Y][ParentY]
As you can see, it's the only way...
Multiplying X and add Y wouldn't work since 6144*6144 = 37748736, that is only one direction. So it stretches from -37748736 to 37748736. A total of 75497472. War III integers only reach 65534 though.
Please respond. =)