-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: FlexiblePathfinding migration follow-ups (#92)
- style: format `.behavior` files - chore: add TODO ideas and questions in several places - chore: add some debug logging - feature/fix: small adjustments to Behaviors logic Follow-up PR to #89. Related PRs (extracted from this): #94, #96, #97, #99. Contributes to MovingBlocks/Terasology#4981. Depends on Terasology/FlexiblePathfinding#26 and Terasology/FlexiblePathfinding#27.
- Loading branch information
1 parent
2cb07c2
commit e14e58d
Showing
19 changed files
with
329 additions
and
135 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
{ | ||
sequence : [ | ||
{ | ||
set_target_nearby_block : { moveProbability: 65 } | ||
}, | ||
move_to | ||
{ set_target_nearby_block : { moveProbability: 65 } }, | ||
{ lookup: { tree: "Behaviors:naiveMoveTo" } } | ||
] | ||
} | ||
|
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 |
---|---|---|
@@ -1,31 +1,28 @@ | ||
{ | ||
|
||
sequence : [ | ||
{ | ||
set_speed : { speedMultiplier: 0.3 } | ||
}, | ||
{ | ||
animation : { | ||
play: "engine:Walk.animationPool", | ||
loop: "engine:Walk.animationPool" | ||
} | ||
}, | ||
{ | ||
lookup: { tree: "Behaviors:doRandomMove" } | ||
}, | ||
{ | ||
animation : { | ||
play: "engine:Stand.animationPool", | ||
loop: "engine:Stand.animationPool" | ||
} | ||
}, | ||
{ | ||
set_speed : { speedMultiplier: 0 } | ||
}, | ||
{ | ||
sleep : { | ||
time : 3 | ||
} | ||
} | ||
] | ||
sequence : [ | ||
{ | ||
set_speed : { speedMultiplier: 0.3 } | ||
}, | ||
{ | ||
animation : { | ||
play: "engine:Walk.animationPool", | ||
loop: "engine:Walk.animationPool" | ||
} | ||
}, | ||
{ | ||
lookup: { tree: "Behaviors:doRandomMove" } | ||
}, | ||
{ | ||
animation : { | ||
play: "engine:Stand.animationPool", | ||
loop: "engine:Stand.animationPool" | ||
} | ||
}, | ||
{ | ||
set_speed : { speedMultiplier: 0 } | ||
}, | ||
{ | ||
sleep : { time : 3 } | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1,25 +1,16 @@ | ||
{ | ||
dynamic: [ | ||
{ | ||
guard: { | ||
componentPresent: "Behaviors:Fleeing", | ||
child: { | ||
sequence: [ | ||
{ | ||
guard: { | ||
componentPresent: "Behaviors:Fleeing", | ||
child: { | ||
sequence: [ | ||
check_flee_stop, | ||
{ | ||
lookup: { | ||
tree: "Behaviors:flee" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
lookup: { | ||
tree: "Behaviors:stray" | ||
{ lookup: { tree: "Behaviors:flee" } } | ||
] | ||
} | ||
} | ||
|
||
}, | ||
{ lookup: { tree: "Behaviors:stray" } } | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -1,10 +1,6 @@ | ||
{ | ||
sequence : [ | ||
{ | ||
selector : [ | ||
find_path | ||
] | ||
}, | ||
find_path, | ||
{ move_along_path: { | ||
child : { | ||
move_to: {} | ||
|
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
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
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
Oops, something went wrong.