forked from 4ian/GDevelop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPathfindingBehavior.h
More file actions
50 lines (42 loc) · 1.26 KB
/
Copy pathPathfindingBehavior.h
File metadata and controls
50 lines (42 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
GDevelop - Pathfinding Behavior Extension
Copyright (c) 2010-2016 Florian Rival (Florian.Rival@gmail.com)
This project is released under the MIT License.
*/
#pragma once
#include "GDCore/Vector2.h"
#include <vector>
#include "GDCore/Project/Behavior.h"
#include "GDCore/Project/Object.h"
namespace gd {
class Layout;
}
class RuntimeScene;
class PlatformBehavior;
class ScenePathfindingObstaclesManager;
namespace gd {
class SerializerElement;
}
class RuntimeScenePlatformData;
/**
* \brief Compute path for objects avoiding obstacles
*/
class GD_EXTENSION_API PathfindingBehavior : public gd::Behavior {
public:
PathfindingBehavior(){};
virtual ~PathfindingBehavior(){};
virtual std::unique_ptr<gd::Behavior> Clone() const override {
return gd::make_unique<PathfindingBehavior>(*this);
}
virtual std::map<gd::String, gd::PropertyDescriptor> GetProperties(
const gd::SerializerElement& behaviorContent) const override;
virtual bool UpdateProperty(gd::SerializerElement& behaviorContent,
const gd::String& name,
const gd::String& value) override;
/**
* \brief Serialize the behavior
*/
virtual void InitializeContent(
gd::SerializerElement& behaviorContent) override;
private:
};