-
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.
added state checkers for programmatically checking state before actio…
…n evaluation or execution
Showing
4 changed files
with
28 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// <copyright file="StateCheckerCallback.cs" company="Chris Muller"> | ||
// Copyright (c) Chris Muller. All rights reserved. | ||
// </copyright> | ||
|
||
namespace MountainGoap { | ||
/// <summary> | ||
/// Delegate type for a callback that checks state before action execution or evaluation (the latter during planning). | ||
/// </summary> | ||
/// <param name="action">Action being executed or evaluated.</param> | ||
/// <param name="currentState">State as it will be when the action is executed or evaluated.</param> | ||
/// <returns>True if the state is okay for executing the action, otherwise false.</returns> | ||
public delegate bool StateCheckerCallback(Action action, Dictionary<string, object?> currentState); | ||
} |
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