summaryrefslogtreecommitdiffstats
path: root/src/Generating/Trees.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-07-09Item frame maps (#5258)KingCol131-3/+3
+ Send map data when item frame spawns. + Add some casts to placate compiler warnings. * size_t for array access. * Mark chunk dirty when rotation or item in item frame is changed.
2021-04-20fixes the fallthrough (#5198)12xx121-0/+2
2021-03-07Some emplace_back replacements (#5149)12xx121-115/+115
* replace push_back with emplace_back when a new object was created in the function call
2021-03-05Add Mushrooms to Generator and fixed up the roofed forest (#5134)12xx121-4/+141
* added generator for mushrooms and aded them to the biomes * removed unused variable * added nEwlY uDocUmEnTeD aPi sYmbOls...
2020-09-19Changing jungle trees a bit (#4823)12xx121-12/+28
* switch range on jungle tree generation and renamed a confusing variable * changed two numbers to match vanilla behaviour * made jungle trees closer to vanilla behaviour - matched variable names to new checkstyle - made branch generation independent from noise at block position * replaced random provider with Noise * implemented changes suggested by peterbell10 * changed the way to determine the size of the leaves on branches Co-authored-by: peterbell10 <peterbell10@live.co.uk> Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: peterbell10 <peterbell10@live.co.uk> Co-authored-by: Alexander Harkness <me@bearbin.net>
2020-08-05Fix big tree ring radius calculations. Ring radius now stays within range.Alexander Harkness1-2/+2
2020-08-05edit commentmBornand1-1/+1
2020-08-05correct errormBornand1-3/+1
2020-08-05correct errormBornand1-1/+3
2020-08-05add Large conifersmBornand1-9/+267
2020-05-15Enable some more clang-tidy linter checks (#4738)peterbell101-1/+1
* Avoid inefficient AString -> c_str() -> AString round trip * Avoid redundant string init expressions * Avoid unnecessary return, continue, etc. * Add .clang-format to help with clang-tidy fix-its * Avoid unnecessary passing by value * Avoid unnecessary local copying * Avoid copying in range-for loops * Avoid over-complicated boolean expressions * Some violations missed by my local clang-tidy * Allow unnecessary continue statements * Add brackets * Another expression missed locally * Move BindingsProcessor call into clang-tidy.sh and add space * Fix pushd not found error * Different grouping of CheckBlockInteractionRate
2020-05-06Add tree generation for ExtemeHills and other biomes (#4713)mBornand1-17/+33
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-252/+300
2019-09-06Separated chunk generator from world / plugin interfaces.Mattes D1-87/+0
The generator now only takes care of servicing synchronous "GetChunk(X, Y)" and "GetBiomes(X, Y)" requests.
2017-08-03Remove double includes part 2 (#3890)peterbell101-1/+0
2016-12-02Fix floating large trees (#3460)James Balajan1-0/+18
2016-06-10Normalized Vector3 API to use the same capitalization as all else.Mattes D1-2/+2
2016-04-22Reduced unnecessary block updatesLogicParrot1-15/+11
2016-02-05Bulk clearing of whitespaceLogicParrot1-49/+49
2015-07-31Unified the doxy-comment format.Mattes D1-1/+1
2015-07-13Sapling Growth UpdateSamuel Barney1-3/+91
* Growth has been slowed down * Saplings do not grow if they do not have enough space to grow * Saplings do not grow unless the light level is 9 or above * Dark Oak doesn't grow unless it is in a 2x2 Jungle Trees now will grow into a large tree when 2x2 saplings are used.
2015-05-24Made -Weverything an error.tycho1-2/+2
2015-05-19Fixed some more warningstycho1-20/+20
2015-05-09More style checking.Mattes D1-2/+2
Spaces around some operators are checked.
2015-03-08Added proper trees to Mesa biomesSTRWarrior1-6/+10
Mesa only has small apple trees.
2014-12-24Refactored all player block placing to go through hooks.Mattes D1-7/+7
Fixes #1618.
2014-11-16Changed commentSTRWarrior1-1/+1
Suggestion by xoft
2014-11-13First implementation for the LargeOakTreeSTRWarrior1-2/+104
2014-10-08Added comments to the GetAcaciaTreeImage functionSTRWarrior1-0/+18
2014-10-08Using array with possible directions.STRWarrior1-8/+9
2014-10-08Added AcaciaTrees for the savanna biomesSTRWarrior1-5/+56
2014-08-02Added proper trees and height for SwamplandM biomeSTRWarrior1-1/+1
2014-07-30SuggestionsSTRWarrior1-2/+2
2014-07-30Moved GetRoofedForestTreeImage content to GetDarkoakTreeImageSTRWarrior1-64/+55
2014-07-30Fixed comment at the end of a for-loopSTRWarrior1-1/+1
2014-07-30Fixed compiling using ClangSTRWarrior1-4/+2
2014-07-30Added RoofedForest trees.STRWarrior1-2/+71
Could still be improved allot.
2014-07-19Trees.cpp: removed unused "debug" fieldsarchshift1-7/+1
2014-07-17Fixed code style in Trees.cpp.madmaxoft1-24/+24
The src folder now has zero BasicStyle violations.
2014-07-17Basic style fixes.madmaxoft1-4/+4
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-08Fixed E_META_...Typos in BlockID.hnarroo1-78/+78
2014-05-12More switch warnings.archshift1-7/+27
2014-05-09Fixed MSVC 64-bit build warnings.Mattes D1-1/+1
2014-05-08Fixed MSVC 64-bit build warnings.Mattes D1-1/+1
2014-03-07WarningsTycho1-1/+1
2014-02-19Add BlockNewLeaves.h and rename Darkoac to DarkoakHowaner1-1/+1
2014-02-19Add new Trees (without Generator)Howaner1-0/+18
2013-12-29Added function to create Tall Birch tree in BirchTreeForest biomesMike Hunsinger1-3/+46
2013-11-28Trees will generate in the new biomes.madmaxoft1-0/+50
Only the generic trees, the special variants haven't yet been implemented.
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-03-19Trees: fixed a glitch in large jungle trees' leaves (1 column was missing)madmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1285 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-23Source files cleanup: Generating-related files in a separate subfoldermadmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@881 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-15Basic jungle trees with vines, efficient trees handling.madmaxoft@gmail.com1-107/+212
git-svn-id: http://mc-server.googlecode.com/svn/trunk@665 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-02Temporary jungle trees (swamp-like), based on code by STR_Warrior). Also vines don't overwrite leaves anymore.madmaxoft@gmail.com1-1/+42
git-svn-id: http://mc-server.googlecode.com/svn/trunk@646 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-06-14Attempt to bring sanity to newlines across systems.cedeel@gmail.com1-538/+538
git-svn-id: http://mc-server.googlecode.com/svn/trunk@606 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-06-02Fixed Linux compilation complaining about min() and max(), hopefully forever. Use std::min() and std::max()madmaxoft@gmail.com1-9/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@539 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-05-25Merged the composable_generator branch into the trunkmadmaxoft@gmail.com1-0/+546
git-svn-id: http://mc-server.googlecode.com/svn/trunk@504 0a769ca7-a7f5-676a-18bf-c427514a06d6