void RandLOSCalcMin(int x, int y, int reps) { int i; CubeCoord origin; CubeCoord target; origin.x = 0; origin.y = 0; origin.z = 0; for (i = 0; i < reps; i++) { target = RandCoord_Cube(x, y); CubeDist(origin, target); AzimuthCube(origin, target); } }
void ScanLOSCalcMin(int x, int y) { int i; int j; CubeCoord origin; CubeCoord target; origin.x = 0; origin.y = 0; origin.z = 0; for (i = 0; i < y; i++) for (j = 0; j < x; j++) { target.x = j; target.y = i; target.z = -j -i; CubeDist(origin, target); AzimuthCube(origin, target); } }
void LOS_CalcCube(CubeCoord origin, CubeCoord target) { CubeDist(origin, target); AzimuthCube(origin, target); HexesBetweenCube(origin, target); }