You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li>If a child returns SUCCESS, tick the next one.</li>
705
712
<li>If a child returns FAILURE, then no more children are ticked and the Sequence returns FAILURE.</li>
706
-
<li>If all the children return SUCCESS, then the Sequence returns SUCCESS too.</li>
713
+
<li>If <strong>all</strong> the children return SUCCESS, then the Sequence returns SUCCESS too.</li>
707
714
</ul>
708
-
<detailsclass="warning"><summary>Exercise: find the bug! Expand to read the answer.</summary><p>If the action <strong>GrabBeer</strong> fails, the door of the
709
-
fridge would remain open, since the last action <strong>CloseDoor</strong> is skipped.</p></details><h3id="decorators">Decorators</h3>
715
+
<divclass="admonition warning">
716
+
<pclass="admonition-title">Have you spotted the bug?</p>
717
+
<p>If the action <strong>GrabBeer</strong> fails, the door of the
718
+
fridge would remain open, since the last action <strong>CloseFridge</strong> is skipped.</p>
719
+
</div>
720
+
<h3id="decorators">Decorators</h3>
710
721
<p>The goal of a <ahref="../DecoratorNode/">DecoratorNode</a> is either to transform the result it received
711
722
from the child, to terminate the child,
712
723
or repeat ticking of the child, depending on the type of Decorator.</p>
<p><strong>But</strong> there is an error. Can you find it?</p>
731
-
<detailsclass="warning"><summary>Exercise: find the bug! Expand to read the answer.</summary><p>If <strong>DoorOpen</strong> returns FAILURE, we have the desired behaviour.
741
+
<p>But...</p>
742
+
<divclass="admonition warning">
743
+
<pclass="admonition-title">Have you spotted the bug?</p>
744
+
<p>If <strong>DoorOpen</strong> returns FAILURE, we have the desired behaviour.
732
745
But if it returns SUCCESS, the left branch fails and the entire Sequence
733
-
is interrupted. </p></details><h3id="second-controlnode-fallback">Second ControlNode: Fallback</h3>
746
+
is interrupted.</p>
747
+
<p>We will see later how we can improve this tree. </p>
0 commit comments