GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
InstructionsCountEvaluator.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 #ifndef GDCORE_INSTRUCTIONS_COUNT_EVALUATOR_H
8 #define GDCORE_INSTRUCTIONS_COUNT_EVALUATOR_H
9 #include <set>
10 
11 #include "GDCore/Events/Parsers/ExpressionParser2NodeWorker.h"
12 #include "GDCore/IDE/Events/ArbitraryEventsWorker.h"
13 #include "GDCore/IDE/Project/ArbitraryObjectsWorker.h"
14 #include "GDCore/String.h"
15 
16 namespace gd {
17 class Project;
18 class Object;
19 class Behavior;
20 } // namespace gd
21 
22 namespace gd {
23 
31 public:
35  static const int ScanProject(gd::Project &project);
36 
37 private:
39  : project(project_), instructionCount(0){};
40  gd::Project &project;
41  int instructionCount;
42 
43  // Instructions Visitor
44  bool DoVisitInstruction(gd::Instruction &instruction,
45  bool isCondition) override;
46 };
47 
48 }; // namespace gd
49 
50 #endif
ArbitraryEventsWorker is an abstract class used to browse events (and instructions) and do some work ...
Definition: ArbitraryEventsWorker.h:36
An instruction is a member of an event: It can be a condition or an action.
Definition: Instruction.h:30
Count the number of instructions in a project excluding extensions.
Definition: InstructionsCountEvaluator.h:30
Base class representing a project (game), including all resources, scenes, objects,...
Definition: Project.h:50
Definition: CommonTools.h:24