-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from giollord/main
Fixed delta cost calculation in ActionAStar.Heuristic
Showing
4 changed files
with
38 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
MountainGoap/CallbackDelegates/StateCostDeltaMultiplierCallback.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// <copyright file="StateMutatorCallback.cs" company="Chris Muller"> | ||
Check warning on line 1 in MountainGoap/CallbackDelegates/StateCostDeltaMultiplierCallback.cs
|
||
// Copyright (c) Chris Muller. All rights reserved. | ||
// </copyright> | ||
|
||
namespace MountainGoap { | ||
/// <summary> | ||
/// Delegate type for a callback that provides multiplier for delta value of the respective key to obtain delta cost to use with ExtremeGoal and ComparativeGoal. | ||
/// </summary> | ||
/// <param name="action">Action being executed or evaluated.</param> | ||
/// <param name="stateKey">Key to provide multiplier for</param> | ||
/// <returns>Multiplier for the delta value to get delta cost</returns> | ||
public delegate float StateCostDeltaMultiplierCallback(Action? action, string stateKey); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters