summaryrefslogtreecommitdiffstats
path: root/src/Simulator/FloodyFluidSimulator.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-03-15Remove DoesDropOnUnsuitableTiger Wang1-4/+1
This is only overridden false in Vines and Snow. It is called when a CanBeAt check fails, to determine whether DropBlockAsPickups is called. However, Vines and Snow already drop nothing without the right tool, so this function is superfluous.
2020-09-20BlockHandler initialisation is a constant expression (#4891)Tiger Wang1-2/+1
* BlockHandler initialisation is a constant expression If we can't make it all namespaces, this is the next best I guess. + Tag handlers constexpr, const as needed + Inherit constructors * Privatise handler functions * More constexpr Co-authored-by: Alexander Harkness <me@bearbin.net>
2020-08-02Always use relative coordinates in AddBlockTiger Wang1-1/+1
+ Pass block, use relatives * Fixes everything immediately converting abs back to rel and getting block, when these data were already available
2020-04-16Using Super.Mattes D1-1/+1
2020-04-03Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D1-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
2019-10-28Moved growing from cWorld / cChunk to cBlockHandler descendants.Mattes D1-23/+24
2019-10-16Refactored block-to-pickup conversion. (#4417)Mattes D1-20/+10
2018-09-24Add a formatting function for Vector3 (#4282)peterbell101-25/+22
* Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG
2018-07-26CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell101-0/+1
Add check for number of empty lines between functions and fix the corresponding failures
2018-07-24Broadcast refactor (#4264)peterbell101-2/+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
2018-01-03Add the fmt library (#4065)peterbell101-18/+18
* Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style.
2017-09-19Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959)Lane Kolbly1-6/+2
* 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
2017-08-17Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly1-1/+1
2017-02-15Updated sounds and effect IDs (#3422)mathiascode1-2/+2
2016-02-05Bulk clearing of whitespaceLogicParrot1-9/+9
2016-01-31Updated old forum linksMathias1-1/+1
2015-12-17Moved variables into scope, removed unused variables and fixed variablesLukas Pioch1-1/+1
2015-07-15Now Water sources will also be created on top of existing water sources.bibo381-3/+6
See also on http://minecraft.gamepedia.com/Water#Source_blocks Fixes #2097
2015-05-28Fix commentstycho1-2/+6
2015-05-24Made -Weverything an error.tycho1-2/+12
2015-03-19Removed wrong else clause, which caused that the following if-Statement got only executed in rare cases. This has blocked the creation of new Fluid-Sources. Bugfix #1783bibo381-1/+2
2014-12-25Fixed basic style.Mattes D1-1/+1
2014-12-17Removed unneeded newlinesIvan Đorđević1-6/+0
2014-12-16Fixed water from spreading on bottom of worldgushromp1-7/+11
2014-12-16Fixed water from spreading on bottom of worldgushromp1-5/+8
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-2/+2
2014-10-20En masse NULL -> nullptr replaceTiger Wang1-2/+2
2014-09-26Removed more unessicary includesTycho1-0/+1
2014-07-17Basic style fixes.madmaxoft1-5/+5
2014-07-13Changed BroadcastSoundEffect function to take floating pos.Howaner1-2/+2
2014-06-28Fixed bad water/redstone simulator communicationTiger Wang1-32/+22
* Fixes #713
2014-05-02Fixed vanilla fluid simulator.madmaxoft1-2/+2
Fixes #919.
2014-03-07Added some commentsandrew1-0/+2
2014-03-07Fixed water/lava interactionandrew1-2/+64
2014-03-05Implemented vanilla-like fluid simulatorandrew1-5/+18
2014-02-02Changed Signiture of OnUpdateTycho1-1/+7
2013-12-20Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft1-2/+2
2013-12-10Fixed Floody lava to stone fizzleTiger Wang1-2/+16
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-12Bundled fixes [SEE DESC]Tiger Wang1-6/+2
* BoundingBox now returns FACE_NONE + Arrows can be picked up * Arrows dug up resume physics simulations * Added sound effects for bows, lava to stone, and arrows * Fixed SoundParticleEffect on <1.7 protocols
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-334/+334
2013-03-22Fixed block update queueing and water meta change not propagated to clients.madmaxoft@gmail.com1-7/+27
Fixes FS #333. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1297 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-02Floody fluid simulator has been converted to use direct chunk accessmadmaxoft@gmail.com1-99/+116
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1236 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-28Converted simulators to take cWorld reference instead of a pointermadmaxoft@gmail.com1-11/+11
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1228 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-01-27Added the HOOK_BLOCK_TO_PICKUPS hook that fires when a block is dug up and should be converted to pickups.madmaxoft@gmail.com1-1/+1
Note that cItems is used in the function signature but not yet exported in the API, TODO! git-svn-id: http://mc-server.googlecode.com/svn/trunk@1176 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-01-04Floody fluid simulator can create sourceblocks (configurable in World.ini)madmaxoft@gmail.com1-2/+68
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1119 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-20Removed excessive debug loggin in Floody fluid simulator.madmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@987 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-18Reverted previous commit, chose a different solution, much cleaner.madmaxoft@gmail.com1-2/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@975 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-18Made constants in cChunkDef enums, compilation fixes for gcc.madmaxoft@gmail.com1-1/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@974 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-16Fixed floody fluid sim making downward fluid behave like source blocks.madmaxoft@gmail.com1-8/+16
git-svn-id: http://mc-server.googlecode.com/svn/trunk@970 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-16Decreased logging in floody fluid simulator.madmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@969 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-14Floody fluid sim: reads params from world.ini; water and lava react together into cobblestone / stone / obsidianmadmaxoft@gmail.com1-9/+67
git-svn-id: http://mc-server.googlecode.com/svn/trunk@965 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-14Floody fluid simulator now dries up correctly, too.madmaxoft@gmail.com1-2/+8
git-svn-id: http://mc-server.googlecode.com/svn/trunk@964 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-14Initial Floody fluid simulator.madmaxoft@gmail.com1-0/+159
Can spread, cannot dry. git-svn-id: http://mc-server.googlecode.com/svn/trunk@963 0a769ca7-a7f5-676a-18bf-c427514a06d6