summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Wolf.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-04-12Unify multiprotocol entity animationsTiger Wang1-4/+2
2021-04-12Update entity sizesTiger Wang1-1/+1
2020-10-09Adding wolf breading and moving breeding functionality to cMonster (#4951)12xx121-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>
2020-04-16Using Super.Mattes D1-4/+4
2020-03-22Add ambient mob sounds (#4521)Mat1-1/+1
2018-08-02Experience orb (#4259)changyong guo1-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
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
2018-07-24Broadcast refactor (#4264)peterbell101-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
2017-09-11Replace ItemCallbacks with lambdas (#3993)peterbell101-28/+17
2017-09-02Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot1-17/+28
This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
2017-09-01Replace ItemCallbacks with lambdas (#3948)peterbell101-28/+17
2017-08-25Add cUUID class (#3871)peterbell101-1/+1
2017-07-30Consolidated food effects into EatItem, added all fish type FoodInfos. (#3875)Lane Kolbly1-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
2017-06-13FastRandom rewrite (#3754)peterbell101-2/+2
2017-02-15Updated sounds and effect IDs (#3422)mathiascode1-1/+1
2016-11-22cWolf: Fixed targetting a nullptr.Mattes D1-3/+3
2016-09-03Entities now bail out of ticks if destroyed (#3363)LogicParrot1-0/+6
2016-02-19Stop Wolf from following player when he is flyingTyler Encke1-4/+12
Check to make sure player is not flying before allowing wolf to move to player. Fixed isFlying to IsFlying
2016-02-03cMonster::m_Target safety across worldsLogicParrot1-17/+16
2016-01-22Improved tamed wolf pack cooperation and projectile reactionsLogicParrot1-29/+99
2016-01-16Fix crash when tamed wolf is hit by arrowsLogicParrot1-1/+5
2016-01-12Fix mob attack intervalLogicParrot1-5/+1
2016-01-12Friendly wolf attack safety checksLogicParrot1-1/+14
2016-01-12Tamed wolf assists owner (attack / defence)LogicParrot1-30/+88
2015-12-03fix wolf collarsGargaj1-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)
2015-11-08fix cavespider poisoning even if attack is in cooldownGargaj1-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
2015-05-28AI - Tweaked wolf speed and teleport thresholdSafwatHalaby1-1/+2
2015-05-24Made -Weverything an error.tycho1-2/+2
2015-05-07Added support for additional data in the ParticleEffect Packettycho1-2/+3
Also started refactoring how broadcasts are handled
2015-05-01A* Pathfinding and better monster AIwiseoldman951-2/+2
2015-01-11Initial convertion of a_Dt to std::chronoTycho1-2/+2
also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-2/+2
2014-10-20En masse NULL -> nullptr replaceTiger Wang1-2/+2
2014-08-03Wolf uses UUID for owner.madmaxoft1-1/+5
Fixes #1277.
2014-07-17Normalized comments.madmaxoft1-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.
2014-04-26Add entity invulnerableHowaner1-2/+7
2014-04-12Entities handle chunks properly againTiger Wang1-2/+2
* Entities properly handle chunks * Changed EntityStatus enums to be less shouty
2014-02-20Add Wolf Heal with FoodHowaner1-10/+34
2014-02-16Fixes to previous commitTiger Wang1-9/+10
2014-02-16Slight cleanup of wolf codeTiger Wang1-23/+7
2014-02-01Fixed teleport to air, if owner is flying.Kirill Kirilenko1-0/+1
2014-01-26Fixed bug where wolfs would teleport while they were sitting.STRWarrior1-1/+4
2014-01-26Small fix since the new AI and a new small feature.STRWarrior1-6/+27
You get particles when trying to tame wolfs. They don't walk anymore when they are sitting.
2014-01-24Made wolves compatible with new AI codeTiger Wang1-11/+25
2014-01-24Large reworking of mob code [SEE DESC]Tiger Wang1-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
2013-12-20Sorted a few constructors to remove warnings.madmaxoft1-2/+2
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-12Now using a TickFollowPlayer function.STRWarrior1-26/+38
2013-11-10Removed #include "../Root.h" since it isn't needed.STRWarrior1-1/+0
2013-11-10Removed #include "../Root.h" since it isn't needed.STRWarrior1-1/+0
2013-11-10Small code-style fixes.madmaxoft1-9/+18
2013-11-10Renamed variables in cWolf.STRWarrior1-12/+12
2013-11-10Using DoWithPlayer instead of FindAndDoWithPlayer for callbacks.STRWarrior1-3/+12
You are able to dye the collar.
2013-11-10The owner object isn't stored anymore. Instead we use the name of the player.STRWarrior1-7/+21
This means only players can now have a wolf, but it fixes the bug where when you log out the wolf isn't your wolf anymore.
2013-11-10Using cMonster::Tick instead of super::cMonster::TickSTRWarrior1-1/+1
2013-11-10Wolves can now be owned by an entity.STRWarrior1-11/+83
They only sit when right clicked by their owner. They beg if the closest player has meat or bones in his hand. They follow their owner. They teleport to their owner if they are more then 30 blocks away. They don't attack players if they are not angry anymore. They don't move if they are sitting.
2013-10-20Fixed loading allowed mobs in world.madmaxoft1-1/+1
2013-10-08Initial Metadata Commit [SEE DESC]Tiger Wang1-0/+79
+ Pigs, Minecarts, Sheep, Skeletons, Slimes, Villagers, Wolves, and Horses have metadata + Base code on taming wolves, shearing sheep, and taming horses + Sheep and horses have different colours when spawned
2012-12-22Reduced most mobs' constructors to oneliners by passing parameters to superclassesmadmaxoft@gmail.com1-20/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1095 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-21Added sounds to levers and mobsluksor111@gmail.com1-0/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1093 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-21Reworked the IsA() / GetClass() framework to actually be useful. Added GetParentClass().madmaxoft@gmail.com1-9/+7
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1090 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-23Source files cleanup: Mobs-related files in a separate subfolder, renamed.madmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@883 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-06-14Attempt to bring sanity to newlines across systems.cedeel@gmail.com1-20/+20
git-svn-id: http://mc-server.googlecode.com/svn/trunk@606 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-01-29VC2008 / VC2010: Enabled precompiled header through Globals.h; the header included in every module in the project. Compilation optimization.madmaxoft@gmail.com1-0/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@188 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-12-25- Fixed Bug #99 -> Mobs no longer bother you in creative modelapayo94@gmail.com1-67/+2
- refactored many things in the Monster system git-svn-id: http://mc-server.googlecode.com/svn/trunk@112 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-12-21- Crafting fixed in 1.0.0lapayo94@gmail.com1-10/+1
- Server compatible with the weapons and equip again. (Some Packets were incompatible) - fixed bucket bugs (not all) - Fixed clients getting crashed by wrong Pickups - fixed nearly all mob drops. (Check wheather they are burning is missing Big Grin) - maybe some other things I canĀ“t recall atm Big Grin git-svn-id: http://mc-server.googlecode.com/svn/trunk@94 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-31Prepared some parts of the code for multi world support, I created lots of TODO'sfaketruth1-2/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@29 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-26git-svn-id: http://mc-server.googlecode.com/svn/trunk@10 0a769ca7-a7f5-676a-18bf-c427514a06d6admin@omencraft.com1-16/+15
2011-10-03MCServer c++ source filesfaketruth1-0/+92
git-svn-id: http://mc-server.googlecode.com/svn/trunk@3 0a769ca7-a7f5-676a-18bf-c427514a06d6