summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Path.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Enable some more clang-tidy linter checks (#4738)peterbell102020-05-151-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Avoid inefficient AString -> c_str() -> AString round trip * Avoid redundant string init expressions * Avoid unnecessary return, continue, etc. * Add .clang-format to help with clang-tidy fix-its * Avoid unnecessary passing by value * Avoid unnecessary local copying * Avoid copying in range-for loops * Avoid over-complicated boolean expressions * Some violations missed by my local clang-tidy * Allow unnecessary continue statements * Add brackets * Another expression missed locally * Move BindingsProcessor call into clang-tidy.sh and add space * Fix pushd not found error * Different grouping of CheckBlockInteractionRate
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-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
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-0/+6
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Remove double includes part 2 (#3890)peterbell102017-08-031-2/+0
|
* FastRandom rewrite (#3754)peterbell102017-06-131-1/+1
|
* Out of world blocks are now always considered air blocksLogicParrot2016-04-231-1/+1
|
* Pathfinder now properly treats nonsolids above fenceLogicParrot2016-02-041-11/+15
|
* Use IsBlockWater in cPathLogicParrot2016-01-171-1/+1
|
* Deleted cPath::BlockTypeIsFenceLogicParrot2015-12-271-29/+2
|
* Update fences and gates listSafwat Halaby2015-12-251-2/+9
| | | | Update fences and gates list
* PF - "Special blocks" handlingSafwat Halaby2015-12-241-107/+244
|
* PF - Improved mob jumpingSafwat Halaby2015-12-211-78/+139
|
* Revert "Changed cPath to have a reset method".Safwat Halaby2015-12-211-62/+28
|
* Changed cPath to have a reset method.tycho2015-12-161-28/+62
| | | | | | Also reverts "Changed raw cPath to an unique_ptr, fixes memory leak" This reverts commit 1515d37684b469f212bb9858cca6128d74e591b6.
* Decoupled cMonster and path recalc logic, re-implemented recalcSafwat Halaby2015-12-131-4/+9
|
* Stop pathfinding over cobble wallsGargaj2015-12-131-0/+1
| | | Also 1.5 blocks high, shouldn't pathfind over it.
* Blocks outside the world are never solidworktycho2015-11-131-0/+4
| | | Fixes #2539
* Fixed a position bug in the pathfinderTiger Wang2015-08-221-21/+4
|
* Unified the doxy-comment format.Mattes D2015-07-311-2/+4
|
* Improved mapsTiger Wang2015-07-141-1/+1
|
* Fixed wrong indent.Alexander Harkness2015-05-301-1/+1
|
* Merge pull request #2171 from SafwatHalaby/fenceAlexander Harkness2015-05-301-1/+7
|\ | | | | PF - Handle all fencetypes
| * PF - Handle all fencetypesSafwatHalaby2015-05-301-1/+7
| |
* | PF - Fixed diagonal cuttingSafwatHalaby2015-05-301-5/+12
|/
* Fix commentstycho2015-05-281-9/+9
|
* Fix warnings in cPathtycho2015-05-241-9/+9
|
* Pathfinder - Bounding boxes and some tweaksSafwatHalaby2015-05-231-17/+100
|
* Path recalculation improvementsSafwatHalaby2015-05-201-2/+10
|
* Removed UniquePTR from PathFinderSafwatHalaby2015-05-191-17/+7
|
* Pathfinder - approximated paths when original destination unreachableSafwatHalaby2015-05-171-24/+74
|
* PathFinder uses UniquePtr for cell map.SafwatHalaby2015-05-161-7/+2
|
* Revert "PathFinder - smart pointers"worktycho2015-05-151-2/+7
|
* uniquePTRSafwatHalaby2015-05-151-7/+2
|
* PF - Less calcs per tickwiseoldman952015-05-101-1/+1
|
* Spaces in cPathwiseoldman952015-05-081-0/+1
|
* Merge pull request #1949 from SafwatHalaby/burnworktycho2015-05-071-25/+0
|\ | | | | AI - Better shade cover
| * (duplicate) AI - Livestock escape fixed, water jumping fixedwiseoldman952015-05-061-25/+0
| |
* | Actually empty the open listworktycho2015-05-061-1/+1
|/
* PF - Swimming bugfixwiseoldman952015-05-061-3/+3
|
* PF - Fixed mobs not reaching leaning playerwiseoldman952015-05-061-1/+7
|
* Entity improvementsTiger Wang2015-05-041-40/+61
| | | | | | | | •Pathfinder improvements •Fixes #1217 •Fixes #1933 Merge remote-tracking branch 'SafwatHalaby/water2' into fixes
* PathFinder - Crash fix, chunks in parameters are now referenceswiseoldman952015-05-031-6/+4
|
* PathFinding - Chunk querying optimization and improve cPath::IsSolidwiseoldman952015-05-021-41/+26
|
* A* Pathfinding and better monster AIwiseoldman952015-05-011-0/+379