6 #ifndef GDCORE_EFFECT_H
7 #define GDCORE_EFFECT_H
10 class SerializerElement;
12 #include "GDCore/String.h"
24 Effect() : folded(
false) {};
27 void SetName(
const gd::String& name_) { name = name_; }
28 const gd::String& GetName()
const {
return name; }
30 void SetEffectType(
const gd::String& effectType_) {
31 effectType = effectType_;
33 const gd::String& GetEffectType()
const {
return effectType; }
35 void SetFolded(
bool fold =
true) { folded = fold; }
36 bool IsFolded()
const {
return folded; }
38 void SetDoubleParameter(
const gd::String& name,
double value) {
39 doubleParameters[name] = value;
42 double GetDoubleParameter(
const gd::String& name) {
43 return doubleParameters[name];
47 stringParameters[name] = value;
51 return stringParameters[name];
54 void SetBooleanParameter(
const gd::String& name,
bool value) {
55 booleanParameters[name] = value;
58 bool GetBooleanParameter(
const gd::String& name) {
59 return booleanParameters[name];
62 const std::map<gd::String, double>& GetAllDoubleParameters()
const {
63 return doubleParameters;
66 const std::map<gd::String, gd::String>& GetAllStringParameters()
const {
67 return stringParameters;
70 const std::map<gd::String, bool>& GetAllBooleanParameters()
const {
71 return booleanParameters;
74 void ClearParameters() {
75 doubleParameters.clear();
76 stringParameters.clear();
77 booleanParameters.clear();
94 std::map<gd::String, double> doubleParameters;
95 std::map<gd::String, gd::String> stringParameters;
96 std::map<gd::String, bool> booleanParameters;
Represents an effect that can be applied on a layer.
Definition: Effect.h:22
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