behavior3行为树
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

22 righe
549 B

  1. %%%-------------------------------------------------------------------
  2. %%% @author DY
  3. %%% @copyright (C) 2020, <COMPANY>
  4. %%% @doc
  5. %%% 判断是否到达终点
  6. %%% 是:SUCCESS
  7. %%% 否:FAILURE
  8. %%% @end
  9. %%% Created : 07. 10月 2020 15:18
  10. %%%-------------------------------------------------------------------
  11. -module(cond_is_dest).
  12. -include("behavior3.hrl").
  13. %% API
  14. -export([tick/2]).
  15. tick(_BTree, State) ->
  16. case State of
  17. #{grid_list := []} ->
  18. {?BT_SUCCESS, State};
  19. #{} ->
  20. {?BT_FAILURE, State}
  21. end.