summaryrefslogtreecommitdiffstats
path: root/src/Entities/Pickup.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix building with clang 8.0 (#4346)Bond-0092019-08-111-1/+1
|
* Broadcast refactor (#4264)peterbell102018-07-241-4/+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
* Exp Orbs and Pickups are destroyed instantly by cacti. (#4136)Alexander Harkness2018-01-161-0/+15
| | | | | | | | | | | | | * 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.
* Rename cEntity swim states (#3996)Alexander Harkness2018-01-141-15/+2
| | | | | | | | | | * Replace cEntity:m_IsSubmerged with m_IsHeadInWater * Replace cEntity:m_IsSwimming with m_IsInWater * Add API documentation for new symbols * Apply SetSwimState to all entities, not just mobs and players * Pickups now use IsOnFire to check if they are on fire before destruction Fixes #3987
* 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
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-111-12/+11
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-021-11/+12
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-011-12/+11
|
* Changing pickup lifetime and combining semantics, making these adjustable in the lua api. (#3843)Lane Kolbly2017-07-121-5/+11
|
* Avoid pickups to sink into blocks and disappear (#3739)Pablo Beltrán2017-06-041-2/+8
| | | | * Avoid pickups to sink into blocks and disappear
* Updated sounds and effect IDs (#3422)mathiascode2017-02-151-1/+1
|
* Initial support for the 1.11 protocol.Mattes D2016-12-161-1/+1
|
* Spectators added (#2852)bibo382016-10-121-0/+6
|
* Entities now bail out of ticks if destroyed (#3363)LogicParrot2016-09-031-0/+5
|
* Fix issues below y = 0LogicParrot2016-04-181-6/+0
|
* Proper entity destruction in non-ticking chunksLogicParrot2016-02-191-2/+4
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-4/+4
|
* Merge branch 'master' into PreventNewWarningstycho2015-05-281-0/+1
|\ | | | | | | | | Conflicts: src/Inventory.cpp
| * Fixes #2052Tiger Wang2015-05-181-0/+1
| |
* | Made -Weverything an error.tycho2015-05-241-3/+3
|/
* Changed air drag for pickupsDevToaster2015-03-311-1/+1
|
* Modified physics for more vanilla-like behaviorDevToaster2015-03-311-1/+2
|
* Converted cPickupEntity to std::chronoTycho2015-01-161-9/+9
|
* Initial convertion of a_Dt to std::chronoTycho2015-01-111-3/+3
| | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* Functions in cPluginManager get references instead of pointers.Mattes D2014-10-151-9/+7
|
* Pickups combine only within one chunk.madmaxoft2014-09-011-2/+6
| | | | This greatly improves performance of the tick thread.
* Fixed tabs used for alignment.madmaxoft2014-07-171-1/+1
|
* More trailing whitespace fixes.madmaxoft2014-07-171-1/+1
|
* Normalized comments.madmaxoft2014-07-171-6/+6
| | | | | 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.
* Changed BroadcastSoundEffect function to take floating pos.Howaner2014-07-131-1/+1
|
* Fixed arrow collection animationTiger Wang2014-07-091-1/+1
| | | | * Fixed piston extension non-solidness
* Merged branch 'howaner/Pickups'.Mattes D2014-06-261-6/+27
|\
| * Fixed a comment and changed CombineCount to short.Howaner2014-06-261-2/+2
| |
| * Optimize combining.Howaner2014-06-241-3/+3
| |
| * Better combining.Howaner2014-06-241-3/+20
| |
| * Fix pickup combining over the maximum stack size.Howaner2014-06-241-4/+8
|/
* cEntity::Killed(cEntity *) Handler; Achievement triggers; cPlayer::AwardAchievement()andrew2014-05-121-0/+10
|
* Entities handle chunks properly againTiger Wang2014-04-121-32/+31
| | | | | * Entities properly handle chunks * Changed EntityStatus enums to be less shouty
* Add ExpOrb saving.Howaner2014-03-151-1/+1
|
* Fixed most of the reordering warningsTycho2014-02-051-2/+2
|
* Implemented pickup combiningTiger Wang2014-01-251-0/+55
| | | | | * Fixes FS393 * Part of #131
* Miscellaneous improvementsTiger Wang2014-01-241-10/+4
|
* Moved bindings-related to a Bindings subfolder.madmaxoft2013-12-081-1/+1
| | | | Ref.: #407
* Moved source to srcAlexander Harkness2013-11-241-0/+166