|
A simple behavior control solution. We tried to write this in a way that makes it easy to use our code samples in Finite State Machines, Behavior Trees and Goal-oriented Action Planning. The idea is that you can run our simulation from within a different solution, for example in case you want to have agents with fighting capabilites. More...
Public Member Functions | |
void | Update () |
Update runs the plan. More... | |
A simple behavior control solution. We tried to write this in a way that makes it easy to use our code samples in Finite State Machines, Behavior Trees and Goal-oriented Action Planning. The idea is that you can run our simulation from within a different solution, for example in case you want to have agents with fighting capabilites.
void NEEDSIM.PlanDemo.Update | ( | ) |
Update runs the plan.
If the currently running action returns, upon evaluation, Result.Running, we keep on running that action. If Result.Failure is returend we start a new sequence. If Result.Success is returned we go to the next step in the current sequence, or, if at the last step, start a new sequence.