Commit Graph

61 Commits

Author SHA1 Message Date
Serhii Snitsaruk b478c8eb2c
Add tests for has_transition() and remove_transition() 2024-07-21 14:02:27 +02:00
Serhii Snitsaruk 808ca1de7f
Add unit tests for Blackboard 2024-06-01 10:52:31 +02:00
Serhii Snitsaruk 5dff2e537b
Add `agent` parameter to `BTPlayer` to propagate upon `BehaviorTree` initialization, and add `scene_root` property to `BTTask`
`scene_root` is useful to resolve exported NodePath properties in `BTTask` instances (and for BBNode parameters).
2024-05-01 23:20:17 +02:00
Serhii Snitsaruk 2c2f2dd4be
Test: BBParam default values 2024-05-01 18:08:59 +02:00
Serhii Snitsaruk dedffc4f22
Test: Nested HSM flow, dispatch() and get_root() 2024-05-01 18:08:40 +02:00
Serhii Snitsaruk 12fd9d00d6
Update file headers and fix whitespace 2024-03-21 21:38:57 +01:00
Serhii Snitsaruk b0e3753d76 Update HSM unit tests 2024-03-08 20:04:27 +01:00
Wilson E. Alvarez fb958c7c34
Add BTEvaluateExpression 2024-02-18 12:20:48 -05:00
Serhii Snitsaruk 0081731654 Fix tests printing errors 2024-02-13 17:27:32 +01:00
Serhii Snitsaruk 55dfd55645 BTRunLimit: Update unit tests 2024-02-10 20:14:49 +01:00
Serhii Snitsaruk 8155c2764a Refactoring and clean up 2024-01-25 14:35:48 +01:00
Serhii Snitsaruk a3f8c09766 Use the new virtual workaround and rework LimboState and HSM 2024-01-18 11:33:24 +01:00
Serhii Snitsaruk 1648728e1b CallMethod: Update unit tests 2024-01-16 10:46:42 +01:00
Serhii Snitsaruk e6c87be723 Fix various bugs and unit tests 2024-01-11 00:31:42 +01:00
Serhii Snitsaruk 22bfb9e3ab Improve BTCallMethod
- Fix `include_delta` not initialized for some reason
- Add additional tests
- Group argument properties
- Improve name generation
2023-12-28 14:26:39 +01:00
Serhii Snitsaruk 60012d984b Fix drag & drop position in the same branch
Also, refactor get_child_index() into get_index().
2023-11-22 13:05:55 +01:00
Serhii Snitsaruk cc38d257cc Update tests for BTSetAgentProperty 2023-11-20 15:36:18 +01:00
Serhii Snitsaruk c48eeef081 BTSetVar: Cover operations in unit tests & fix bugs 2023-11-15 16:35:56 +01:00
Serhii Snitsaruk 04537d1e96 Fix setting animation callback mode process 2023-10-28 13:10:33 +02:00
Serhii Snitsaruk 166cc8b1d9 Rename BTTask::cancel() to abort() and expose it. 2023-10-26 16:26:10 +02:00
Serhii Snitsaruk 32cbce6b80 Add abort_on_failure policy to BTProbabilitySelector 2023-09-24 16:45:10 +02:00
Serhii Snitsaruk b33c1cae31 Add tests for BTProbabilitySelector 2023-09-24 14:12:50 +02:00
Serhii Snitsaruk c94073fb39 Move BTCallMethod to Utility category 2023-09-20 10:40:16 +02:00
Serhii Snitsaruk efe693347e Refactor to return enum instead of int in task methods 2023-09-19 15:29:29 +02:00
Serhii Snitsaruk 0e10c2022f Add tests for HSM 2023-09-11 15:33:13 +02:00
Serhii Snitsaruk 3e8a158835 Add tests for BBNode param 2023-09-10 10:54:59 +02:00
Serhii Snitsaruk 7767d7c72a Add tests for BBParam 2023-09-10 10:42:29 +02:00
Serhii Snitsaruk 05486d3907 Add tests for BTTask methods 2023-09-09 12:14:57 +02:00
Serhii Snitsaruk 6baa6d5686 Add tests for wait actions 2023-09-08 11:19:43 +02:00
Serhii Snitsaruk 073cac5e71 Add tests for BTSetAgentProperty 2023-09-07 12:15:32 +02:00
Serhii Snitsaruk 029abbfc08 Add tests for BTCheckAgentProperty 2023-09-06 12:14:20 +02:00
Serhii Snitsaruk 3952ba46cb Add tests for BTCallMethod 2023-09-05 11:01:20 +02:00
Serhii Snitsaruk 9ec1675db2 Add tests for BTStopAnimation 2023-09-04 14:30:07 +02:00
Serhii Snitsaruk eab6ec9323 Add tests for BTPlayAnimation 2023-09-04 14:14:53 +02:00
Serhii Snitsaruk 804ff2dddd Add tests for BTPauseAnimation 2023-09-04 13:45:40 +02:00
Serhii Snitsaruk 4e9d8d1e18 Add tests for BTAwaitAnimation 2023-09-04 12:02:29 +02:00
Serhii Snitsaruk 48a149dafa Improve tests for BTCheckVar 2023-09-03 10:47:37 +02:00
Serhii Snitsaruk 8d88d5a7ef Add tests for BTSetVar 2023-09-02 14:18:40 +02:00
Serhii Snitsaruk 76689659f7 Add tests for BTCheckVar 2023-09-02 12:42:30 +02:00
Serhii Snitsaruk b834175016 Add tests for BTCheckTrigger 2023-09-02 10:50:07 +02:00
Serhii Snitsaruk 9ab9599e4f Add tests for BTTimeLimit 2023-09-01 14:00:10 +02:00
Serhii Snitsaruk 8965cb5ce1 Add tests for BTSubtree 2023-09-01 13:11:00 +02:00
Serhii Snitsaruk 915ccdc964 Add tests for BTRunLimit 2023-08-31 15:45:07 +02:00
Serhii Snitsaruk 68fdfb0597 Add tests for BTRepeat 2023-08-31 15:16:36 +02:00
Serhii Snitsaruk 6f8292bc2d Add tests for BTRepeatUntilFailure and BTRepeatUntilSuccess 2023-08-31 14:38:04 +02:00
Serhii Snitsaruk 6cf4045e0f Add tests for BTProbability 2023-08-31 13:41:03 +02:00
Serhii Snitsaruk b9fc99cb2c Add tests for BTNewScope 2023-08-31 12:07:59 +02:00
Serhii Snitsaruk fd87a3633e Add tests for BTInvert 2023-08-31 11:26:37 +02:00
Serhii Snitsaruk 8a5c60322a Add tests for BTForEach 2023-08-30 20:03:51 +02:00
Serhii Snitsaruk 62ab2db885 Add tests for BTDelay 2023-08-30 19:26:48 +02:00