GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
ArbitraryEventBasedBehaviorsWorker.h
1 /*
2  * GDevelop Core
3  * Copyright 2008-2016 Florian Rival ([email protected]). All rights
4  * reserved. This project is released under the MIT License.
5  */
6 
7 #pragma once
8 
9 #include <map>
10 #include <memory>
11 #include <vector>
12 
13 #include "GDCore/String.h"
14 #include "GDCore/Tools/SerializableWithNameList.h"
15 
16 namespace gd {
17 class EventsBasedBehavior;
18 } // namespace gd
19 
20 namespace gd {
21 
30  public:
33 
37  void Launch(gd::SerializableWithNameList<gd::EventsBasedBehavior>& behaviors) { VisitEventBasedBehaviors(behaviors); };
38 
42  void Launch(EventsBasedBehavior& behavior) { VisitEventBasedBehavior(behavior); };
43 
44  private:
45  void VisitEventBasedBehaviors(gd::SerializableWithNameList<gd::EventsBasedBehavior>& behaviors);
46  void VisitEventBasedBehavior(gd::EventsBasedBehavior& behavior);
47 
51  virtual void DoVisitEventBasedBehaviors(gd::SerializableWithNameList<gd::EventsBasedBehavior>& behaviors){};
52 
56  virtual void DoVisitEventBasedBehavior(gd::EventsBasedBehavior& behavior){};
57 };
58 
59 } // namespace gd
ArbitraryEventsFunctionsWorker is an abstract class used to browse event-based behaviors and do some ...
Definition: ArbitraryEventBasedBehaviorsWorker.h:29
void Launch(EventsBasedBehavior &behavior)
Launch the worker on the specified event-based behavior.
Definition: ArbitraryEventBasedBehaviorsWorker.h:42
void Launch(gd::SerializableWithNameList< gd::EventsBasedBehavior > &behaviors)
Launch the worker on the specified event-based behaviors.
Definition: ArbitraryEventBasedBehaviorsWorker.h:37
Represents a behavior that is implemented with events.
Definition: EventsBasedBehavior.h:32
Definition: CommonTools.h:24