summaryrefslogtreecommitdiffstats
path: root/src/Entities/EntityEffect.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix effect crashes (#4530)Mat2020-03-221-3/+3
| | | | | * Fix effect crashes * Change according to suggestion
* Broadcast refactor (#4264)peterbell102018-07-241-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
* Prefer static_cast to reinterpret_cast (#4223)peterbell102018-05-021-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.
* Deal with covered switches consistently (#4161)peterbell102018-02-051-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()
* Water bottles are drinkable potions (#4114)Alexander Harkness2017-12-261-11/+8
| | | | | | | Water bottles are now drinkable potions Fixes #4111 Also update outdated mcwiki references
* Minor changes (#3909)mathiascode2017-08-241-5/+5
|
* Implement invisibility effectpeterbell102017-08-031-28/+45
|
* 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.
* Fixed leaping potion not giving jump boostBlitz Rakete2016-03-181-0/+1
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-25/+25
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-21/+21
|
* More style checking.Mattes D2015-05-091-2/+2
| | | | Spaces around some operators are checked.
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-5/+5
|
* Merge branch 'master' into redstoneTestsTycho2014-09-251-0/+1
|\ | | | | | | | | Conflicts: src/Mobs/Monster.h
| * A few compiler warning fixesChris Darnell2014-09-231-0/+1
| |
* | Merge branch 'master' into redstoneTestsTycho2014-09-171-0/+86
|\| | | | | | | | | Conflicts: src/Blocks/ChunkInterface.h
| * Merge branch 'master' into EffectsHowaner2014-09-121-2/+2
| |\
| * | Renamed SetWalkSpeed() to SetRelativeWalkSpeed()Howaner2014-09-021-4/+4
| | |
| * | Added slowness effect and added entity support.Howaner2014-08-301-16/+61
| | |
| * | Added speed entity effect.Hownaer2014-08-281-0/+41
| | |
* | | Added first test to show the object can be createdTycho2014-09-171-2/+2
| |/ |/|
* | Fixed style and alpha-sorting.madmaxoft2014-09-031-2/+2
| |
* | EntityEffect.cpp: Enable 1.8's leaping potionarchshift2014-09-031-1/+1
|/
* Fixed a ToLua warning - operator = not supported.madmaxoft2014-08-031-1/+1
|
* Fixed hunger bugs, Implemented golden apple, added jump statistic, added correct food effects.Howaner2014-07-311-1/+1
|
* Fixed indentations, removed redundant init code in SplashPotionEntity.cpparchshift2014-07-261-1/+1
|
* Moved potion static functions to EntityEffect to create splash potions through worldarchshift2014-07-261-0/+124
|
* Normalized comments.madmaxoft2014-07-171-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.
* Only the cEntityEffect::effXXX constants are Lua-exported.madmaxoft2014-07-151-1/+2
| | | | The rest of the classes don't need exporting, there's no interface using them anyway.
* Reformatted EntityEffect code.madmaxoft2014-07-151-25/+29
|
* Fixed a MSVC warning in cEntityEffect::CreateEntityEffect().madmaxoft2014-07-151-0/+1
|
* Readability and clarity changesarchshift2014-07-141-25/+16
|
* EntityEffect: Inlined functions, added explicit copy constructor and operator.archshift2014-07-141-17/+18
|
* Changed separating comment style from asterisks to slashes.archshift2014-07-141-24/+24
|
* For now, removed creator member from Entity Effect for pointer safetyarchshift2014-07-121-32/+30
|
* EntityEffects.x -> EntityEffect.x, Object-Oriented effectsarchshift2014-06-191-0/+291
Changed effect map to take a pointer of the effect as a result.