var searchIndex = {}; searchIndex["ai_behavior"] = {"doc":"AI behavior tree","items":[[3,"ActionArgs","ai_behavior","The arguments in the action callback.",null,null],[12,"event","","The event.",0,null],[12,"dt","","The remaining delta time.",0,null],[12,"action","","The action running.",0,null],[12,"state","","The state of the running action, if any.",0,null],[4,"Behavior","","Describes a behavior.",null,null],[13,"Pressed","","A button was pressed.",1,null],[13,"Released","","A button was released.",1,null],[13,"Action","","A high level description of an action.",1,null],[13,"Fail","","Converts `Success` into `Failure` and vice versa.",1,null],[13,"AlwaysSucceed","","Ignores failures and returns `Success`.",1,null],[13,"Select","","Runs behaviors one by one until a behavior succeeds.",1,null],[13,"Wait","","Waits an amount of time before continuing.",1,null],[13,"WaitForever","","Wait forever.",1,null],[13,"If","","`If(condition, success, failure)`",1,null],[13,"Sequence","","Runs behaviors one by one until all succeeded.",1,null],[13,"While","","Loops while conditional behavior is running.",1,null],[13,"WhenAll","","Runs all behaviors in parallel until all succeeded.",1,null],[13,"WhenAny","","Runs all behaviors in parallel until one succeeds.",1,null],[13,"After","","Runs all behaviors in parallel until all succeeds in sequence.",1,null],[4,"State","","Keeps track of a behavior.",null,null],[13,"PressedState","","Returns `Success` when button is pressed.",2,null],[13,"ReleasedState","","Returns `Success` when button is released.",2,null],[13,"ActionState","","Executes an action.",2,null],[13,"FailState","","Converts `Success` into `Failure` and vice versa.",2,null],[13,"AlwaysSucceedState","","Ignores failures and always return `Success`.",2,null],[13,"WaitState","","Keeps track of waiting for a period of time before continuing.",2,null],[13,"WaitForeverState","","Waits forever.",2,null],[13,"IfState","","Keeps track of an `If` behavior.\nIf status is `Running`, then it evaluates the condition.\nIf status is `Success`, then it evaluates the success behavior.\nIf status is `Failure`, then it evaluates the failure behavior.",2,null],[13,"SelectState","","Keeps track of a `Select` behavior.",2,null],[13,"SequenceState","","Keeps track of an `Sequence` behavior.",2,null],[13,"WhileState","","Keeps track of a `While` behavior.",2,null],[13,"WhenAllState","","Keeps track of a `WhenAll` behavior.",2,null],[13,"WhenAnyState","","Keeps track of a `WhenAny` behavior.",2,null],[13,"AfterState","","Keeps track of an `After` behavior.",2,null],[4,"Status","","The result of a behavior or action.",null,null],[13,"Success","","The behavior or action succeeded.",3,null],[13,"Failure","","The behavior or action failed.",3,null],[13,"Running","","The behavior or action is still running.",3,null],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"encode","","",1,null],[11,"decode","","",1,{"inputs":[{"name":"__da"}],"output":{"name":"result"}}],[11,"clone","","",1,null],[11,"eq","","",2,null],[11,"ne","","",2,null],[11,"encode","","",2,null],[11,"decode","","",2,{"inputs":[{"name":"__das"}],"output":{"name":"result"}}],[11,"clone","","",2,null],[11,"new","","Creates a state from a behavior.",2,{"inputs":[{"name":"behavior"}],"output":{"name":"self"}}],[11,"event","","Updates the cursor that tracks an event.",2,null],[11,"fmt","","",3,null],[11,"eq","","",3,null],[11,"encode","","",3,null],[11,"decode","","",3,{"inputs":[{"name":"__d"}],"output":{"name":"result"}}],[11,"clone","","",3,null],[17,"RUNNING","","The action is still running.",null,null]],"paths":[[3,"ActionArgs"],[4,"Behavior"],[4,"State"],[4,"Status"]]}; initSearch(searchIndex);