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
- February updates! February 21, 2025
- New Features and Enhancements in .NET Core 3.1 February 21, 2025
- TTMSFNCDataSetFilterDialog: Effortless SQL-Based Filtering for Your Delphi DataSets February 20, 2025
- TeeChart Visualisation in Mesics’ Lactate Diagnostics February 20, 2025
- Teaser: Visuino Live Q&A - Feb 22, 2025 11AM Pacific Time February 20, 2025
- Integrate StellarDS in your TypeScript projects with our latest SDK February 19, 2025
- Code52/carnac: A utility to give some insight into how you use your keyboard (on Windows systems) February 18, 2025
- Delphi 30th Anniversary “Innovation Timeline” Update Published. Get Your Free PDF Now! February 16, 2025
- Delphi Tip of the Day: FMX FastReport Text Object (TfrxMemoView) February 16, 2025
- Join Us in Nederlands for a Coffee and More February 15, 2025
July 8, 2016