summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Stabilise MoveToWorld (#4004)Mat2020-03-051-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Stabilise MoveToWorld * Fix comments and deprecate ScheduleMoveToWorld * Enhanced thread safety for m_WorldChangeInfo * Return unique_ptr from cAtomicUniquePtr::exchange * cWorld now calls entity cEntity::OnAddToWorld and cEntity::OnRemoveFromWorld. Allows broadcasting entities added to the world from the world's tick thread. This also factors out some common code from cEntity::DoMoveToWorld and cEntity::Initialize. As a consequence, cEntity::Destroy(false) (i.e. Destroying the entity without broadcasting) is impossible. This isn't used anywhere in Cuberite so it's now deprecated. * Update entity position after removing it from the world. Fixes broadcasts being sent to the wrong chunk. * Fix style * cEntity: Update LastSentPosition when sending spawn packet * Add Wno-deprecated-declarations to the lua bindings * Kill uses of ScheduleMoveToWorld
* Add BurnsInDaylight to Lua API and Monsters.ini (#4295)Muhammad Kaisar Arkhan2018-09-241-2/+2
| | | | | | | | | | | | | * Monster.h: Export SetBurnsInDaylight This commit also adds BurnsInDaylight to check if the Monster burns in daylight or not. Closes https://github.com/cuberite/cuberite/issues/4294 * MonsterConfig.cpp: Add BurnsInDaylight Closes https://github.com/cuberite/cuberite/issues/4294
* New movement system for leashed entities (#4147)peterbell102018-01-171-1/+1
| | | | | | | * New movement system for leashed entities Entities are accelerated towards the leashed to entity as if by a spring. * Mobs now pathfind close to but not directly to the leashing entity. * Also minor comment changes
* Use ref instead of pointerLukas Pioch2017-08-241-1/+1
|
* Removed outdated pathfinder comment (#3955)Safwat Halaby2017-08-231-2/+1
|
* Fully implemented leashes (#3798)Pablo Beltrán2017-08-211-0/+48
|
* Merge pull request #3489 from cuberite/EntityOwnershipTiger Wang2017-08-181-4/+10
|\ | | | | * Changed entity ownership model to use smart pointers
| * Changed entity ownership model to use smart pointersTiger Wang2017-08-071-4/+10
| |
* | Replaced includes with forward declarationsLukas Pioch2017-08-131-1/+1
|/
* Removed unneeded includes (#3902)Lukas Pioch2017-08-061-2/+0
|
* Remove double includes part 2 (#3890)peterbell102017-08-031-1/+0
|
* Removed unused forward declarations (#3888)Lukas Pioch2017-08-031-1/+1
|
* Fixed tracer usage in Entity physics handling. (#3720)Mattes D2017-05-281-3/+3
|
* Spawn eggs works againLukas Pioch2017-05-221-0/+3
|
* Clang 5.0 fixesLukas Pioch2017-05-211-1/+1
| | | | | - Added override keyword - Removed inherited member variables
* Don't destroy monster when last target type is a player (#3721)Pablo Beltrán2017-05-211-0/+5
| | | In current Cuberite version if you are pursued by monsters you just have to disconnect and connect again to get rid of them. If no other player is in your chunk monsters will get destroyed.
* Spectators added (#2852)bibo382016-10-121-1/+1
|
* APIDump: Reformatted the docs to include type information.Mattes D2016-09-121-1/+1
| | | | Also fixed a bit of documentation in the CPP source.
* cMonster::m_Target safety across worldsLogicParrot2016-02-031-3/+18
|
* Spiders now friendly at daylight, new cChunk functionsLogicParrot2016-01-211-2/+2
|
* Fix mob attack intervalLogicParrot2016-01-121-1/+2
|
* Tamed wolf assists owner (attack / defence)LogicParrot2016-01-121-1/+1
|
* PF - "Special blocks" handlingSafwat Halaby2015-12-241-4/+4
|
* blockheight mechanismGargaj2015-12-131-2/+2
|
* Decoupled cMonster and path recalc logic, re-implemented recalcSafwat Halaby2015-12-131-51/+7
|
* implement breedingGargaj2015-11-291-0/+1
|
* changed mob age from char to intJulian Laubstein2015-11-161-3/+3
|
* Partial revert of #2446Safwat Halaby2015-09-281-2/+13
|
* Fixed a position bug in the pathfinderTiger Wang2015-08-221-11/+3
|
* Unified the doxy-comment format.Mattes D2015-07-311-7/+7
|
* Spawn baby mobshallucino2015-07-161-0/+2
|
* Support ageable mobsHallucino2015-07-141-1/+7
| | | | Move ageable stuff in Monster directly
* Merge branch 'master' into PreventNewWarningstycho2015-05-291-3/+6
|\ | | | | | | | | Conflicts: src/Entities/ArrowEntity.cpp
| * AI - Sane SkeletonSafwatHalaby2015-05-281-3/+6
| |
* | Make -Werror disabling file onlytycho2015-05-191-3/+3
|/ | | | Ad fix a load of warnings
* Pathfinder - approximated paths when original destination unreachableSafwatHalaby2015-05-171-0/+7
|
* More style checking.Mattes D2015-05-091-1/+1
| | | | Spaces around some operators are checked.
* (duplicate) AI - Livestock escape fixed, water jumping fixedwiseoldman952015-05-061-0/+10
|
* AI - More conservative use of ResetPathFinding, fixed minor swimming / jumping bugwiseoldman952015-05-051-6/+10
|
* Entity improvementsTiger Wang2015-05-041-32/+28
| | | | | | | | •Pathfinder improvements •Fixes #1217 •Fixes #1933 Merge remote-tracking branch 'SafwatHalaby/water2' into fixes
* AI - Improved Mob Jumpingwiseoldman952015-05-031-0/+1
|
* Merge pull request #1925 from SafwatHalaby/PathFinder_OptimzeTiger Wang2015-05-021-1/+1
|\ | | | | Pathfinder optimization
| * PathFinding - Chunk querying optimization and improve cPath::IsSolidwiseoldman952015-05-021-1/+1
| |
* | AI - Better daylight handlingwiseoldman952015-05-021-2/+2
|/
* A* Pathfinding and better monster AIwiseoldman952015-05-011-8/+12
|
* Converted Monster to std::chronoTycho2015-01-161-5/+5
|
* Initial convertion of a_Dt to std::chronoTycho2015-01-111-1/+1
| | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* Added Entity GuardianMasy982014-12-181-1/+1
|
* MobSpawner fixes.Howaner2014-12-011-1/+1
|
* Many api fixes, add vanilla names to mob type -> string functions and mob spawner fixes.Howaner2014-11-291-4/+7
|
* Merge branch 'master' into MobSpawnerHowaner2014-11-291-3/+5
|\
| * Mobs: Fixed crash with terrain too high.Mattes D2014-11-151-3/+5
| |
* | Merge branch 'master' into MobSpawnerHowaner2014-11-181-35/+28
|\| | | | | | | | | Conflicts: MCServer/Plugins/Core
| * convert old style casts to fix warningsSteven Riehl2014-10-121-32/+28
| |
| * Removed obsolete cMonster::eType.madmaxoft2014-10-051-3/+0
| | | | | | | | Has been replaced with global eMonsterType.
| * Fixed minor style issues.madmaxoft2014-09-271-1/+1
| |
* | Merge branch 'master' into MobSpawnerHowaner2014-09-261-43/+33
|\| | | | | | | | | | | Conflicts: src/MobSpawner.h src/Mobs/Monster.h
| * Fixed styleTycho2014-09-251-0/+3
| |
| * Merge branch 'master' into redstoneTestsTycho2014-09-251-2/+25
| |\ | | | | | | | | | | | | Conflicts: src/Mobs/Monster.h
| | * Merge branch 'master' into EntityCustomNameHowaner2014-09-231-0/+5
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/ClientHandle.cpp src/ClientHandle.h src/Protocol/Protocol.h src/Protocol/Protocol125.cpp src/Protocol/Protocol125.h src/Protocol/Protocol17x.cpp src/Protocol/Protocol17x.h src/Protocol/ProtocolRecognizer.cpp src/Protocol/ProtocolRecognizer.h src/World.cpp src/World.h
| | * | Added the new functions to APIDump.Howaner2014-09-021-2/+2
| | | |
| | * | Added SetCustomName() to players.Howaner2014-09-021-1/+2
| | | |
| | * | Added name tagHowaner2014-09-011-0/+2
| | | |
| | * | Added CustomName to cMonster.Howaner2014-09-011-1/+19
| | | |
| * | | Merge branch 'master' into redstoneTestsTycho2014-09-171-0/+5
| |\ \ \ | | | |/ | | |/| | | | | | | | | Conflicts: src/Blocks/ChunkInterface.h
| * | | Added first test to show the object can be createdTycho2014-09-171-45/+9
| | |/ | |/|
* | | Implemented mob spawner.Howaner2014-09-191-1/+1
| |/ |/|
* | Renamed SetWalkSpeed() to SetRelativeWalkSpeed()Howaner2014-09-021-3/+3
| |
* | Added SetWalkSpeed() to cMonster.Howaner2014-08-301-0/+5
|/
* Removed redundant semicolons and re-added warningarchshift2014-07-241-1/+1
|
* Monsters: Made IsUndead overridable by the respective mob classesarchshift2014-07-191-1/+1
|
* Fixed style: spaces after commas.madmaxoft2014-07-191-1/+1
|
* Monster fixesTiger Wang2014-07-181-1/+0
| | | | | * Fixes #1203 * Fixes #627
* Fixed spaces before commas.madmaxoft2014-07-181-3/+3
|
* Basic style fixes.madmaxoft2014-07-171-4/+4
|
* Normalized comments.madmaxoft2014-07-171-7/+7
| | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
* Merge branch 'master' into potionsmadmaxoft2014-07-171-1/+1
|\
| * Tailored death messagesTiger Wang2014-07-041-1/+1
| |
* | EntityEffects.x -> EntityEffect.x, Object-Oriented effectsarchshift2014-06-191-2/+0
| | | | | | | | Changed effect map to take a pointer of the effect as a result.
* | Pawn: renamed HandleEntityEffects to HandleEntityEffectarchshift2014-06-171-1/+1
| | | | | | | | Exported entity effect functions for ToLua and documented them in APIDesc.lua
* | Monster: added IsUndead(), undead-specific entity effectsarchshift2014-06-171-0/+6
|/
* Merge pull request #940 from Howaner/GlobalFixesMattes D2014-04-281-1/+1
|\ | | | | Add entity invulnerable
| * Add entity invulnerableHowaner2014-04-261-1/+1
| |
* | Fixed mobs that don't naturally spawn.archshift2014-04-261-0/+1
| |
* | Giants!archshift2014-04-251-1/+1
|/ | | | Changed mfMaxplusone to mfUnhandled for readability, and fixed a default case warning.
* Added new AI rulesTiger Wang2014-04-171-2/+2
| | | | | | | + Added new AI rules handling cacti and large heights * Fixed cIniFile not recognising comments in cIniFile::ReadFile() * Fixed users.ini not being properly generated * Changed all instances of (int)floor(GetPosXXX()) to POSXXX_TOINT
* Fixed Formatting, added compiler warning suppressing methods, fixed commentsTheJumper2014-02-241-2/+2
|
* Fixed Formatting, Added DropChances and CanPickUpLoot attributes to MonstersTheJumper2014-02-231-0/+35
|
* Fixed #627Tiger Wang2014-02-111-2/+0
| | | | | | | - Attack() is now called from cAggressive instead of cMonster * Monsters can no longer attack through walls * Should fix last remnants of player damage after teleporting (that both STR and bearbin contributed fixes to :P)
* Exporded World:FindClosestPlayer, Item:IsEnchantable and Monster:MoveToPosition to Lua APItonibm192014-02-031-0/+1
|
* Implemented fall damage for mobsTiger Wang2014-01-251-2/+6
| | | | | | + Implemented mobile fall damage * Formatting fixes + Defined new Position->Integer macros
* Mob bugfixesTiger Wang2014-01-251-2/+10
| | | | | | | | | | * Mobs no longer require constant line-of-sight to a player to remain aggravated * Fixed an ASSERT * Fixed mobs jumping * Fixed Idle state not properly using AI + Added FILE_IO_PREFIX to favicon loading + Implemented #563
* Miscellaneous improvementsTiger Wang2014-01-241-13/+9
|
* Large reworking of mob code [SEE DESC]Tiger Wang2014-01-241-19/+49
| | | | | | | + Implemented better pathfinding - Removed lots of unused variables, functions, etc. * Changed some variable types * Other miscellaneous fixes, and also completes the previous PRs
* Sorted a few constructors to remove warnings.madmaxoft2013-12-201-1/+1
|
* Moved source to srcAlexander Harkness2013-11-241-0/+195