6 #ifndef GDCORE_EFFECTS_CONTAINER_H
7 #define GDCORE_EFFECTS_CONTAINER_H
12 #include "GDCore/String.h"
18 class SerializerElement;
39 bool HasEffectNamed(
const gd::String& name)
const;
54 Effect& GetEffect(std::size_t index);
59 const Effect& GetEffect(std::size_t index)
const;
64 std::size_t GetEffectPosition(
const gd::String& name)
const;
69 std::size_t GetEffectsCount()
const;
86 void InsertEffect(
const Effect& theEffect, std::size_t position);
96 void MoveEffect(std::size_t oldIndex, std::size_t newIndex);
101 void SwapEffects(std::size_t firstEffectIndex, std::size_t secondEffectIndex);
116 inline void Clear() { effects.clear(); }
119 std::vector<std::shared_ptr<gd::Effect>> effects;
Represents an effect that can be applied on a layer.
Definition: Effect.h:22
Contains effects applied to an entity on screen (i.e: a Layer or an Object).
Definition: EffectsContainer.h:29
void Clear()
Clear all effects of the container.
Definition: EffectsContainer.h:116
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