summaryrefslogtreecommitdiffstats
path: root/src/Entities/ExpOrb.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update entity sizesTiger Wang2021-04-121-1/+1
|
* Using Super.Mattes D2020-04-161-2/+2
|
* Stabilise MoveToWorld (#4004)Mat2020-03-051-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
* Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D2019-09-291-19/+4
|
* Experience orb (#4259)changyong guo2018-08-021-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
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-0/+4
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Exp Orbs and Pickups are destroyed instantly by cacti. (#4136)Alexander Harkness2018-01-161-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.
* Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959)Lane Kolbly2017-09-191-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
* Fixed exp orb (#3744)Pablo Beltrán2017-06-031-19/+23
| | | | Fixes #3740 Fixes #2667
* Updated sounds and effect IDs (#3422)mathiascode2017-02-151-1/+1
|
* Spectators added (#2852)bibo382016-10-121-1/+1
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-3/+3
|
* Made -Weverything an error.tycho2015-05-241-2/+2
|
* Converted cExpOrbEntity to std::chronoTycho2015-01-161-4/+4
|
* 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-1/+1
|
* Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-3/+3
|
* Fixed tabs used for alignment.madmaxoft2014-07-171-2/+2
|
* Changed BroadcastSoundEffect function to take floating pos.Howaner2014-07-131-1/+1
|
* Some change to Entity.cppTiger Wang2014-04-231-2/+0
| | | | * Added comments to BroadcastMovementUpdate() and the collision tracer
* Add ExpOrb saving.Howaner2014-03-151-7/+19
|
* Fixed minor formatting issues from #682Tiger Wang2014-02-161-4/+2
| | | | | - Removed unused PlaySoundEffect * Simplified and parenthesised code
* Replace random Float Generation and broadcast the Exp Pickup SoundHowaner2014-02-161-6/+3
|
* Add Exp Bottle EffectsHowaner2014-02-161-1/+9
|
* Fixed indentation.madmaxoft2013-12-151-1/+1
|
* Fixed not getting XP from mobs.STRWarrior2013-12-141-1/+1
|
* Using "a_ClosestPlayer != NULL" in cExpOrb.STRWarrior2013-12-131-1/+1
|
* ExpOrbs now move.STRWarrior2013-12-111-4/+8
|
* Merge remote-tracking branch 'origin/master' into foldermove2Alexander Harkness2013-11-261-0/+60
Conflicts: VC2008/MCServer.vcproj