summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Wolf.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ItemHandler initialisation is a constant expression (#5344)x12xx12x2021-12-021-1/+1
| | | | | * Transition to non-pointer item handler * That is my destructor - I decide when I leave this world * I declare your destruction private and you final
* Death messages for tamed pets and ocelots are now tamable. (#5243)TheHyper452021-06-191-0/+1
| | | | | | | | | | | | | | | * Fixing bugs regarding wolfs and ocelots * Death messages appear after killing tamed ocelots and wolfs * Style fix * Added myself to the CONTRIBUTORS file * Removed redundant string initialization * Removed an unsafe cast. * Changed the order of initialization of fields in constuctor of class cOcelot
* Unify multiprotocol entity animationsTiger Wang2021-04-121-4/+2
|
* Update entity sizesTiger Wang2021-04-121-1/+1
|
* Adding wolf breading and moving breeding functionality to cMonster (#4951)12xx122020-10-091-1/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * added wolf breading * mpoved breeding to monster * checkstyle * fixed my IDE "helping" * removed magic number and fixed faster aging * added flooring to age manipulation * fixed copiler error * fixed typo * moved tps to Defines.h * removed the TPS constant from the lua API exposure * added inline constexpr added explanation * fixed broken build * "fixed" build Co-authored-by: 12xx12 <12xx12100@gmail.com>
* Using Super.Mattes D2020-04-161-4/+4
|
* Add ambient mob sounds (#4521)Mat2020-03-221-1/+1
|
* Experience orb (#4259)changyong guo2018-08-021-6/+7
| | | | | | | * Replace cWorld::FindClosesPlayer with cWorld::DoWithClosestPlayer * Implement experience reward splitting into the orb sizes used in vanilla * Modified speed calculation in cExpOrb::Tick to make the orbs fly towards the player Fixes #4216
* 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
* Broadcast refactor (#4264)peterbell102018-07-241-3/+2
| | | | | | | | | | | | | | | | | | | | | | | * Move Broadcast functions from cChunkMap to cBroadcaster - Remove cBroadcastInterface in favour of cBroadcaster. - cChunk: Remove broadcast functions. * resurect broadcast interface * Absorb cBroadcaster into cWorld. Removes the need for forwarding the function calls. * Improve const-correctness * Use Int8 instead of char + Comment `ForClients` functions * Improve comments * Broadcaster: Rename ForClients functions
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-111-28/+17
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-021-17/+28
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-011-28/+17
|
* Add cUUID class (#3871)peterbell102017-08-251-1/+1
|
* Consolidated food effects into EatItem, added all fish type FoodInfos. (#3875)Lane Kolbly2017-07-301-4/+7
| | | | | | | | * Consolidated food effects into EatItem, added all fish types. * Changed type of NumFishInfos to satisfy clang. * Removed unused call for a_Item in EatItem
* FastRandom rewrite (#3754)peterbell102017-06-131-2/+2
|
* Updated sounds and effect IDs (#3422)mathiascode2017-02-151-1/+1
|
* cWolf: Fixed targetting a nullptr.Mattes D2016-11-221-3/+3
|
* Entities now bail out of ticks if destroyed (#3363)LogicParrot2016-09-031-0/+6
|
* Stop Wolf from following player when he is flyingTyler Encke2016-02-191-4/+12
| | | | | | Check to make sure player is not flying before allowing wolf to move to player. Fixed isFlying to IsFlying
* cMonster::m_Target safety across worldsLogicParrot2016-02-031-17/+16
|
* Improved tamed wolf pack cooperation and projectile reactionsLogicParrot2016-01-221-29/+99
|
* Fix crash when tamed wolf is hit by arrowsLogicParrot2016-01-161-1/+5
|
* Merge pull request #2859 from LogicParrot/attack2LogicParrot2016-01-121-5/+1
|\ | | | | Fix mob attack interval
| * Fix mob attack intervalLogicParrot2016-01-121-5/+1
| |
* | Friendly wolf attack safety checksLogicParrot2016-01-121-1/+14
|/
* Tamed wolf assists owner (attack / defence)LogicParrot2016-01-121-30/+88
|
* fix wolf collarsGargaj2015-12-031-2/+2
| | | | I don't know why this had an inversion but it consistently made the wrong collar color (i.e. yellow dye made the collar blue)
* fix cavespider poisoning even if attack is in cooldownGargaj2015-11-081-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | make attack function more responsive fix cavespider poisoning even if attack is in cooldown make attack function more responsive Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack code style fix cavespider poisoning even if attack is in cooldown make attack function more responsive fix cavespider poisoning even if attack is in cooldown make attack function more responsive Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack code style Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack Merge branch 'master' into cavespider-attack Merge branch 'master' into cavespider-attack fix cavespider poisoning even if attack is in cooldown make attack function more responsive fix cavespider poisoning even if attack is in cooldown make attack function more responsive Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack code style fix cavespider poisoning even if attack is in cooldown make attack function more responsive fix cavespider poisoning even if attack is in cooldown make attack function more responsive Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack code style Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack Merge branch 'master' into cavespider-attack Merge branch 'master' into cavespider-attack Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack
* Merge branch 'master' into PreventNewWarningstycho2015-05-281-1/+2
|\ | | | | | | | | Conflicts: src/Inventory.cpp
| * AI - Tweaked wolf speed and teleport thresholdSafwatHalaby2015-05-281-1/+2
| |
* | Made -Weverything an error.tycho2015-05-241-2/+2
|/
* Added support for additional data in the ParticleEffect Packettycho2015-05-071-2/+3
| | | | Also started refactoring how broadcasts are handled
* A* Pathfinding and better monster AIwiseoldman952015-05-011-2/+2
|
* Initial convertion of a_Dt to std::chronoTycho2015-01-111-2/+2
| | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-2/+2
|
* Wolf uses UUID for owner.madmaxoft2014-08-031-1/+5
| | | | Fixes #1277.
* Normalized comments.madmaxoft2014-07-171-4/+4
| | | | | 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.
* Add entity invulnerableHowaner2014-04-261-2/+7
|
* Entities handle chunks properly againTiger Wang2014-04-121-2/+2
| | | | | * Entities properly handle chunks * Changed EntityStatus enums to be less shouty
* Add Wolf Heal with FoodHowaner2014-02-201-10/+34
|
* Fixes to previous commitTiger Wang2014-02-161-9/+10
|
* Slight cleanup of wolf codeTiger Wang2014-02-161-23/+7
|
* Fixed teleport to air, if owner is flying.Kirill Kirilenko2014-02-011-0/+1
|
* Fixed bug where wolfs would teleport while they were sitting.STRWarrior2014-01-261-1/+4
|
* Small fix since the new AI and a new small feature.STRWarrior2014-01-261-6/+27
| | | | | You get particles when trying to tame wolfs. They don't walk anymore when they are sitting.
* Made wolves compatible with new AI codeTiger Wang2014-01-241-11/+25
|
* Large reworking of mob code [SEE DESC]Tiger Wang2014-01-241-1/+1
| | | | | | | + 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-2/+2
|
* Moved source to srcAlexander Harkness2013-11-241-0/+189