summaryrefslogtreecommitdiff
path: root/src/pathfinder.h
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2016-04-01 01:52:17 +0200
committerest31 <MTest31@outlook.com>2016-05-01 15:32:02 +0200
commitac8bb457aae58867cbb96a5e64d286e7edc18e16 (patch)
tree6a345c53f13a4f11db38d9f98309cb746de5897c /src/pathfinder.h
parent46e5ef4e9a19a162c8baee15d314233c0bb0e331 (diff)
downloadminetest-ac8bb457aae58867cbb96a5e64d286e7edc18e16.tar.gz
minetest-ac8bb457aae58867cbb96a5e64d286e7edc18e16.tar.bz2
minetest-ac8bb457aae58867cbb96a5e64d286e7edc18e16.zip
Pathfinder: Fix style
* Fix naming style for methods and classes: Use camelCase for methods and PascalCase for classes as code style demands it. And use sneak_case for methods that are not member of a class. * Replace "* " with " *" for Pointers * Same for references * Put function body opening braces on new line * Other misc minor non functional style improvements
Diffstat (limited to 'src/pathfinder.h')
-rw-r--r--src/pathfinder.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pathfinder.h b/src/pathfinder.h
index 31ea2f285..ba95aaf1c 100644
--- a/src/pathfinder.h
+++ b/src/pathfinder.h
@@ -41,26 +41,26 @@ typedef enum {
DIR_XM,
DIR_ZP,
DIR_ZM
-} path_directions;
+} PathDirections;
/** List of supported algorithms */
typedef enum {
- DIJKSTRA, /**< Dijkstra shortest path algorithm */
- A_PLAIN, /**< A* algorithm using heuristics to find a path */
- A_PLAIN_NP /**< A* algorithm without prefetching of map data */
-} algorithm;
+ 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;
/******************************************************************************/
/* declarations */
/******************************************************************************/
/** c wrapper function to use from scriptapi */
-std::vector<v3s16> get_Path(ServerEnvironment* env,
+std::vector<v3s16> get_path(ServerEnvironment *env,
v3s16 source,
v3s16 destination,
unsigned int searchdistance,
unsigned int max_jump,
unsigned int max_drop,
- algorithm algo);
+ PathAlgorithm algo);
#endif /* PATHFINDER_H_ */