summaryrefslogtreecommitdiffstats
path: root/src/Mobs/PathFinder.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-04-03Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D1-0/+1
The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
2018-02-05Deal with covered switches consistently (#4161)peterbell101-7/+1
* Fixes a number of "<function>: not all control paths return a value" warnings on MSVC. * Introduces the UNREACHABLE global macro and uses it instead of conditionally compiled switch defaults. * Move cNBTParseErrorCategory from FastNBT.h into FastNBT.cpp to prevent bad calls to message()
2016-04-18Fix issues below y = 0LogicParrot1-2/+8
2015-12-24PF - "Special blocks" handlingSafwat Halaby1-39/+59
2015-12-21PF - Improved mob jumpingSafwat Halaby1-1/+5
2015-12-21Revert "Changed cPath to have a reset method".Safwat Halaby1-8/+8
2015-12-16Changed cPath to have a reset method.tycho1-8/+8
Also reverts "Changed raw cPath to an unique_ptr, fixes memory leak" This reverts commit 1515d37684b469f212bb9858cca6128d74e591b6.
2015-12-15Changed raw cPath to an unique_ptr, fixes memory leakLukas Pioch1-8/+8
2015-12-13Decoupled cMonster and path recalc logic, re-implemented recalcSafwat Halaby1-0/+261