9 #include "GDCore/Project/AbstractEventsBasedEntity.h"
10 #include "GDCore/Project/ObjectsContainer.h"
11 #include "GDCore/Project/InitialInstancesContainer.h"
12 #include "GDCore/Project/LayersContainer.h"
13 #include "GDCore/String.h"
15 class SerializerElement;
50 defaultName = defaultName_;
79 isRenderedIn3D = isRenderedIn3D_;
92 isAnimatable = isAnimatable_;
105 isTextContainer = isTextContainer_;
115 isInnerAreaFollowingParentSize = isInnerAreaExpandingWithParent_;
130 return isInnerAreaFollowingParentSize;
139 isUsingLegacyInstancesRenderer = isUsingLegacyInstancesRenderer_;
148 return isUsingLegacyInstancesRenderer;
177 return objectsContainer;
184 return objectsContainer;
195 return initialInstances;
202 return initialInstances;
220 areaMinX = areaMinX_;
238 areaMinY = areaMinY_;
256 areaMinZ = areaMinZ_;
274 areaMaxX = areaMaxX_;
292 areaMaxY = areaMaxY_;
310 areaMaxZ = areaMaxZ_;
323 bool isTextContainer;
324 bool isInnerAreaFollowingParentSize;
325 bool isUsingLegacyInstancesRenderer;
Represents a behavior or an object that is implemented with events.
Definition: AbstractEventsBasedEntity.h:30
virtual AbstractEventsBasedEntity & SetDescription(const gd::String &description_)
Set the description of the behavior or object, to be displayed in the editor.
Definition: AbstractEventsBasedEntity.h:52
AbstractEventsBasedEntity & SetName(const gd::String &name_)
Set the internal name of the behavior or object.
Definition: AbstractEventsBasedEntity.h:65
AbstractEventsBasedEntity & SetFullName(const gd::String &fullName_)
Set the name of the behavior or object, to be displayed in the editor.
Definition: AbstractEventsBasedEntity.h:78
Represents an object that is implemented with events.
Definition: EventsBasedObject.h:30
const gd::ObjectsContainer & GetObjects() const
Get the objects of the custom object.
Definition: EventsBasedObject.h:183
EventsBasedObject & MarkAsInnerAreaFollowingParentSize(bool isInnerAreaExpandingWithParent_)
Declare that the parent scale will always be 1 and children will adapt there size....
Definition: EventsBasedObject.h:114
EventsBasedObject * Clone() const
Return a pointer to a new EventsBasedObject constructed from this one.
Definition: EventsBasedObject.h:39
void SetAreaMaxX(int areaMaxX_)
Set the right bound of the custom object.
Definition: EventsBasedObject.h:273
bool IsInnerAreaFollowingParentSize() const
Return true if objects handle size changes on their own and don't have the ScalableCapability.
Definition: EventsBasedObject.h:129
int GetAreaMinX() const
Get the left bound of the custom object.
Definition: EventsBasedObject.h:212
bool IsUsingLegacyInstancesRenderer() const
Return true if custom object are rendered using their child-objects instead of their child-instances.
Definition: EventsBasedObject.h:147
bool IsTextContainer() const
Return true if the object needs a TextContainer capability.
Definition: EventsBasedObject.h:154
gd::LayersContainer & GetLayers()
Get the layers of the custom object.
Definition: EventsBasedObject.h:167
EventsBasedObject & SetName(const gd::String &name_)
Set the internal name of the object.
Definition: EventsBasedObject.h:62
int GetAreaMinZ() const
Get the min Z bound of the custom object.
Definition: EventsBasedObject.h:248
EventsBasedObject & SetDefaultName(const gd::String &defaultName_)
Set the default name for created objects.
Definition: EventsBasedObject.h:49
const gd::String & GetDefaultName() const
Get the default name for created objects.
Definition: EventsBasedObject.h:44
int GetAreaMaxX() const
Get the right bound of the custom object.
Definition: EventsBasedObject.h:266
int GetAreaMinY() const
Get the top bound of the custom object.
Definition: EventsBasedObject.h:230
void SetAreaMinZ(int areaMinZ_)
Set the min Z bound of the custom object.
Definition: EventsBasedObject.h:255
void SetAreaMaxY(int areaMaxY_)
Set the bottom bound of the custom object.
Definition: EventsBasedObject.h:291
EventsBasedObject & SetFullName(const gd::String &fullName_)
Set the name of the object, to be displayed in the editor.
Definition: EventsBasedObject.h:70
bool IsRenderedIn3D() const
Return true if the object uses the 3D renderer.
Definition: EventsBasedObject.h:86
void SetAreaMaxZ(int areaMaxZ_)
Set the bottom bound of the custom object.
Definition: EventsBasedObject.h:309
int GetAreaMaxY() const
Get the bottom bound of the custom object.
Definition: EventsBasedObject.h:284
EventsBasedObject & MarkAsRenderedIn3D(bool isRenderedIn3D_)
Declare a usage of the 3D renderer.
Definition: EventsBasedObject.h:78
gd::ObjectsContainer & GetObjects()
Get the objects of the custom object.
Definition: EventsBasedObject.h:176
gd::InitialInstancesContainer & GetInitialInstances()
Get the instances of the custom object.
Definition: EventsBasedObject.h:194
EventsBasedObject & SetDescription(const gd::String &description_) override
Set the description of the behavior or object, to be displayed in the editor.
Definition: EventsBasedObject.h:54
const gd::LayersContainer & GetLayers() const
Get the layers of the custom object.
Definition: EventsBasedObject.h:162
EventsBasedObject & MarkAsTextContainer(bool isTextContainer_)
Declare a TextContainer capability.
Definition: EventsBasedObject.h:104
bool IsAnimatable() const
Return true if the object needs an Animatable capability.
Definition: EventsBasedObject.h:99
int GetAreaMaxZ() const
Get the max Z bound of the custom object.
Definition: EventsBasedObject.h:302
EventsBasedObject & MarkAsAnimatable(bool isAnimatable_)
Declare an Animatable capability.
Definition: EventsBasedObject.h:91
EventsBasedObject & MakAsUsingLegacyInstancesRenderer(bool isUsingLegacyInstancesRenderer_)
Declare that custom object are rendered using their child-objects instead of their child-instances.
Definition: EventsBasedObject.h:138
void SetAreaMinY(int areaMinY_)
Set the top bound of the custom object.
Definition: EventsBasedObject.h:237
const gd::InitialInstancesContainer & GetInitialInstances() const
Get the instances of the custom object.
Definition: EventsBasedObject.h:201
void SetAreaMinX(int areaMinX_)
Set the left bound of the custom object.
Definition: EventsBasedObject.h:219
Defines a container of gd::InitialInstances.
Definition: InitialInstancesContainer.h:38
Contains the layers for a scene or a custom object.
Definition: LayersContainer.h:21
Used as a base class for classes that will own objects (see gd::Object).
Definition: ObjectsContainer.h:37
Base class representing a project (game), including all resources, scenes, objects,...
Definition: Project.h:51
A generic container that can represent a value ( containing a string, double, bool or int),...
Definition: SerializerElement.h:37
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24