OrionVeteran
Deity
I am attempting to develop a patrol function for a naval unit. The following function can search through adjacent plots:
Lets say I wanted to move 6 spaces due north (not just one plot). How do I tell the unit to move 6 spaces using direction type "DIRECTION_NORTH" ?
Code:
for (iI = 0; iI < NUM_DIRECTION_TYPES; iI++)
{
pLoopPlot = plotDirection(pPlot->getX_INLINE(), pPlot->getY_INLINE(), ((DirectionTypes)iI));
-1 = NO_DIRECTION
0 = DIRECTION_NORTH
1 = DIRECTION_NORTHEAST
2 = DIRECTION_EAST
3 = DIRECTION_SOUTHEAST
4 = DIRECTION_SOUTH
5 = DIRECTION_SOUTHWEST
6 = DIRECTION_WEST
7 = DIRECTION_NORTHWEST
8 = NUM_DIRECTION_TYPES
Lets say I wanted to move 6 spaces due north (not just one plot). How do I tell the unit to move 6 spaces using direction type "DIRECTION_NORTH" ?