summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Path.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-04-20Valid Height is now checked by vector.x12xx12x1-1/+1
2021-03-28Unify DoWithBlockEntity (#5168)Tiger Wang1-0/+1
+ DoWith calls now broadcast the block entity and mark the chunk dirty + Add block entity change queue to synchronise BE updates with block updates * Fixed a few incorrect assertions about BE type - Remove manual overloads
2020-05-15Enable some more clang-tidy linter checks (#4738)peterbell101-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
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-07-26CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell101-0/+6
Add check for number of empty lines between functions and fix the corresponding failures
2017-08-03Remove double includes part 2 (#3890)peterbell101-2/+0
2017-06-13FastRandom rewrite (#3754)peterbell101-1/+1
2016-04-23Out of world blocks are now always considered air blocksLogicParrot1-1/+1
2016-02-04Pathfinder now properly treats nonsolids above fenceLogicParrot1-11/+15
2016-01-17Use IsBlockWater in cPathLogicParrot1-1/+1
2015-12-27Deleted cPath::BlockTypeIsFenceLogicParrot1-29/+2
2015-12-25Update fences and gates listSafwat Halaby1-2/+9
Update fences and gates list
2015-12-24PF - "Special blocks" handlingSafwat Halaby1-107/+244
2015-12-21PF - Improved mob jumpingSafwat Halaby1-78/+139
2015-12-21Revert "Changed cPath to have a reset method".Safwat Halaby1-62/+28
2015-12-16Changed cPath to have a reset method.tycho1-28/+62
Also reverts "Changed raw cPath to an unique_ptr, fixes memory leak" This reverts commit 1515d37684b469f212bb9858cca6128d74e591b6.
2015-12-13Decoupled cMonster and path recalc logic, re-implemented recalcSafwat Halaby1-4/+9
2015-12-13Stop pathfinding over cobble wallsGargaj1-0/+1
Also 1.5 blocks high, shouldn't pathfind over it.
2015-11-13Blocks outside the world are never solidworktycho1-0/+4
Fixes #2539
2015-08-22Fixed a position bug in the pathfinderTiger Wang1-21/+4
2015-07-31Unified the doxy-comment format.Mattes D1-2/+4
2015-07-14Improved mapsTiger Wang1-1/+1
2015-05-30Fixed wrong indent.Alexander Harkness1-1/+1
2015-05-30PF - Handle all fencetypesSafwatHalaby1-1/+7
2015-05-30PF - Fixed diagonal cuttingSafwatHalaby1-5/+12
2015-05-28Fix commentstycho1-9/+9
2015-05-24Fix warnings in cPathtycho1-9/+9
2015-05-23Pathfinder - Bounding boxes and some tweaksSafwatHalaby1-17/+100
2015-05-20Path recalculation improvementsSafwatHalaby1-2/+10
2015-05-19Removed UniquePTR from PathFinderSafwatHalaby1-17/+7
2015-05-17Pathfinder - approximated paths when original destination unreachableSafwatHalaby1-24/+74
2015-05-16PathFinder uses UniquePtr for cell map.SafwatHalaby1-7/+2
2015-05-15Revert "PathFinder - smart pointers"worktycho1-2/+7
2015-05-15uniquePTRSafwatHalaby1-7/+2
2015-05-10PF - Less calcs per tickwiseoldman951-1/+1
2015-05-08Spaces in cPathwiseoldman951-0/+1
2015-05-06Actually empty the open listworktycho1-1/+1
2015-05-06(duplicate) AI - Livestock escape fixed, water jumping fixedwiseoldman951-25/+0
2015-05-06PF - Swimming bugfixwiseoldman951-3/+3
2015-05-06PF - Fixed mobs not reaching leaning playerwiseoldman951-1/+7
2015-05-04Entity improvementsTiger Wang1-40/+61
•Pathfinder improvements •Fixes #1217 •Fixes #1933 Merge remote-tracking branch 'SafwatHalaby/water2' into fixes
2015-05-03PathFinder - Fixed nullptr chunk bugwiseoldman951-1/+1
2015-05-03PathFinder - Crash fix, chunks in parameters are now referenceswiseoldman951-6/+4
2015-05-02PathFinding - Chunk querying optimization and improve cPath::IsSolidwiseoldman951-41/+26
2015-05-01A* Pathfinding and better monster AIwiseoldman951-0/+379