/// <summary> /// Determines whether the cell is walkable. /// </summary> /// <param name="mask">The attribute mask used to determine walk-ability.</param> /// <returns> /// <c>true</c> if the cell is walkable, otherwise <c>false</c> /// </returns> public bool isWalkable(AttributeMask mask) { return(_parentPortal.IsUsableBy(mask)); }
/// <summary> /// Determines whether the cell is walkable. /// </summary> /// <param name="unitProps">The unit properties.</param> /// <returns> /// <c>true</c> if the cell is walkable, otherwise <c>false</c> /// </returns> public bool IsWalkableWithClearance(IUnitProperties unitProps) { return(_parentPortal.IsUsableBy(unitProps.attributes)); }