Battle Analysis: Line of Sight Calculators

 

Step 1: calculate Line of Sight
Step 2: check for blocking terrain and obstacles

Step 1: Calculate the array of hexagons and hexsides the line of sight will pass thru.

Special attention is needed when the line of sight passes between 2 hexagons.

  In this case, 3 steps with the same step number will show up in the line of sight for the 2 hexagons and the hexside between them.

Special attention is needed when the line of sight passes between 2 hexsides.

  In this case, 2 steps with the same step number will show up in the line of sight for the 2 hexides.

As the mouse moves, the line of sight and range is calculated

Click on any hexagon to set a new start hexagon

 

Step 2: check blocking hexagons and hexsides

include corner Los hexsides ( bearings: 2, 6, 10, 14, 18, 22 )

Step 1: Array of hexagons and hexsides