summaryrefslogtreecommitdiffstats
path: root/src/Entities/Minecart.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update entity sizesTiger Wang2021-04-121-1/+1
|
* Basic elytra flight (#5124)Damián Imrich2021-04-031-4/+2
| | | | | | * Basic elytra flight Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Properly deprecate more XYZ parameter'd functions (#5147)Tiger Wang2021-03-151-1/+1
| | | * Fixes #5144
* Fix #5118Tiger Wang2021-02-071-34/+3
|
* cChunk: don't inherit from cChunkDef (#5106)Tiger Wang2021-01-181-1/+1
|
* Fix potential destruction crashes (#5095)Tiger Wang2021-01-021-73/+84
| | | | | | | | | | * Fix potential destruction crashes * Fix destructors accessing destroyted objects * Fix cPlayer not destroying windows (Destroyed never called) * Tentatively fixes #4608, fixes #3236, fixes #3262 - Remove cEntity::Destroyed() and replace with cEntity::OnRemoveFromWorld() * Add missing call to OnRemoveFromWorld
* Fixed various MSVC warnings.Mattes D2020-05-061-4/+0
|
* Refactor minecart collision detection code. (#4712)Alexander Harkness2020-05-041-109/+275
| | | | | | | | | * Refactor minecart collision detection code. - Use new GetBoundingBox function. - Handle descending and ascending rails. - Snap to descending rails. * Add message for UNREACHABLE
* Unify entity spawn packet sendingTiger Wang2020-05-011-1/+1
|
* Using Super.Mattes D2020-04-161-13/+13
|
* 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
* Moved growing from cWorld / cChunk to cBlockHandler descendants.Mattes D2019-10-281-8/+7
|
* Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D2019-09-291-12/+15
|
* Change TakeDamageInfo::FinalDamage from int to float (#4359)Aplaus2282019-08-081-2/+2
| | | | Closes #4357
* 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
* Store Health as a float (#4073)Fabian2017-11-221-1/+1
| | | | | | | | | | | | | | | | | | * Fix #4024 * Fix clang error * Add comment * Fix behaviour * Save Health as float * Changed m_Health to float * Remove redundant static_cast * Fix casts
* Fix minecart deceleration (#4059)peterbell102017-10-211-32/+45
|
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-111-13/+10
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-021-10/+13
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-011-13/+10
|
* Fixes problems with windows:Lukas Pioch2017-06-051-1/+1
| | | | | - Changed cPlayer:OpenWindow to accept a ref, tolua adds a nil check - Close open lua window in destructor, to avoid dangling pointers
* Fixed minecart destruction using deallocated memory.Mattes D2016-12-151-3/+8
|
* Powered rails can kick-start minecarts (#3472)Marvin Kopf2016-12-101-32/+60
|
* Spectators added (#2852)bibo382016-10-121-1/+9
|
* Entities now bail out of ticks if destroyed (#3363)LogicParrot2016-09-031-0/+5
|
* Fix minecart destruction crash (#3336)LogicParrot2016-08-201-1/+1
|
* Fixed minecraft with chest destruction crash (#3335)LogicParrot2016-08-201-2/+11
|
* Close chest window if minecart is destroyedLukas Pioch2016-06-301-0/+1
|
* Fix minecart block collision on curved railsWoazboat2016-04-221-10/+56
|
* Add speed limit enforcement for minecartsMarvin Kopf2016-04-151-41/+51
|
* Proper entity destruction in non-ticking chunksLogicParrot2016-02-191-4/+1
|
* Fix minecart entity collisionMarvin Kopf2016-02-161-26/+10
| | | | | * Minecarts no longer handle a collision if the entity is behind them. * Minecarts will leave the pushing after a collision on a straight rail to the entity.
* Bulk clearing of whitespaceLogicParrot2016-02-051-10/+10
|
* Made -Weverything an error.tycho2015-05-241-6/+6
|
* Make -Werror disabling file onlytycho2015-05-191-5/+0
| | | | Ad fix a load of warnings
* More style checking.Mattes D2015-05-091-2/+2
| | | | Spaces around some operators are checked.
* Changed air drag units to 'interpolated ticks' per secondDevToaster2015-03-311-1/+1
|
* Modified physics for more vanilla-like behaviorDevToaster2015-03-311-1/+3
|
* Changed cEntity::m_UniqueID to UInt32.Mattes D2015-03-211-4/+7
|
* Merge branch 'master' into InventoryHowaner2015-01-251-6/+6
|\
| * Fixed type-conversion warnings.Mattes D2015-01-181-1/+1
| |
| * Converted MinecartEntity to std::chronoTycho2015-01-161-5/+5
| |
| * Initial convertion of a_Dt to std::chronoTycho2015-01-111-5/+5
| | | | | | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* | Own classes for all windows.Howaner2014-12-131-0/+1
|/
* BasicStyle: Added missing braces to control statements.Mattes D2014-12-051-6/+23
|
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-7/+7
|
* Compilation fixTiger Wang2014-09-281-2/+2
|
* SuggestionsTiger Wang2014-09-271-2/+2
|
* Merge remote-tracking branch 'origin/master' into chestcartsTiger Wang2014-09-271-42/+45
|\ | | | | | | | | Conflicts: src/Entities/Minecart.cpp
| * Merge branch 'master' into EntityCustomNameHowaner2014-09-231-42/+43
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/ClientHandle.cpp src/ClientHandle.h src/Protocol/Protocol.h src/Protocol/Protocol125.cpp src/Protocol/Protocol125.h src/Protocol/Protocol17x.cpp src/Protocol/Protocol17x.h src/Protocol/ProtocolRecognizer.cpp src/Protocol/ProtocolRecognizer.h src/World.cpp src/World.h
| | * A few compiler warning fixesChris Darnell2014-09-231-40/+41
| | |
| | * Made it compile with clangChris Darnell2014-09-221-2/+2
| | |
| * | Added name tagHowaner2014-09-011-2/+3
| |/
* / Implemented Chest MinecartsTiger Wang2014-09-131-8/+33
|/
* Fixed MSVC2008 compilation.madmaxoft2014-08-301-18/+18
| | | | It was getting confused about which sqrt() overload to call.
* Fixed a typo.Mattes D2014-08-281-1/+1
|
* Change comment formattingChristophe Piveteau2014-08-241-20/+12
|
* Adjust comment formattingChristophe Piveteau2014-08-181-20/+40
|
* Added a lot of commentsChristophe Piveteau2014-08-151-30/+36
|
* Clarify comment messageChristophe Piveteau2014-08-151-2/+2
|
* End of comment moved away from new lineChristophe Piveteau2014-08-151-2/+1
|
* Add some commentsChristophe Piveteau2014-08-151-10/+21
|
* Further changes in coding styleChristophe Piveteau2014-08-141-38/+28
|
* Further fixing of coding style errorsChristophe Piveteau2014-08-131-26/+22
|
* Another intendation errorChristophe Piveteau2014-08-131-2/+2
|
* Fixed braces and intendation errorsChristophe Piveteau2014-08-131-3/+11
|
* Implement ability to push minecarts on curved railsChristophe Piveteau2014-08-131-2/+70
|
* Minecart: slimmed down SpawnOn by keeping subtype in the payload enumarchshift2014-07-191-15/+1
|
* More trailing whitespace fixes.madmaxoft2014-07-171-4/+4
|
* Normalized comments.madmaxoft2014-07-171-46/+46
| | | | | 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.
* Add entity invulnerableHowaner2014-04-261-5/+9
|
* reverted the revert of the minecart collision detection fix.jfhumann2014-04-211-2/+1
|
* Fixed Flint and Steel, reverted Minecart change, renamed a parameter namejfhumann2014-04-191-1/+2
|
* Merge remote-tracking branch 'origin/master' into fixesjfhumann2014-04-181-19/+19
|\ | | | | | | | | | | | | | | Conflicts: src/Authenticator.cpp src/ClientHandle.cpp src/Entities/Minecart.cpp src/Protocol/Protocol17x.cpp
| * Added new AI rulesTiger Wang2014-04-171-19/+19
| | | | | | | | | | | | | | + Added new AI rules handling cacti and large heights * Fixed cIniFile not recognising comments in cIniFile::ReadFile() * Fixed users.ini not being properly generated * Changed all instances of (int)floor(GetPosXXX()) to POSXXX_TOINT
* | Did some static analysis, fixed some bugs and optimized a lot of codejfhumann2014-04-181-1/+1
|/
* Fixed issues with int vs size_t and a few other warningsTycho2014-03-081-2/+2
|
* g_BlockXXX => cBlockInfo::XXXandrew2014-03-011-8/+8
|
* Fixed most of the reordering warningsTycho2014-02-051-5/+5
|
* Rail speed tweakTiger Wang2014-01-251-2/+2
|
* Added more minecart powered rail directionsTiger Wang2014-01-241-3/+63
|
* Begin implementing ascending railsTiger Wang2014-01-191-2/+42
|
* Added one more direction into collision checksTiger Wang2014-01-191-26/+51
| | | | | * Added direction XM_XP * Improved performance, thanks STR and xoft
* Minecart improvements and fixesTiger Wang2014-01-191-33/+43
| | | | | | * Fixed curved rails * Fixed detector rails in certain situations * Fixed powered rails and others passing bad meta to SnapToRail()
* Merge remote-tracking branch 'origin/master' into minecartimprovementsTiger Wang2014-01-191-16/+19
|\
| * Merge pull request #534 from mc-server/SpawnMinecartMattes D2014-01-171-4/+7
| |\ | | | | | | Added cWorld::SpawnMinecart.
| | * Renamed cEmptyMinecart to cRideableMinecartSTRWarrior2014-01-121-3/+4
| | |
| | * EmptyMinecarts should be able to get a block inside of them.STRWarrior2014-01-121-2/+4
| | |
| * | Removed obsoleted functionsTiger Wang2014-01-161-12/+12
| | |
* | | Minecart collision and general improvementsTiger Wang2014-01-181-68/+237
|/ / | | | | | | | | | | + Implemented collision on one type of rail * Improved curved rails somewhat * Fixed a crash bug
* | Furnace minecarts now stop being active after a while.STRWarrior2014-01-151-1/+11
| |
* | First implementation for furnace minecarts.STRWarrior2014-01-151-1/+22
| |
* | Final improvements to MinecartsTiger Wang2014-01-131-56/+263
| | | | | | | | | | | | | | | | | | | | | | | | | | * Fixed curved rails being a little broken + Implemented detector rails + Implemented block collisions on rails * Fixed snapping to rail - Removed minecart physics conditions in Entity.cpp as minecarts use their own simulator when on rails Fixes #148 and #217; partially implemented #215. This is Cave Johnson, and we're done here.
* | Multiple enhancements and fixes to minecartsTiger Wang2014-01-121-128/+182
|/ | | | | | + They are destroyed instantly by creative mode * Physics is much improved + Basic implementation of powered rails
* Moved source to srcAlexander Harkness2013-11-241-0/+541