GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
RequiredBehaviorRenamer.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 #ifndef GDCORE_REQUIREDBEHAVIORRENAMER_H
7 #define GDCORE_REQUIREDBEHAVIORRENAMER_H
8 #include <map>
9 #include <memory>
10 #include <vector>
11 #include "GDCore/IDE/Project/ArbitraryEventBasedBehaviorsWorker.h"
12 #include "GDCore/String.h"
13 namespace gd {
14 class BaseEvent;
15 class Project;
16 class EventsList;
17 } // namespace gd
18 
19 namespace gd {
20 
27  public:
28  RequiredBehaviorRenamer(const gd::String& oldBehaviorType_,
29  const gd::String& newBehaviorType_)
30  : oldBehaviorType(oldBehaviorType_), newBehaviorType(newBehaviorType_){};
31  virtual ~RequiredBehaviorRenamer();
32 
33  private:
34  void DoVisitEventBasedBehavior(gd::EventsBasedBehavior& behavior) override;
35 
36  gd::String oldBehaviorType;
37  gd::String newBehaviorType;
38 };
39 
40 } // namespace gd
41 
42 #endif // GDCORE_REQUIREDBEHAVIORRENAMER_H
ArbitraryEventsFunctionsWorker is an abstract class used to browse event-based behaviors and do some ...
Definition: ArbitraryEventBasedBehaviorsWorker.h:29
Represents a behavior that is implemented with events.
Definition: EventsBasedBehavior.h:31
Rename the type of required behavior in event-based behaviors.
Definition: RequiredBehaviorRenamer.h:26
String represents an UTF8 encoded string.
Definition: String.h:31
Definition: CommonTools.h:24