game2006/server/bin/exported/android_chase_to_kill.xml
aozhiwei 08994498ff 1
2023-08-16 15:31:05 +08:00

49 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--EXPORTED BY TOOL, DON'T MODIFY IT!-->
<!--Source File: android_chase_to_kill.xml-->
<behavior name="android_chase_to_kill" agenttype="AndroidAgent" version="5">
<pars>
<par name="_$local_task_param_$_0" type="int" value="0" />
</pars>
<node class="Task" id="0">
<property Prototype="Self.BaseAgent::ChaseToKill(0)" />
<property IsHTN="false" />
<node class="Sequence" id="1">
<node class="Assignment" id="9">
<property CastRight="false" />
<property Opl="int Self.AndroidAgent::_$local_task_param_$_0" />
<property Opr="int Self.BaseAgent::find_enemy_target_uniid" />
</node>
<node class="Action" id="2">
<property Method="Self.BaseAgent::SetCurrentTarget(int Self.AndroidAgent::_$local_task_param_$_0)" />
<property ResultOption="BT_SUCCESS" />
</node>
<node class="DecoratorLoop" id="3">
<property Count="const int -1" />
<property DecorateWhenChildEnds="true" />
<property DoneWithinFrame="false" />
<attachment class="Precondition" id="4" flag="precondition">
<property BinaryOperator="And" />
<property Operator="Equal" />
<property Opl="Self.BaseAgent::CurrentTargetIsValid()" />
<property Opr2="const bool true" />
<property Phase="Both" />
</attachment>
<node class="IfElse" id="5">
<node class="Condition" id="6">
<property Operator="Equal" />
<property Opl="Self.BaseAgent::CurrentTargetMoveCanReach()" />
<property Opr="const bool true" />
</node>
<node class="ReferencedBehavior" id="8">
<property ReferenceBehavior="const string &quot;android_attack_new&quot;" />
</node>
<node class="Action" id="7">
<property Method="Self.BaseAgent::CoFindPathToCurrentTarget(100)" />
<property ResultOption="BT_INVALID" />
</node>
</node>
</node>
</node>
</node>
</behavior>