summaryrefslogtreecommitdiffstats
path: root/src/Entities/ProjectileEntity.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Ender Crytal Fix and report proper cmake file for luabindingscheck fail (#5017)12xx122020-11-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fixed network fixed explosion fixed ticking added network broadcast to Setter method added nullptr protection using macros in 1.10 Protocol_1_10.cpp revealed functions to LUA API small fixups, typos, less functions used fixed more doc readded info that saving is done only if the beam is displayed made the constructor transfer all needed members fixed wrong commit removed default parameters on SpawnEnderCrystal fixed wrong metadata moved call to destroy in the right place fixed some typos Fixed Ender Crystal * fixed documentation * fixed doc and added proper error message * Parameters, arrows * Parameters Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Replaced cpp14::make_unique<> with std::make_unique<>.Mattes D2020-08-011-10/+10
|
* Use Vector3 for cLineBlockTracer and cBlockTracer (#4715)mBornand2020-05-081-6/+3
| | | * cLineBlockTracer uses Vector
* Add cEntity::GetBoundingBox, and use where appropriate. (#4711)Alexander Harkness2020-05-031-1/+1
| | | * Add cEntity::GetBoundingBox, and use where appropriate.
* Unify entity spawn packet sendingTiger Wang2020-05-011-4/+1
|
* Delet SpawnObject paramsTiger Wang2020-04-201-8/+1
| | | | | | * Fix #4679 awkward...
* More arrow patchesTiger Wang2020-04-191-6/+1
| | | | | | | * Further reduce instances of appearing black * Fix packet send and get arrows to more reliably lodge in blocks clientside * Fix hit detection failing at chunk boundaries + Use delegating constructors
* Using Super.Mattes D2020-04-161-3/+3
|
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-0/+1
| | | | | | | | | The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
* Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D2019-09-291-15/+21
|
* Add a formatting function for Vector3 (#4282)peterbell102018-09-241-14/+9
| | | | | | | | | | * Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG
* Deal with covered switches consistently (#4161)peterbell102018-02-051-4/+1
| | | | | | | * Fixes a number of "<function>: not all control paths return a value" warnings on MSVC. * Introduces the UNREACHABLE global macro and uses it instead of conditionally compiled switch defaults. * Move cNBTParseErrorCategory from FastNBT.h into FastNBT.cpp to prevent bad calls to message()
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-111-24/+16
|
* Changed some int parameters to vector parameters (#3937)Bond-0092017-09-071-2/+2
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-021-16/+24
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-011-24/+16
|
* Cleanup Vector3 constructors and Abspeterbell102017-08-281-1/+1
|
* Changed entity ownership model to use smart pointersTiger Wang2017-08-071-11/+11
|
* Tracer replacement (#3704)Mattes D2017-05-111-1/+1
| | | | | | * Replaced cTracer usage with cLineBlockTracer. * Exported new cLineBlockTracer utility functions to Lua API.
* Spectators added (#2852)bibo382016-10-121-1/+9
|
* Fixed cProjectileEntity double destroy bug (#3397)LogicParrot2016-10-091-0/+4
|
* Entities now bail out of ticks if destroyed (#3363)LogicParrot2016-09-031-0/+5
|
* Fixed RasPi builds of unit tests.Mattes D2016-08-041-1/+3
| | | | | On RasPi with gcc 4.8.2, the asserts wouldn't compile when tests were enabled. Enforced the assumption that ASSERT code is generated only in Debug builds.
* Improved tamed wolf pack cooperation and projectile reactionsLogicParrot2016-01-221-10/+8
|
* Fix crash when tamed wolf is hit by arrowsLogicParrot2016-01-161-3/+4
|
* Tamed wolf assists owner (attack / defence)LogicParrot2016-01-121-20/+49
|
* Unified the doxy-comment format.Mattes D2015-07-311-4/+4
|
* Made -Weverything an error.tycho2015-05-241-3/+3
|
* Make -Werror disabling file onlytycho2015-05-191-0/+1
| | | | Ad fix a load of warnings
* Changed air drag units to 'interpolated ticks' per secondDevToaster2015-03-311-3/+3
|
* Adjusted projectile physicsDevToaster2015-03-311-4/+6
|
* Modified physics for more vanilla-like behaviorDevToaster2015-03-311-0/+4
|
* Merge pull request #1826 from mc-server/UnifyPacketizerMattes D2015-03-241-1/+1
|\ | | | | Unify packetizer
| * Changed cEntity::m_UniqueID to UInt32.Mattes D2015-03-211-1/+1
| |
* | Improved arrow in-flight and block-hit appearanceTiger Wang2015-03-201-6/+1
|/ | | | * Fixes #1495
* 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-8/+8
|
* Functions in cPluginManager get references instead of pointers.Mattes D2014-10-151-1/+5
|
* FixesJaume Aloy2014-08-191-2/+3
| | | | | | | | - Changed m_TicksLeftBurning > 0 for IsOnFire() - Tried to do the changes in BlockHandler.cpp - Removed m_Creator in ArrowEntity - Added m_Enchantments in ProjectileEntity CreatorData - Added blank lines between functions
* Moved potion static functions to EntityEffect to create splash potions through worldarchshift2014-07-261-0/+2
|
* Added m_TicksAlive to entities, allows projectiles to hit their creatorsarchshift2014-07-201-3/+5
|
* Normalized comments.madmaxoft2014-07-171-3/+3
| | | | | 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.
* Merge branch 'master' into potionsmadmaxoft2014-07-151-3/+4
|\
| * Made CreateProjectile a pointerworktycho2014-07-131-3/+4
| |
* | Added splash potions to NBT serialization and retrievalarchshift2014-07-121-1/+1
| |
* | Merge remote-tracking branch 'origin/master' into potionsarchshift2014-07-101-30/+41
|\| | | | | | | | | | | Conflicts: src/Entities/Player.cpp src/Entities/ProjectileEntity.cpp
| * Added extra space before commentsTiger Wang2014-07-071-6/+6
| |
| * Changed everything to callbacksTiger Wang2014-07-051-71/+1
| |
| * Crash and compile fixTiger Wang2014-07-041-3/+8
| |
| * Various fixedTiger Wang2014-07-041-3/+72
| | | | | | | | | | * Fixed potential invalid pointer dereferencing, fixes #1117 * Fixed ender pearls not being loaded properly
| * An unification of code styleTiger Wang2014-06-281-1/+1
| |
| * Fixed multiple issues with projectilesTiger Wang2014-06-221-27/+34
| | | | | | | | | | | | | | * Fixed arrows not being collectable/not truly hitting a block/not lodging into blocks/not going in far enough * Fixed projectiles not playing their block hit animation owning to being destroyed too quickly
* | Added splash potion functionalityarchshift2014-06-171-2/+0
| |
* | Added classes for splash potions and wither skullsarchshift2014-06-171-0/+4
|/
* Merge pull request #844 from mc-server/ProjectileHitBlockMattes D2014-06-011-2/+2
|\ | | | | OnProjectileHitBlock tweak.
| * Used recommendationsSTRWarrior2014-05-311-2/+1
| |
| * Using recommendations (I think)STRWarrior2014-03-301-1/+2
| |
| * Added a BlockHitPos parameter to OnProjectileHitBlockSTRWarrior2014-03-301-2/+2
| |
| * Added a blockface parameter to the OnProjectileHitBlock hook.STRWarrior2014-03-301-1/+1
| |
* | Fixed projectile source filenames, indentationsarchshift2014-04-281-8/+8
| |
* | Fixed ToLua errors, added newlinesarchshift2014-04-271-1/+1
| |
* | Moved cFireworkEntity out of ProjectileEntity.harchshift2014-04-271-71/+1
| |
* | Moved cGhastFireballEntity out of ProjectileEntity.harchshift2014-04-271-43/+1
| |
* | Moved cFireChargeEntity out of ProjectileEntity.harchshift2014-04-271-54/+2
| |
* | Moved cThrownSnowballEntity out of ProjectileEntity.harchshift2014-04-271-47/+1
| |
* | Moved cExpBottleEntity out of ProjectileEntity.harchshift2014-04-271-26/+1
| |
* | Moved cThrownEnderPearl out of ProjectileEntity.harchshift2014-04-271-54/+1
| |
* | Moved cThrownEggEntity out of ProjectileEntity.harchshift2014-04-271-58/+1
| |
* | Moved cArrowEntity out of ProjectileEntity.harchshift2014-04-271-192/+3
| |
* | Creator not user.archshift2014-04-251-3/+3
| |
* | Rename spawn chicken method, Initialize m_HasTeleported.archshift2014-04-251-3/+4
| |
* | Chicken eggs and ender pearls can hit entities.archshift2014-04-251-6/+56
| | | | | | | | Fixed warning by adding dedicated m_HasTeleported for fired arrows.
* | Entities handle chunks properly againTiger Wang2014-04-121-1/+1
| | | | | | | | | | * Entities properly handle chunks * Changed EntityStatus enums to be less shouty
* | Removed debugging log from entity physics handling.madmaxoft2014-04-051-1/+2
|/
* Fixed the OnProjectileHitBlock hook not stopping projectiles.STRWarrior2014-03-291-1/+1
|
* Added HOOK_PROJECTILE_HIT_BLOCK.STRWarrior2014-03-291-0/+5
|
* Fixed error when the hook gets called.STRWarrior2014-03-291-1/+0
|
* Added HOOK_PROJECTILE_HIT_ENTITYSTRWarrior2014-03-291-0/+6
|
* Merge remote-tracking branch 'origin/SnowBall'madmaxoft2014-03-121-2/+24
|\
| * TakeDamage now has the cThrownSnowballEntity instead of the creator's object.STRWarrior2014-03-111-1/+1
| |
| * Snowballs now actualy hurt other entities.STRWarrior2014-03-111-2/+24
| | | | | | | | 3 damage for blazes and 1 for the ender dragon. Otherwise 0
* | Merge branch 'master' into ballisticmissilesTiger Wang2014-03-091-2/+2
|\| | | | | | | | | Conflicts: src/ClientHandle.cpp
| * g_BlockXXX => cBlockInfo::XXXandrew2014-03-011-2/+2
| |
* | Implemented ballistic missiles (fireworks)Tiger Wang2014-02-271-40/+47
|/ | | | + Added fireworks
* Replace random Float Generation and broadcast the Exp Pickup SoundHowaner2014-02-161-3/+1
|
* Add Exp Bottle EffectsHowaner2014-02-161-0/+3
|
* Improved Type safety of eBlockFaceTycho2014-02-041-11/+11
| | | | May Fix #640
* Removed debug message when a firework entity hit a solid block.STRWarrior2014-01-291-2/+0
|
* Bottle o' Enchanting spawns an experience orb.STRWarrior2014-01-291-1/+2
|
* Removed internal cEntity::GetRot() usage.madmaxoft2014-01-171-3/+3
|
* Removed obsoleted functionsTiger Wang2014-01-161-6/+6
|
* More reordering fixes.madmaxoft2013-12-201-2/+2
|
* Sorted a few constructors to remove warnings.madmaxoft2013-12-201-2/+2
|
* Tools make a sound when breaking, fixes #266Tiger Wang2013-12-061-1/+1
|
* Merge remote-tracking branch 'origin/master' into foldermove2Alexander Harkness2013-11-241-24/+136
| | | | | Conflicts: GNUmakefile
* Moved source to srcAlexander Harkness2013-11-241-0/+743