aboutsummaryrefslogtreecommitdiff
path: root/src/pathfinder.h
diff options
context:
space:
mode:
authorElias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com>2020-11-04 16:57:47 +0100
committerGitHub <noreply@github.com>2020-11-04 16:57:47 +0100
commit3e16c3a78fff61c20e63ba730d15e94e3bb877b4 (patch)
treec070350db219f2c4241d22bc31949685c7b42fe9 /src/pathfinder.h
parent5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc (diff)
parent6ccb5835ff55d85156be91473c598eca9d6cb9a6 (diff)
downloaddragonfireclient-3e16c3a78fff61c20e63ba730d15e94e3bb877b4.tar.xz
Merge branch 'master' into master
Diffstat (limited to 'src/pathfinder.h')
-rw-r--r--src/pathfinder.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/pathfinder.h b/src/pathfinder.h
index f8a463361..526aa0ee8 100644
--- a/src/pathfinder.h
+++ b/src/pathfinder.h
@@ -36,8 +36,7 @@ class Map;
/* Typedefs and macros */
/******************************************************************************/
-typedef enum
-{
+typedef enum {
DIR_XP,
DIR_XM,
DIR_ZP,
@@ -45,11 +44,10 @@ typedef enum
} PathDirections;
/** List of supported algorithms */
-typedef enum
-{
- PA_DIJKSTRA, /**< Dijkstra shortest path algorithm */
- PA_PLAIN, /**< A* algorithm using heuristics to find a path */
- PA_PLAIN_NP /**< A* algorithm without prefetching of map data */
+typedef enum {
+ PA_DIJKSTRA, /**< Dijkstra shortest path algorithm */
+ PA_PLAIN, /**< A* algorithm using heuristics to find a path */
+ PA_PLAIN_NP /**< A* algorithm without prefetching of map data */
} PathAlgorithm;
/******************************************************************************/
@@ -57,6 +55,10 @@ typedef enum
/******************************************************************************/
/** c wrapper function to use from scriptapi */
-std::vector<v3s16> get_path(Map *map, const NodeDefManager *ndef, v3s16 source,
- v3s16 destination, unsigned int searchdistance, unsigned int max_jump,
- unsigned int max_drop, PathAlgorithm algo);
+std::vector<v3s16> get_path(Map *map, const NodeDefManager *ndef,
+ v3s16 source,
+ v3s16 destination,
+ unsigned int searchdistance,
+ unsigned int max_jump,
+ unsigned int max_drop,
+ PathAlgorithm algo);