You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
zouv dad129dafd modify readme 8 years ago
examples modify readme 8 years ago
include add 8 years ago
src add src 8 years ago
Emakefile add compile script 8 years ago
README.md modify readme 8 years ago
rebar add compile script 8 years ago
rebar.config add compile script 8 years ago

README.md

erlbte

Behavior Tree for erlang

examples

exp1

testing

examples/bte_ai_test.erl
test(FileName) ->
  case file:read_file("json/" ++ FileName) of
    {ok, EBinary} ->
      {ok, BteStatus} = bte_ai:init(EBinary),
      io:format("s1:~p~n", [BteStatus#r_bte_status.status]),	
      BteStatus1 = bte_ai:tick(BteStatus),
      io:format("s2:~p~n", [BteStatus1#r_bte_status.status]),
      ok;
    _ ->
	  skip
  end.
  • how to test
    • bte_ai_test:test("test2.json").