Commit Graph

14 Commits

Author SHA1 Message Date
D8H d40e360b8a Add support for behaviors based on other behaviors ("behavior composition") (#2781)
* This allows [custom behaviors](http://wiki.compilgames.net/doku.php/gdevelop5/behaviors/events-based-behaviors), that you can create in your project or get from extensions, to require the presence of one or multiple other behaviors on an object.
  * This is an advanced feature that is helpful to create behaviors that are based on other. For example, a behavior "Platformer enemy" using the "Platformer object" behavior and adding specific actions, conditions and logic to make an enemy chase the player.
  * If you create a behavior and want to use this, just go to the properties of this behavior and add a new property. Choose the type "Required Behavior" for this property. You can then use this new behavior in the events of the behavior you just edited.
* To use a behavior based on another, you don't need to do anything special! Just add it to your object as usual: any missing behavior will be added to your object, so you can start using it immediately.
2021-09-06 19:51:42 +01:00
Florian Rival d59f40ff5d [WIP] Clean old methods used only in GD4 in objects and behaviors (2) 2019-04-21 19:40:05 +01:00
Florian Rival a8559bfbbc Add clang-format to format (C++) source files automatically (#491)
* Update all CMakeLists of extensions to use clang-format
* Run clang-format on all Extensions
* Update GDCore CMakeLists.txt to add clang-format
* Run clang-format on GDCore files
* Update GDJS and GDCpp CMakeLists.txt to add clang-format
* Run clang-format on GDCpp and GDJS files
2018-05-09 15:57:38 -07:00
Florian Rival e444e80493 Update copyrights year 2016-01-14 19:46:56 +01:00
Victor Levasseur 445e0061a7 Remove Utf8Tools.h 2015-07-17 12:05:12 +02:00
Victor Levasseur 4efab914fe Rename Utf8String.h/.cpp to String.h/.cpp 2015-07-09 18:17:13 +02:00
Victor Levasseur abe62778f2 Fix gd::String not included in Log.cpp 2015-07-05 00:26:56 +02:00
Victor Levasseur 0a1542ba73 Replace all std::string by gd::String in GDCore
Add some other methods to gd::String (insert, ...)
2015-07-04 23:58:06 +02:00
victorlevasseur b772a99ff0 Add GD_T macro to translate UTF8 std::string (and _ macro is for wxString
only)
Updated all source code to use the new macro
2015-03-29 14:40:07 +02:00
Florian Rival 64e6860718 Version bump.
Updated copyrights.
2015-01-22 21:22:01 +01:00
Florian Rival 40a82c61ea Switched from LGPL and zlib/png licenses to MIT License. 2014-11-30 16:59:51 +01:00
Florian Rival 7d3ada265c Replaced "Game Develop" by "GDevelop" 2014-09-24 16:25:13 +02:00
Florian Rival 8844642ae0 Updated copyrights.
Added doxygen files.
Cleaned some files.
2014-06-26 00:20:36 +02:00
Florian Rival c2d242d362 Forgot to commit files. 2014-04-01 00:24:39 +02:00