mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-14 02:09:08 +01:00
91 lines
2.7 KiB
YAML
91 lines
2.7 KiB
YAML
### YamlMime:ManagedReference
|
|
items:
|
|
- uid: MLEM.Pathfinding.AStar`1.GetCost
|
|
commentId: T:MLEM.Pathfinding.AStar`1.GetCost
|
|
id: AStar`1.GetCost
|
|
parent: MLEM.Pathfinding
|
|
children: []
|
|
langs:
|
|
- csharp
|
|
- vb
|
|
name: AStar<T>.GetCost
|
|
nameWithType: AStar<T>.GetCost
|
|
fullName: MLEM.Pathfinding.AStar<T>.GetCost
|
|
type: Delegate
|
|
source:
|
|
remote:
|
|
path: MLEM/Pathfinding/AStar.cs
|
|
branch: master
|
|
repo: https://github.com/Ellpeck/MLEM
|
|
id: GetCost
|
|
path: ../MLEM/Pathfinding/AStar.cs
|
|
startLine: 176
|
|
assemblies:
|
|
- MLEM
|
|
namespace: MLEM.Pathfinding
|
|
summary: "\nA cost function for a given path finding position.\nIf a path point should have the default cost, <xref href=\"MLEM.Pathfinding.AStar%601.DefaultCost\" data-throw-if-not-resolved=\"false\"></xref> should be returned.\nIf a path point should be unreachable, <xref href=\"MLEM.Pathfinding.AStar%601.InfiniteCost\" data-throw-if-not-resolved=\"false\"></xref> should be returned.\n"
|
|
example: []
|
|
syntax:
|
|
content: public delegate float GetCost(T currPos, T nextPos);
|
|
parameters:
|
|
- id: currPos
|
|
type: '{T}'
|
|
description: The current position in the path
|
|
- id: nextPos
|
|
type: '{T}'
|
|
description: The position we're trying to reach from the current position
|
|
return:
|
|
type: System.Single
|
|
content.vb: Public Delegate Function GetCost(currPos As T, nextPos As T) As Single
|
|
nameWithType.vb: AStar(Of T).GetCost
|
|
modifiers.csharp:
|
|
- public
|
|
- delegate
|
|
modifiers.vb:
|
|
- Public
|
|
- Delegate
|
|
fullName.vb: MLEM.Pathfinding.AStar(Of T).GetCost
|
|
name.vb: AStar(Of T).GetCost
|
|
references:
|
|
- uid: MLEM.Pathfinding.AStar`1.DefaultCost
|
|
commentId: F:MLEM.Pathfinding.AStar`1.DefaultCost
|
|
name: DefaultCost
|
|
nameWithType: AStar<T>.DefaultCost
|
|
fullName: MLEM.Pathfinding.AStar<T>.DefaultCost
|
|
nameWithType.vb: AStar(Of T).DefaultCost
|
|
fullName.vb: MLEM.Pathfinding.AStar(Of T).DefaultCost
|
|
- uid: MLEM.Pathfinding.AStar`1.InfiniteCost
|
|
commentId: F:MLEM.Pathfinding.AStar`1.InfiniteCost
|
|
name: InfiniteCost
|
|
nameWithType: AStar<T>.InfiniteCost
|
|
fullName: MLEM.Pathfinding.AStar<T>.InfiniteCost
|
|
nameWithType.vb: AStar(Of T).InfiniteCost
|
|
fullName.vb: MLEM.Pathfinding.AStar(Of T).InfiniteCost
|
|
- uid: MLEM.Pathfinding
|
|
commentId: N:MLEM.Pathfinding
|
|
name: MLEM.Pathfinding
|
|
nameWithType: MLEM.Pathfinding
|
|
fullName: MLEM.Pathfinding
|
|
- uid: '{T}'
|
|
commentId: '!:T'
|
|
definition: T
|
|
name: T
|
|
nameWithType: T
|
|
fullName: T
|
|
- uid: System.Single
|
|
commentId: T:System.Single
|
|
parent: System
|
|
isExternal: true
|
|
name: Single
|
|
nameWithType: Single
|
|
fullName: System.Single
|
|
- uid: T
|
|
name: T
|
|
nameWithType: T
|
|
fullName: T
|
|
- uid: System
|
|
commentId: N:System
|
|
isExternal: true
|
|
name: System
|
|
nameWithType: System
|
|
fullName: System
|