summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-12-15 11:44:29 +0100
committertycho <work.tycho@gmail.com>2015-12-15 20:18:58 +0100
commit0fb8646198ca0507b031ed10dabd9f4a72e926c6 (patch)
tree38c11ca0c39f66b525ec32904cac80317a55c1b6 /src/Mobs
parentMerge pull request #2750 from cuberite/wrng (diff)
downloadcuberite-0fb8646198ca0507b031ed10dabd9f4a72e926c6.tar
cuberite-0fb8646198ca0507b031ed10dabd9f4a72e926c6.tar.gz
cuberite-0fb8646198ca0507b031ed10dabd9f4a72e926c6.tar.bz2
cuberite-0fb8646198ca0507b031ed10dabd9f4a72e926c6.tar.lz
cuberite-0fb8646198ca0507b031ed10dabd9f4a72e926c6.tar.xz
cuberite-0fb8646198ca0507b031ed10dabd9f4a72e926c6.tar.zst
cuberite-0fb8646198ca0507b031ed10dabd9f4a72e926c6.zip
Diffstat (limited to 'src/Mobs')
-rw-r--r--src/Mobs/Path.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Mobs/Path.h b/src/Mobs/Path.h
index 410d6fec5..158853a8c 100644
--- a/src/Mobs/Path.h
+++ b/src/Mobs/Path.h
@@ -76,6 +76,13 @@ public:
/** Creates a dummy path which does nothing except returning false when isValid is called. */
cPath();
+ /** delete default constructors */
+ cPath(const cPath & a_other) = delete;
+ cPath(cPath && a_other) = delete;
+
+ cPath & operator=(const cPath & a_other) = delete;
+ cPath & operator=(cPath && a_other) = delete;
+
/** Performs part of the path calculation and returns the appropriate status.
If NEARBY_FOUND is returned, it means that the destination is not reachable, but a nearby destination
is reachable. If the user likes the alternative destination, they can call AcceptNearbyPath to treat the path as found,