2020-05-21 01:08:36 +02:00
### 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
2020-05-21 23:19:16 +02:00
startLine : 176
2020-05-21 01:08:36 +02:00
assemblies :
- MLEM
namespace : MLEM.Pathfinding
2020-05-21 23:19:16 +02:00
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 : [ ]
2020-05-21 01:08:36 +02:00
syntax :
content : public delegate float GetCost(T currPos, T nextPos);
parameters :
- id : currPos
type : '{T}'
2020-05-21 23:19:16 +02:00
description : The current position in the path
2020-05-21 01:08:36 +02:00
- id : nextPos
type : '{T}'
2020-05-21 23:19:16 +02:00
description : The position we're trying to reach from the current position
2020-05-21 01:08:36 +02:00
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 :
2020-05-21 23:19:16 +02:00
- 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
2020-05-21 01:08:36 +02:00
- 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