summaryrefslogtreecommitdiffstats
path: root/src/Simulator/SandSimulator.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use tracing for explosions (#4845)Tiger Wang2020-09-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * TNT: Implement tracing algorithm + Add intensity tracing * Fix iterating over all players to SendExplosion, even those not in range * Implemented TNT entity interaction * Fixed misaligned destruction tracing * Finalise TNT algorithm - Remove BlockArea and just use chunks Using SetBlock makes it so that we can update everything properly, and does appear to be faster. * BlockInfo learns about explosion attentuation * Rename Explodinator parameters * TNT: pull block destruction into common function Co-authored-by: Alexander Harkness <me@bearbin.net>
* Always use relative coordinates in AddBlockTiger Wang2020-08-021-6/+6
| | | | | + Pass block, use relatives * Fixes everything immediately converting abs back to rel and getting block, when these data were already available
* Add WakeUp/AddBlock distinctionTiger Wang2020-08-021-1/+3
| | | | | | * WakeUp is for singular changes (block breaking for example). The simulator should check blocks around the position and discover other affected blocks as it sees fit * AddBlock is for when you know a whole area is to be updated; chunk loading, or area wakeups for example + Prepares for correct handling of destroyed blocks after removal of SolidBlockHandler in the redstone simulator
* 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
* Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly2017-08-171-1/+1
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-8/+8
|
* Unified the doxy-comment format.Mattes D2015-07-311-10/+21
|
* Initial convertion of a_Dt to std::chronoTycho2015-01-111-1/+1
| | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* Cleaned up simulatorsTiger Wang2014-10-251-1/+1
|
* Possibly decoupled IncrementalRedstoneSimulator from the rest of the serverTycho2014-09-111-4/+5
| | | | THis wil hopefully allow for unit testing
* Basic style fixes.madmaxoft2014-07-171-1/+1
|
* converted commneted paramater names to the unused macroTycho Bickerstaff2013-12-221-1/+1
|
* Piston is now warnings cleanTycho Bickerstaff2013-12-211-1/+1
|
* Moved source to srcAlexander Harkness2013-11-241-0/+63