11 #include "GDCore/Events/Expression.h"
12 #include "GDCore/Events/InstructionsList.h"
13 #include "GDCore/String.h"
46 const std::vector<gd::Expression>& parameters_,
47 bool inverted =
false);
102 void SetParametersCount(std::size_t size);
149 return subInstructions;
164 return originalInstruction;
168 std::shared_ptr<Instruction> instruction);
177 mutable std::vector<gd::Expression>
181 std::weak_ptr<Instruction>
195 std::shared_ptr<Instruction> GD_CORE_API
Class representing an expression used as a parameter of a gd::Instruction. This class is nothing more...
Definition: Expression.h:30
An instruction is a member of an event: It can be a condition or an action.
Definition: Instruction.h:30
void SetType(const gd::String &newType)
Change the instruction type.
Definition: Instruction.h:61
const gd::String & GetType() const
Return the type of the instruction.
Definition: Instruction.h:55
const std::vector< gd::Expression > & GetParameters() const
Get a reference to the std::vector containing the parameters.
Definition: Instruction.h:134
std::size_t GetParametersCount() const
Return the number of parameters of the instruction.
Definition: Instruction.h:94
void SetInverted(bool inverted_)
Set if the instruction is inverted or not.
Definition: Instruction.h:73
void SetParameters(const std::vector< gd::Expression > &val)
Replace all the parameters by new ones.
Definition: Instruction.h:141
void SetAwaited(bool awaited)
Set if the async instruction is to be awaited or not. This is not relevant if the instruction is not ...
Definition: Instruction.h:89
gd::InstructionsList & GetSubInstructions()
Return a reference to the vector containing sub instructions.
Definition: Instruction.h:155
std::weak_ptr< Instruction > GetOriginalInstruction()
Return the original instruction this instruction was copied from.
Definition: Instruction.h:163
bool IsInverted() const
Return true if the condition is inverted.
Definition: Instruction.h:67
const gd::InstructionsList & GetSubInstructions() const
Return a reference to the vector containing sub instructions.
Definition: Instruction.h:148
bool IsAwaited() const
Return true if the async instruction should be awaited. This is not relevant if the instruction is no...
Definition: Instruction.h:81
Definition: InstructionsList.h:25
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24
std::shared_ptr< Instruction > GD_CORE_API CloneRememberingOriginalElement(std::shared_ptr< Instruction > instruction)
Definition: Instruction.cpp:63