Behavior3 client library for Delphi (Behavior Trees for Delphi)
behavior3delphi is a Behavior3 client library for Delphi (Behavior Trees for Delphi) based on behavior3js.
Features
- Based on behavior3
- Supports loading of behavior3editor project files (a visual behavior tree editor)
- Example included
Core Classes
This library includes the following core structures
- BehaviorTree: the structure that represents a Behavior Tree
- Blackboard: represents a “memory” in an agent and is required to to run a
BehaviorTree
- Composite: base class for all composite nodes
- Decorator: base class for all decorator nodes
- Action: base class for all action nodes
- Condition: base class for all condition nodes
- Tick: used as container and tracking object through the tree during the tick signal
- BaseNode: the base class that provide all common node features
Nodes
Composite Nodes:
- Sequence
- Priority
- MemSequence
- MemPriority
Decorators:
- Inverter
- Limiter
- MaxTime
- Repeater
- RepeaterUntilFailure
- RepeaterUntilSuccess
Actions:
- Succeeder
- Failer
- Error
- Runner
- Wait
Building
Either include all units (incl. those found in the Actions/Composites/Core/Decorators
directories) or install and compile the Behavior3Delphi.dpk
package (in the \Package
folder) and set Link with runtime packages to true in the project options (Packages -> Runtime Packages) of your project.
Copyright and license
Copyright 2016 by Dennis D. Spreen dennis@spreendigital.de. Code released under the MIT license.
6 Comments to Behavior3 client library for Delphi (Behavior Trees for Delphi)
Thank you, this looks very cool. I’m new to behaviour trees but hope to make up for lost time thanks to this new framework. Cheers, Rob
July 9, 2016
@Robert: Behavior3 is a “first generation” behavior tree implementation, thus I’m currently working on a “second generation” event-driven (see link above) implementation – which maximizes performance. And in conjunction with (the new “ai superstar”) utility based AI this is IMHO a great AI concept.
September 15, 2016
New to the concept of Behavior3.
Can you give a example of how and why use Behavior3 in application development(not Games).
Thanks
September 16, 2016
@JLouro: Why do you ask? If don’t need behaviours of any kind (robotics, automation, etc) you don’t need behavior3 – it’s that simple 😉
September 22, 2016
Well. I would like to automate parts of my applications, based on user usage or other, hence the question.
So !? can you give a simple example.
Thanks
September 22, 2016
just take a look at the bottom box link “An Introduction to Behavior Trees” which is written by the Behavior3 author. It gives a quite nice overview of behavior models vs finite state machines (which may better fit your needs)
Leave a comment
About Dennis D. Spreen
Search
Recent Posts
- How to compile Lua 5.4.0 for Android as a dynamic library using Android Studio 4
- Please make inline vars usable for production – fix RSP-28892
- How to compile Lua 5.4.0 as a Mac OS X dynamic library
- How to compile Lua 5.4.0 for Linux as a shared library
- How to compile Lua 5.4.0 for Windows
- Daily Wage – a Spigot/Bukkit plugin that pays out a daily wage
- How to compile Lua 5.3.5 for Windows
- Better Collada exporter for Blender with custom properties
- MOS6502-delphi – a MOS 6502 CPU emulator for Delphi
- Pass a multidimensional array as a parameter (with a hidden caveat)
Categories
Tags
Archives
- May 2020
- March 2020
- June 2019
- March 2017
- August 2016
- July 2016
- June 2016
- January 2016
- September 2015
- February 2015
- January 2015
- October 2014
- September 2014
- August 2014
- May 2014
- March 2014
- February 2014
- November 2011
- June 2011
- February 2011
- March 2010
- September 2009
- August 2009
- July 2009
- May 2009
- March 2009
- February 2009
- January 2009
- November 2008
- October 2008
- February 2008
- June 2007
Delphi Feeds
- Delphi and AI[5]: Encoding a multi-line string January 19, 2025
- Code Snippet Collection v2.2.2 released January 19, 2025
- 30 pages d'applications Android disponibles sur Google Play pour les 30 ans de Delphi ? January 17, 2025
- [EN] Vectors & Features Extraction January 16, 2025
- Vectors & Features Extraction January 16, 2025
- Creating Excel Reports in .NET Core with EPPlus: A Comprehensive Guide January 15, 2025
- Dew Lab Studio 2025 Update R1 January 15, 2025
- TMS Academic program update for Delphi and C++ developers January 15, 2025
- Delphi sorcery: Introducing Spring.Benchmark – a port of Google benchmark January 14, 2025
- 30 présentations en ligne pour les 30 ans de Delphi January 14, 2025
July 8, 2016