Packages

Behavior3 by erlang library

Current section

Files

Jump to
behavior3erl src action error.erl
Raw

src/action/error.erl

-module(error).
%%--------------------------------------------------------------------
%% include
%%--------------------------------------------------------------------
-include("behavior3.hrl").
%%--------------------------------------------------------------------
%% export API
%%--------------------------------------------------------------------
-export([tick/2]).
%%--------------------------------------------------------------------
%% API functions
%%--------------------------------------------------------------------
-spec tick(bt_node(), bt_state()) -> {bt_status(), bt_state()}.
tick(_BTNode, BTState) ->
{?BT_ERROR, BTState}.
%%--------------------------------------------------------------------
%% Internal functions
%%--------------------------------------------------------------------