summaryrefslogtreecommitdiffstats
path: root/src/BlockID.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-491/+0
| | | | | | | | | 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
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-0/+1
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Deal with covered switches consistently (#4161)peterbell102018-02-051-6/+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()
* Remove double includes part 2 (#3890)peterbell102017-08-031-1/+0
|
* 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.
* Bulk clearing of whitespaceLogicParrot2016-02-051-20/+20
|
* Unified the doxy-comment format.Mattes D2015-07-311-2/+3
|
* Fixed reversed logic in StringToDimension.Lane Kolbly2015-05-301-1/+1
|
* Made -Weverything an error.tycho2015-05-241-16/+22
|
* Working as a Windows service. Starts and stops correctly.Anthony Birkett2015-04-011-1/+28
| | | | | | | | | Added "/service" switch, to prompt the binary to attempt starting as a service. Added service* methods, to control service startup. Split up main() into universalMain(), which contains the startup code for both service and normal start. Added cRoot::m_RunningAsService bool, Added cRoot::SetStopping(bool) to allow a stop request to be sent by the service controller. Added cBlockIDMap::init() to avoid loading items.ini before the working directory has been set.
* Fixed BlockStringToType return value.Mattes D2014-11-271-1/+1
| | | | -1 was not a valid BLOCKTYPE and would not be recognized by the callers, ever.
* Fixed 1.8 world item format reading.Howaner2014-10-291-1/+6
|
* Merged IniFile into main MCS sources.Mattes D2014-10-231-1/+1
|
* Fixed eMonsterType Lua API mismatch.madmaxoft2014-10-051-51/+0
|
* Added first test to show the object can be createdTycho2014-09-171-28/+28
|
* Fixed a ToLua warning - operator = not supported.madmaxoft2014-08-031-1/+1
|
* Merge remote-tracking branch 'origin/master' into portalsTiger Wang2014-07-221-1/+2
|\ | | | | | | | | | | | | | | Conflicts: src/Chunk.cpp src/Entities/Player.cpp src/Root.cpp src/World.cpp
| * Code style: Fixed braces on separate lines.madmaxoft2014-07-191-1/+2
| |
* | Merge branch 'master' into portalsTiger Wang2014-07-181-1/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/Blocks/WorldInterface.h src/ClientHandle.cpp src/ClientHandle.h src/Entities/Player.cpp src/Entities/Player.h src/Generating/FinishGen.cpp src/Protocol/Protocol.h src/Protocol/Protocol125.cpp src/Protocol/Protocol125.h src/Protocol/Protocol16x.cpp src/Protocol/Protocol16x.h src/Protocol/Protocol17x.cpp src/Protocol/Protocol17x.h src/Protocol/ProtocolRecognizer.cpp src/Protocol/ProtocolRecognizer.h src/Root.h src/World.cpp
| * Fixed basic whitespace problems.madmaxoft2014-07-171-1/+1
| | | | | | | | Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines.
| * Added wither damage type, wither entity effect.archshift2014-06-171-0/+3
| |
* | Implemented PR suggestionsarchshift2014-06-161-4/+0
| | | | | | | | | | | | | | Furnace.txt: newline BlockID: removed extraneous dimension mapping cEntity: fixed typo cPlayer: WorldPtr typedef
* | Portal improvements and suggestionsTiger Wang2014-06-101-0/+35
|/
* Fixed warning in BlockID.madmaxoft2014-05-011-1/+1
|
* Removed extraneous switch{} in Start()archshift2014-04-261-2/+3
| | | | Squashed a warning.
* Removed g_BlockXXX arraysandrew2014-03-021-399/+0
|
* Add Light weighted pressure platesHowaner2014-02-201-0/+4
|
* Added dtExplosion to damage<->string functions.madmaxoft2014-02-041-1/+2
|
* Fixed #624Tiger Wang2014-02-021-0/+1
|
* E_BLOCK_POTATOES isn't an solid block. Villagers were floating above them.STRWarrior2014-01-271-0/+1
|
* Multiple enhancements and fixes to minecartsTiger Wang2014-01-121-0/+1
| | | | | | + They are destroyed instantly by creative mode * Physics is much improved + Basic implementation of powered rails
* Merge pull request #529 from mc-server/derpstonerefactorAlexander Harkness2014-01-121-63/+63
|\ | | | | Major refactoring of redstone
| * Renamed g_TorchPlaceable...Tiger Wang2014-01-111-63/+63
| | | | | | | | ...to g_FullyOccupiesVoxel, as recommended by @bearbin
* | Move biome definition to separate filesBill Derouin2014-01-091-100/+0
|/
* Fixed repeaters delay, maybeTiger Wang2013-12-201-0/+3
| | | | | Also added basic daylight sensors, though because GetBlockSkylight always is 15, it doesn't work.
* Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft2013-12-201-6/+6
|
* Fixed loads more of them.Alexander Harkness2013-11-261-1/+1
|
* Attempt to fix compilationTiger Wang2013-11-241-1/+1
|
* Merge remote-tracking branch 'origin/master' into foldermove2Alexander Harkness2013-11-241-24/+28
| | | | | Conflicts: GNUmakefile
* Moved source to srcAlexander Harkness2013-11-241-0/+954