Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/helpers/Pathfinding.h
Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Lines | namespace Pathfinding | ||||
const int NAVCELL_SIZE_LOG2 = 0; | const int NAVCELL_SIZE_LOG2 = 0; | ||||
/** | /** | ||||
* For extending the goal outwards/inwards a little bit | * For extending the goal outwards/inwards a little bit | ||||
* NOTE: keep next to the definition of NAVCELL_SIZE to avoid init order problems | * NOTE: keep next to the definition of NAVCELL_SIZE to avoid init order problems | ||||
* between translation units. | * between translation units. | ||||
* TODO: figure out whether this is actually needed. It was added back in r8751 (in 2010) for unclear reasons | * TODO: figure out whether this is actually needed. It was added back in r8751 (in 2010) for unclear reasons | ||||
* and it does not seem to really improve behavior today | * and it does not seem to really improve behavior today | ||||
* Note by Wraitii to wraitii: you just removed this in UnitMotion, delete it if it ends up being unecessary as expected. | |||||
*/ | */ | ||||
const entity_pos_t GOAL_DELTA = NAVCELL_SIZE/8; | const entity_pos_t GOAL_DELTA = NAVCELL_SIZE/8; | ||||
/** | /** | ||||
* To make sure the long-range pathfinder is more strict than the short-range one, | * To make sure the long-range pathfinder is more strict than the short-range one, | ||||
* we need to slightly over-rasterize. So we extend the clearance radius by 1. | * we need to slightly over-rasterize. So we extend the clearance radius by 1. | ||||
*/ | */ | ||||
const entity_pos_t CLEARANCE_EXTENSION_RADIUS = fixed::FromInt(1); | const entity_pos_t CLEARANCE_EXTENSION_RADIUS = fixed::FromInt(1); | ||||
▲ Show 20 Lines • Show All 245 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator