GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
Public Member Functions | Static Public Member Functions | List of all members
gd::EventsBasedBehavior Class Reference

Represents a behavior that is implemented with events. More...

#include <EventsBasedBehavior.h>

Inherits gd::AbstractEventsBasedEntity.

Public Member Functions

EventsBasedBehaviorClone () const
 Return a pointer to a new EventsBasedBehavior constructed from this one.
 
EventsBasedBehaviorSetDescription (const gd::String &description_) override
 Set the description of the behavior or object, to be displayed in the editor.
 
EventsBasedBehaviorSetName (const gd::String &name_)
 Set the internal name of the behavior.
 
EventsBasedBehaviorSetFullName (const gd::String &fullName_)
 Set the name of the behavior, to be displayed in the editor.
 
const gd::StringGetObjectType () const
 Get the object type the behavior should be used with.
 
EventsBasedBehaviorSetObjectType (const gd::String &objectType_)
 Set the object type the behavior should be used with.
 
bool IsPrivate () const
 Check if the behavior is private - it can't be used outside of its extension.
 
EventsBasedBehaviorSetPrivate (bool _isPrivate)
 Set that the behavior is private - it can't be used outside of its extension.
 
gd::PropertiesContainerGetSharedPropertyDescriptors ()
 Return a reference to the list of shared properties.
 
const gd::PropertiesContainerGetSharedPropertyDescriptors () const
 Return a const reference to the list of shared properties.
 
void SerializeTo (SerializerElement &element) const override
 Serialize the AbstractEventsBasedEntity to the specified element.
 
void UnserializeFrom (gd::Project &project, const SerializerElement &element) override
 Load the AbstractEventsBasedEntity from the specified element.
 
- Public Member Functions inherited from gd::AbstractEventsBasedEntity
 AbstractEventsBasedEntity (const gd::String &_name, gd::EventsFunctionsContainer::FunctionOwner functionContainerSource)
 
AbstractEventsBasedEntityClone () const
 Return a pointer to a new AbstractEventsBasedEntity constructed from this one.
 
const gd::StringGetDescription () const
 Get the description of the behavior or object, that is displayed in the editor.
 
const gd::StringGetName () const
 Get the internal name of the behavior or object.
 
AbstractEventsBasedEntitySetName (const gd::String &name_)
 Set the internal name of the behavior or object.
 
const gd::StringGetFullName () const
 Get the name of the behavior or object, that is displayed in the editor.
 
AbstractEventsBasedEntitySetFullName (const gd::String &fullName_)
 Set the name of the behavior or object, to be displayed in the editor.
 
EventsFunctionsContainerGetEventsFunctions ()
 Return a reference to the functions of the events based behavior or object.
 
const EventsFunctionsContainerGetEventsFunctions () const
 Return a const reference to the functions of the events based behavior or object.
 
gd::PropertiesContainerGetPropertyDescriptors ()
 Return a reference to the list of the properties.
 
const gd::PropertiesContainerGetPropertyDescriptors () const
 Return a const reference to the list of the properties.
 

Static Public Member Functions

static gd::String GetSharedPropertyActionName (const gd::String &propertyName)
 Get the name of the action to change a shared property.
 
static gd::String GetSharedPropertyConditionName (const gd::String &propertyName)
 Get the name of the condition to compare a shared property.
 
static gd::String GetSharedPropertyExpressionName (const gd::String &propertyName)
 Get the name of the expression to get a shared property.
 
static gd::String GetSharedPropertyToggleActionName (const gd::String &propertyName)
 Get the name of the action to toggle a boolean shared property.
 
- Static Public Member Functions inherited from gd::AbstractEventsBasedEntity
static gd::String GetPropertyActionName (const gd::String &propertyName)
 Get the name of the action to change a property.
 
static gd::String GetPropertyConditionName (const gd::String &propertyName)
 Get the name of the condition to compare a property.
 
static gd::String GetPropertyExpressionName (const gd::String &propertyName)
 Get the name of the expression to get a property.
 
static gd::String GetPropertyToggleActionName (const gd::String &propertyName)
 Get the name of the action to toggle a boolean property.
 

Detailed Description

Represents a behavior that is implemented with events.

It's the responsibility of the IDE to run the logic to transform this into a real behavior, by declaring an extension and running code generation. See EventsFunctionsExtensionsLoader.


The documentation for this class was generated from the following files: