Files
GDevelop/Extensions/PathBehavior/RuntimeScenePathDatas.h
T
Florian Rival a8559bfbbc Add clang-format to format (C++) source files automatically (#491)
* Update all CMakeLists of extensions to use clang-format
* Run clang-format on all Extensions
* Update GDCore CMakeLists.txt to add clang-format
* Run clang-format on GDCore files
* Update GDJS and GDCpp CMakeLists.txt to add clang-format
* Run clang-format on GDCpp and GDJS files
2018-05-09 15:57:38 -07:00

39 lines
1011 B
C++

/**
GDevelop - Path Behavior Extension
Copyright (c) 2010-2016 Florian Rival (Florian.Rival@gmail.com)
This project is released under the MIT License.
*/
#ifndef RUNTIMESCENEPATHDATAS_H
#define RUNTIMESCENEPATHDATAS_H
#include <SFML/System/Vector2.hpp>
#include <map>
#include <vector>
#include "GDCpp/Runtime/BehaviorsRuntimeSharedData.h"
#include "GDCpp/Runtime/String.h"
class ScenePathDatas;
class ContactListener;
/**
* Datas shared by Path Behavior at runtime
*/
class GD_EXTENSION_API RuntimeScenePathDatas
: public BehaviorsRuntimeSharedData {
public:
RuntimeScenePathDatas(const ScenePathDatas& behaviorSharedDatas);
virtual ~RuntimeScenePathDatas();
virtual std::shared_ptr<BehaviorsRuntimeSharedData> Clone() const {
return std::shared_ptr<BehaviorsRuntimeSharedData>(
new RuntimeScenePathDatas(*this));
}
std::map<gd::String, std::vector<sf::Vector2f> >
globalPaths; ///< Map containing all the global paths
private:
};
#endif // RUNTIMESCENEPATHDATAS_H