summaryrefslogtreecommitdiffstats
path: root/src/Generating/Caves.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
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
2018-07-26CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell101-2/+0
Add check for number of empty lines between functions and fix the corresponding failures
2017-05-21Clang 5.0 fixesLukas Pioch1-1/+1
- Added override keyword - Removed inherited member variables
2015-07-31Unified the doxy-comment format.Mattes D1-10/+10
2015-07-29Silenced and fixed many warning messages across multiple files.Samuel Barney1-8/+8
2015-05-09CheckBasicStyle: checks spaces around * and &.Mattes D1-1/+1
2015-05-09More style checking.Mattes D1-2/+2
Spaces around some operators are checked.
2014-12-13WormNestCaves occasionally generates sandstone around the caveSTRWarrior1-3/+22
Only when the block around the cave is sand.
2014-12-05BasicStyle: Added missing braces to control statements.Mattes D1-2/+8
2014-09-22Made it compile with clangChris Darnell1-1/+1
2014-08-21Added initializers for class members.Mattes D1-0/+3
As reported by Coverity, these weren't initialized.
2014-07-29Added cBlockInfo::CanBeTerraformed and made finishers use itSTRWarrior1-22/+2
I might have forgotten some of them though
2014-07-21Style: Normalized to no spaces before closing parenthesis.madmaxoft1-3/+3
2014-07-19Fixed style: spaces after commas.madmaxoft1-1/+1
2014-07-17Fixed tabs used for alignment.madmaxoft1-6/+6
2014-07-17Normalized comments.madmaxoft1-5/+5
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.
2014-06-16Merge branch 'master' of github.com:mc-server/MCServerTycho1-5/+5
2014-06-15Added random offsets to cGridStructGen.madmaxoft1-5/+5
Fixes #740.
2014-05-09Removed an unused macro.Mattes D1-7/+0
2014-05-09Fixed MSVC 64-bit build warnings.Mattes D1-2/+8
2014-05-09cWormNestCaves rewritten using cGridStructGen.Mattes D1-208/+22
Ref.: #987.
2014-05-08Fixed MSVC 64-bit build warnings.Mattes D1-2/+8
2014-04-18Did some static analysis, fixed some bugs and optimized a lot of codejfhumann1-16/+20
2014-03-01Unified StructureGens and FinisherGens.madmaxoft1-3/+3
Now they are all Finishers. Fixes #398.
2014-01-08WormNestCaves now remove soul sand.STRWarrior1-0/+1
2014-01-07Fixed a few MSVC warnings.madmaxoft1-4/+4
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-16WaveNoise not used, removing.Alexander Harkness1-1/+0
2013-11-16This is a copy-paste fail, right?Alexander Harkness1-1/+1
2013-11-16Got rid of yet another unused variable.Alexander Harkness1-51/+50
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-970/+970
2013-03-22Re-tweaked WormNestCaves for more reasonable cave sizesmadmaxoft@gmail.com1-7/+14
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1298 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-22WormNestCaves: tweaked a bit not to produce the single-block holes in the floormadmaxoft@gmail.com1-5/+5
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1296 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-17Rewritten generators so that they use the cChunkDesc class (and thus can use cBlockArea merging)madmaxoft@gmail.com1-48/+20
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1282 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-16Made WormNest caves generate smaller.madmaxoft@gmail.com1-3/+29
http://forum.mc-server.org/showthread.php?tid=409&pid=5654#pid5654 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1077 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-19WormNestCaves: drills only through specific blocks (FS #259)madmaxoft@gmail.com1-1/+23
git-svn-id: http://mc-server.googlecode.com/svn/trunk@981 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-23Source files cleanup: Generating-related files in a separate subfoldermadmaxoft@gmail.com1-0/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@881 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-06Fixed runtime crashes in generator on Raspberry Pi (damn picky gcc!)madmaxoft@gmail.com1-24/+24
git-svn-id: http://mc-server.googlecode.com/svn/trunk@714 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-29Ravines: implemented proper caching - another 10 % in generator speedup :)madmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@709 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-28Caves and Ravines: fixed compilation and linking issues on gccmadmaxoft@gmail.com1-3/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@699 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-27Removed bottom lava from caves generator, added a new finish generator BottomLava for that. Also fixed a slight error in SameBlock composition generator cfgmadmaxoft@gmail.com1-17/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@698 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-27Basic WormNestCaves are workingmadmaxoft@gmail.com1-17/+45
git-svn-id: http://mc-server.googlecode.com/svn/trunk@697 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-27Initial WormNestCaves commit. Won't generate caves, only the schematic for caves' centers.madmaxoft@gmail.com1-47/+607
git-svn-id: http://mc-server.googlecode.com/svn/trunk@696 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-22Added a new cave generator: DualRidgeCaves ( somewhat like http://www.gamedev.net/blog/33/entry-2227887-more-on-minecraft-type-world-gen/ )madmaxoft@gmail.com1-0/+369
git-svn-id: http://mc-server.googlecode.com/svn/trunk@694 0a769ca7-a7f5-676a-18bf-c427514a06d6