7 #ifndef GDCORE_WHILEEVENT_H
8 #define GDCORE_WHILEEVENT_H
9 #include "GDCore/Events/Event.h"
10 #include "GDCore/Events/EventsList.h"
28 WhileEvent() : infiniteLoopWarning(
true), justCreatedByTheUser(
true){};
45 return whileConditions;
49 whileConditions = whileConditions_;
52 bool HasInfiniteLoopWarning()
const {
return infiniteLoopWarning; }
54 virtual std::vector<gd::InstructionsList*> GetAllConditionsVectors();
55 virtual std::vector<gd::InstructionsList*> GetAllActionsVectors();
56 virtual std::vector<const gd::InstructionsList*> GetAllConditionsVectors()
58 virtual std::vector<const gd::InstructionsList*> GetAllActionsVectors()
const;
60 virtual void SerializeTo(SerializerElement& element)
const;
62 const SerializerElement& element);
69 bool infiniteLoopWarning;
71 bool justCreatedByTheUser;
75 int GetConditionsHeight()
const;
76 int GetActionsHeight()
const;
77 int GetWhileConditionsHeight()
const;
Base class defining an event.
Definition: Event.h:43
A list of events.
Definition: EventsList.h:32
Definition: InstructionsList.h:25
Base class representing a project (game), including all resources, scenes, objects,...
Definition: Project.h:50
While event is a standard event that is repeated while some conditions are true.
Definition: WhileEvent.h:26
virtual bool IsExecutable() const
Definition: WhileEvent.h:32
virtual gd::EventsList & GetSubEvents()
Definition: WhileEvent.h:36
virtual const gd::EventsList & GetSubEvents() const
Definition: WhileEvent.h:35
virtual bool CanHaveSubEvents() const
Definition: WhileEvent.h:34
virtual gd::WhileEvent * Clone() const
Definition: WhileEvent.h:30
Definition: CommonTools.h:24