summaryrefslogtreecommitdiffstats
path: root/src/Entities/EntityEffect.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-09-27Update Minecraft Wiki links to new domain (#5532)Spongecade1-5/+5
* Update Minecraft Wiki links to new domain * Added Spongecade to contributors * Sorted Spongecade
2020-08-01Replaced cpp14::make_unique<> with std::make_unique<>.Mattes D1-25/+25
2020-04-16Using Super.Mattes D1-5/+5
2020-03-22Fix effect crashes (#4530)Mat1-3/+3
* Fix effect crashes * Change according to suggestion
2018-07-24Broadcast refactor (#4264)peterbell101-3/+3
* 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
2018-05-02Prefer static_cast to reinterpret_cast (#4223)peterbell101-10/+10
* Change reinterpret_cast -> static_cast wherever possible * Remove more unnecessary `const_cast`s. reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there.
2018-02-05Deal with covered switches consistently (#4161)peterbell101-5/+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()
2017-12-26Water bottles are drinkable potions (#4114)Alexander Harkness1-11/+8
Water bottles are now drinkable potions Fixes #4111 Also update outdated mcwiki references
2017-08-24Minor changes (#3909)mathiascode1-5/+5
2017-08-03Implement invisibility effectpeterbell101-28/+45
2016-08-04Fixed RasPi builds of unit tests.Mattes D1-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.
2016-03-18Fixed leaping potion not giving jump boostBlitz Rakete1-0/+1
2016-02-05Bulk clearing of whitespaceLogicParrot1-25/+25
2015-07-29Silenced and fixed many warning messages across multiple files.Samuel Barney1-21/+21
2015-05-09More style checking.Mattes D1-2/+2
Spaces around some operators are checked.
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-5/+5
2014-10-20En masse NULL -> nullptr replaceTiger Wang1-5/+5
2014-09-23A few compiler warning fixesChris Darnell1-0/+1
2014-09-17Added first test to show the object can be createdTycho1-2/+2
2014-09-03Fixed style and alpha-sorting.madmaxoft1-2/+2
2014-09-03EntityEffect.cpp: Enable 1.8's leaping potionarchshift1-1/+1
2014-09-02Renamed SetWalkSpeed() to SetRelativeWalkSpeed()Howaner1-4/+4
2014-08-30Added slowness effect and added entity support.Howaner1-16/+61
2014-08-28Added speed entity effect.Hownaer1-0/+41
2014-08-03Fixed a ToLua warning - operator = not supported.madmaxoft1-1/+1
2014-07-31Fixed hunger bugs, Implemented golden apple, added jump statistic, added correct food effects.Howaner1-1/+1
2014-07-26Fixed indentations, removed redundant init code in SplashPotionEntity.cpparchshift1-1/+1
2014-07-26Moved potion static functions to EntityEffect to create splash potions through worldarchshift1-0/+124
2014-07-17Normalized comments.madmaxoft1-8/+8
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-07-15Only the cEntityEffect::effXXX constants are Lua-exported.madmaxoft1-1/+2
The rest of the classes don't need exporting, there's no interface using them anyway.
2014-07-15Reformatted EntityEffect code.madmaxoft1-25/+29
2014-07-15Fixed a MSVC warning in cEntityEffect::CreateEntityEffect().madmaxoft1-0/+1
2014-07-14Readability and clarity changesarchshift1-25/+16
2014-07-14EntityEffect: Inlined functions, added explicit copy constructor and operator.archshift1-17/+18
2014-07-14Changed separating comment style from asterisks to slashes.archshift1-24/+24
2014-07-12For now, removed creator member from Entity Effect for pointer safetyarchshift1-32/+30
2014-06-19EntityEffects.x -> EntityEffect.x, Object-Oriented effectsarchshift1-0/+291
Changed effect map to take a pointer of the effect as a result.