summaryrefslogtreecommitdiffstats
path: root/src/Generating/StructGen.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-05-16Removed all Printf-family functions from StringUtils.Mattes D1-1/+1
Replaced them with fmt::format calls, including changes to the format strings. Also changed the format strings to use FMT_STRING, so that the format is checked compile-time against the arguments. Also fixed code-style violations already present in the code.
2021-03-18shared_ptr -> unique_ptr in generatorsTiger Wang1-8/+4
2021-03-05Add Mushrooms to Generator and fixed up the roofed forest (#5134)12xx121-1/+3
* added generator for mushrooms and aded them to the biomes * removed unused variable * added nEwlY uDocUmEnTeD aPi sYmbOls...
2021-02-20Mark UNREACHABLE with intrinsicsTiger Wang1-2/+1
2020-08-05add Large conifersmBornand1-4/+4
2020-05-06Add tree generation for ExtemeHills and other biomes (#4713)mBornand1-77/+93
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-12-22Improved large jungle and acacia tree generation (#4413)NiLSPACE1-2/+3
2019-09-08ShapeGen, HeiGen: Changed to use cChunkCoords.Mattes D1-1/+1
2019-09-08BiomeGen: Changed to use cChunkCoords params.Mattes D1-1/+1
2019-09-06Separated chunk generator from world / plugin interfaces.Mattes D1-2/+2
The generator now only takes care of servicing synchronous "GetChunk(X, Y)" and "GetBiomes(X, Y)" requests.
2018-02-05Deal with covered switches consistently (#4161)peterbell101-0/+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()
2017-09-14Fix switch warnings (#4013)peterbell101-56/+79
* Fix switch warnings * Fix a variety of -Wswitch and -Wswitch-enum warnings * Remove unneeded -Wno-error flags * Reorganise some eMonsterType switches * Alpha sort eMonsterType cases in WriteMobMetadata and in cNBTChunkSerializer::AddMonsterEntity * List all mob types in protocol 1.12 and NBTChunkSerializer * cStructGenTrees::GetNumTrees: remove switch default * cWSSAnvil::LoadOldMinecartFromNBT: Log unhandled minecart type
2017-08-03Remove double includes part 2 (#3890)peterbell101-1/+0
2017-06-14Remove redundant heighmap codepeterbell101-15/+1
2016-04-22Reduced unnecessary block updatesLogicParrot1-0/+8
2016-02-05Bulk clearing of whitespaceLogicParrot1-27/+27
2015-12-17Moved variables into scope, removed unused variables and fixed variablesLukas Pioch1-2/+2
2015-11-25Added OrePockets and DirtPockets finish gens.Mattes D1-110/+0
2015-08-12Fix old style casts and implicit conversionsMatti Hänninen1-6/+6
2015-05-19Fixed some more warningstycho1-14/+14
2015-05-09More style checking.Mattes D1-1/+1
Spaces around some operators are checked.
2014-12-24Refactored all player block placing to go through hooks.Mattes D1-7/+7
Fixes #1618.
2014-11-26Merge remote-tracking branch 'origin-master' into c++11Tiger Wang1-20/+16
2014-11-15Generator: Fixed crash with trees too high.Mattes D1-2/+7
2014-11-13Gen refactor: Implemented CompositedHeiGen.Mattes D1-0/+1
This fixes crashes in the Village generator due to the missing generator.
2014-11-12Generator: Shape initial refactoring.Mattes D1-18/+8
The code compiles, but several structure generators are broken, crash on start.
2014-10-19Generator: Rewritten to use SharedPtrs.Mattes D1-1/+1
2014-09-28Added Granite, Diorite and Andesite to the NaturalPatches generator.STRWarrior1-2/+4
2014-08-10Bunch of tweaks:STRWarrior1-1/+1
Renamed Quarts to Quartz Using const_iterator instead of iterator Used CheckBasicStyle script to find style errors
2014-08-10Changed cStructGenOreNests to take a list of ores + the block to replace.STRWarrior1-48/+10
2014-08-04CheckBasicStyle: multi-level indent change.madmaxoft1-3/+3
2014-07-18Generator: removed rnd definitions that are never readarchshift1-1/+0
2014-07-17Basic style fixes.madmaxoft1-7/+7
2014-07-17Normalized comments.madmaxoft1-6/+6
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-05-12Fixed a few more switch warnings.archshift1-15/+13
2014-03-21Implemented faster upscaling using templates.madmaxoft1-2/+2
Fixes #819.
2014-03-01Unified StructureGens and FinisherGens.madmaxoft1-5/+5
Now they are all Finishers. Fixes #398.
2014-02-20Thread safe cMap managerandrew1-9/+0
2014-02-09Fixed compile and some warnings in MSVSTiger Wang1-9/+0
2013-12-20Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft1-2/+6
2013-11-28Trees will generate in the new biomes.madmaxoft1-14/+51
Only the generic trees, the special variants haven't yet been implemented.
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-16Revert "Silenced another warning."Alexander Harkness1-1/+0
This reverts commit dc94b927534f6216a0ace7690ba250b69c014407.
2013-11-16Revert "Silenced yet another not completed enum warning."Alexander Harkness1-1/+0
This reverts commit 444e6e4fa74e987880133bb52433b047ff3981b2.
2013-11-16Revert "Fixed another one."Alexander Harkness1-1/+0
This reverts commit 3328c80aec768cf0e64e48eb40e50bf02bfff59c.
2013-11-14Fixed another one.Alexander Harkness1-0/+1
2013-11-14Silenced yet another not completed enum warning.Alexander Harkness1-0/+1
2013-11-14Silenced another warning.Alexander Harkness1-0/+1
2013-05-14Noise3D generator is now using linear upscalingmadmaxoft@gmail.com1-2/+2
Measured 30% performance increase. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1482 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-12LinearUpscale: postfixed with InPlace to differentiate from a future src/dst versionmadmaxoft@gmail.com1-2/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1479 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-12Renamed linear interpolation from Noise.h to a more proper LinearUpscale and moved it to a separate file.madmaxoft@gmail.com1-2/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1475 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-25Initial version of "DistortedMembraneOverhangs"madmaxoft@gmail.com1-1/+48
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1412 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-24Added the initial version of DirectOverhangsmadmaxoft@gmail.com1-0/+114
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1411 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-19Lakes: added a limiter, better height distributionmadmaxoft@gmail.com1-7/+14
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1287 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-19The subgenerators use cChunkDesc instead of raw arrays. cChunkDesc is based on cBlockArea. Initial version of Lakes generator.madmaxoft@gmail.com1-50/+151
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1286 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-49/+39
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1282 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-16Removed all E_ITEM_ symbols equivalent to E_BLOCK_, and all obsolete item and block symbols.madmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1218 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-23Adjusted the number and sizes of ore nests (Patch contributed by STR_Warrior)madmaxoft@gmail.com1-10/+10
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1006 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-23Source files cleanup: Generating-related files in a separate subfoldermadmaxoft@gmail.com1-1/+11
git-svn-id: http://mc-server.googlecode.com/svn/trunk@881 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-66/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@694 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-19Ravines: initial implementation, randomized shapes are working, but still needs some workmadmaxoft@gmail.com1-0/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@683 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-15Basic jungle trees with vines, efficient trees handling.madmaxoft@gmail.com1-57/+63
git-svn-id: http://mc-server.googlecode.com/svn/trunk@665 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-02Patch from STR_Warrior, OreNest counts adjustmentmadmaxoft@gmail.com1-5/+5
git-svn-id: http://mc-server.googlecode.com/svn/trunk@640 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-06-14Attempt to bring sanity to newlines across systems.cedeel@gmail.com1-464/+464
git-svn-id: http://mc-server.googlecode.com/svn/trunk@606 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-06-02Added the Biomal composition generator.madmaxoft@gmail.com1-3/+4
git-svn-id: http://mc-server.googlecode.com/svn/trunk@541 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-05-25Merged the composable_generator branch into the trunkmadmaxoft@gmail.com1-0/+463
git-svn-id: http://mc-server.googlecode.com/svn/trunk@504 0a769ca7-a7f5-676a-18bf-c427514a06d6