Categorygithub.com/alkaid/behavior
modulepackage
1.1.23
Repository: https://github.com/alkaid/behavior.git
Documentation: pkg.go.dev

# README

behavior

golang event driver behavior tree features:

  • 事件驱动
  • 共享实例的行为数:所有节点无状态,状态由黑板管理
  • 并发:各个AI在独立子纤程执行互不干扰
  • 脚本:任务节点和条件节点的委托支持使用脚本

# Packages

No description provided by the author
nolint:dupl.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

DefaultSharedBlackboard 获取全局默认共享黑板单例 @return *Blackboard.
GlobalClassLoader 全局类加载器 @return *ClassLoader.
GlobalHandlerPool 全局反射代理缓存池 @return *handle.HandlerPool.
No description provided by the author
InitSystem 系统初始化 要使用该库必须先初始化 @param option @panic 若发生异常将主动panic.
NewBrain bcore.IBrain 实例 @param blackboard @param delegates 要注册的委托对象 @return bcore.IBrain.
No description provided by the author
No description provided by the author
RegisterDelegatorType 注册代理类的反射信息 @param name @param target.
No description provided by the author
SharedBlackboard 获取全局共享黑板单例,若不存在会创建一个 @param key 指定key @return *Blackboard.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
ClassLoader 节点类加加载器 作用 1.缓存节点类2.使用时找到缓存类并实例化出来.
No description provided by the author
No description provided by the author
TreeRegistry 行为树注册器.

# Type aliases

ExecutorFun 委托方法签名例.
No description provided by the author