summaryrefslogtreecommitdiffstats
path: root/src/Entities/ExpOrb.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-04-12Update entity sizesTiger Wang1-1/+1
2020-04-16Using Super.Mattes D1-2/+2
2020-03-05Stabilise MoveToWorld (#4004)Mat1-3/+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
2019-09-29Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D1-19/+4
2018-08-02Experience orb (#4259)changyong guo1-23/+71
* 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/+4
Add check for number of empty lines between functions and fix the corresponding failures
2018-01-16Exp Orbs and Pickups are destroyed instantly by cacti. (#4136)Alexander Harkness1-0/+13
* Cactus detection code follows pattern set in #3996 * Pickups are now destroyed on cactus contact * Add cactus detection and destruction to Exp Orbs Remove checks for IsExpOrb() in cEntity::Tick() Exp Orbs do not call super::Tick() and so this condition was pointless.
2017-09-19Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959)Lane Kolbly1-1/+1
* Made BroadcastSoundEffect take vector parameters. * Added docs for new vectored methods * Removed old code * Fixed lua warnings * Made old BroadcastSoundEffect not an override. * m_Block to m_BlockPos, used Vector3d constructor where prettier. * a_Block to a_BlockPos * Changed thunderbolt a_Block to a_BlockPos
2017-06-03Fixed exp orb (#3744)Pablo Beltrán1-19/+23
Fixes #3740 Fixes #2667
2017-02-15Updated sounds and effect IDs (#3422)mathiascode1-1/+1
2016-10-12Spectators added (#2852)bibo381-1/+1
2016-02-05Bulk clearing of whitespaceLogicParrot1-3/+3
2015-05-24Made -Weverything an error.tycho1-2/+2
2015-01-16Converted cExpOrbEntity to std::chronoTycho1-4/+4
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-1/+1
2014-10-20En masse NULL -> nullptr replaceTiger Wang1-1/+1
2014-07-21Style: Normalized to no spaces before closing parenthesis.madmaxoft1-3/+3
2014-07-17Fixed tabs used for alignment.madmaxoft1-2/+2
2014-07-13Changed BroadcastSoundEffect function to take floating pos.Howaner1-1/+1
2014-04-23Some change to Entity.cppTiger Wang1-2/+0
* Added comments to BroadcastMovementUpdate() and the collision tracer
2014-03-15Add ExpOrb saving.Howaner1-7/+19
2014-02-16Fixed minor formatting issues from #682Tiger Wang1-4/+2
- Removed unused PlaySoundEffect * Simplified and parenthesised code
2014-02-16Replace random Float Generation and broadcast the Exp Pickup SoundHowaner1-6/+3
2014-02-16Add Exp Bottle EffectsHowaner1-1/+9
2013-12-15Fixed indentation.madmaxoft1-1/+1
2013-12-14Fixed not getting XP from mobs.STRWarrior1-1/+1
2013-12-13Using "a_ClosestPlayer != NULL" in cExpOrb.STRWarrior1-1/+1
2013-12-11ExpOrbs now move.STRWarrior1-4/+8