| 166 | } |
| 167 | |
| 168 | void DrawLaraPathfinding(int boxIndex) |
| 169 | { |
| 170 | if (boxIndex <= NO_VALUE || boxIndex >= g_Level.PathfindingBoxes.size()) |
| 171 | return; |
| 172 | |
| 173 | auto& currBox = g_Level.PathfindingBoxes[boxIndex]; |
| 174 | auto index = currBox.overlapIndex; |
| 175 | |
| 176 | // Current box color based on flags. |
| 177 | auto currentBoxColor = Vector3(0.0f, 1.0f, 1.0f); |
| 178 | if (currBox.flags & BLOCKABLE) |
| 179 | currentBoxColor = (currBox.flags & BLOCKED) ? Vector3(1.0f, 0.0f, 0.0f) : Vector3(0.0f, 1.0f, 0.0f); |
| 180 | |
| 181 | DrawBox(boxIndex, currentBoxColor); |
| 182 | |
| 183 | // Draw overlapping boxes. |
| 184 | while (true) |
| 185 | { |
| 186 | if (index >= g_Level.Overlaps.size()) |
| 187 | break; |
| 188 | |
| 189 | auto overlap = g_Level.Overlaps[index]; |
| 190 | |
| 191 | DrawBox(overlap.box, Vector3(1, 1, 0)); |
| 192 | |
| 193 | if (overlap.flags & OVERLAP_END_BIT) |
| 194 | break; |
| 195 | else |
| 196 | index++; |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | void DrawItemPathfinding(int itemNumber) |
| 201 | { |
no test coverage detected