Mattes D
9ee47e5999
Using Super.
2020-04-16 20:07:48 +00:00
Mattes D
01b8ed5295
Pulled the BlockID and BlockInfo headers from Globals.h. ( #4591 )
...
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
2020-04-03 08:57:01 +02:00
Mattes D
5f4df3e87d
ShapeGen, HeiGen: Changed to use cChunkCoords.
2019-09-08 20:21:49 +02:00
peterbell10
950aeffff8
CheckBasicStyle: Check number of empty lines between functions ( #4267 )
...
Add check for number of empty lines between functions and fix the corresponding failures
2018-07-26 22:24:36 +01:00
peterbell10
360d8eade0
FastRandom rewrite ( #3754 )
2017-06-13 21:35:30 +02:00
mathiascode
4311f4a658
Added some blocks and items ( #3503 )
2017-02-14 11:13:55 +01:00
Mattes D
6e4122e551
Unified the doxy-comment format.
2015-07-31 16:49:10 +02:00
tycho
dae9e5792a
Made -Weverything an error.
2015-05-24 12:56:56 +01:00
Mattes D
09453619e6
Fixed DungeonRooms edges not generating sometimes.
2014-12-11 11:16:11 +01:00
STRWarrior
f1177984f1
Fixed forgotten semicolon
2014-12-02 10:20:20 +01:00
STRWarrior
a466986f53
Using IntNoise3DInt instead of IntNoise3D
2014-12-02 09:55:25 +01:00
STRWarrior
5db3ceb333
Suggestions by xoft
...
Using IntNoise3D to prevent needless floating point math
2014-12-02 09:42:49 +01:00
STRWarrior
7586069829
Using static cast for Dungeon spawners
2014-12-01 19:07:54 +01:00
STRWarrior
c0b08a6c1e
Dungeons spawners now spawn mobs
...
25% for a spider, 25% for a skeleton and 50% for a zombie spawner.
2014-12-01 17:51:20 +01:00
Mattes D
30fa6a642c
DungeonRooms: Changed to work with the new shape generators.
2014-11-15 11:17:05 +01:00
Mattes D
5fb2526e07
Generator: Shape initial refactoring.
...
The code compiles, but several structure generators are broken, crash on start.
2014-11-12 21:24:26 +01:00
Tiger Wang
a26541a7c3
En masse NULL -> nullptr replace
2014-10-22 20:12:49 -07:00
Mattes D
e0cfbc4d85
Generator: Rewritten to use SharedPtrs.
2014-10-19 14:01:59 +02:00
STRWarrior
5ed6d280ce
Reversed wrong fix for #1517 .
2014-10-16 10:26:17 +02:00
STRWarrior
3f0d4fe250
Reversed the order of the loot
...
For some reason the rare items weren't generating at all.
Added forgotten Golden Apple
2014-10-15 22:10:14 +02:00
STRWarrior
08676128b0
Added loot to dungeons.
2014-10-15 21:15:12 +02:00
Mattes D
e54c78923e
DungeonRooms: Fixed an off-by-one error.
2014-08-27 20:55:28 +03:00
Mattes D
e54a7dc6c4
More basic style fixes.
2014-08-27 15:21:20 +03:00
Mattes D
62e1c45ca5
DungeonRooms: Added a height probability distribution function.
2014-08-27 13:25:27 +03:00
Mattes D
c6beb9760b
DungeonRooms: Added the spawner in the center of the room.
2014-08-27 08:12:26 +03:00
Mattes D
0c3c136c72
DungeonRooms: Chests are never placed next to each other.
2014-08-26 17:46:14 +03:00
Mattes D
a40f358064
DungeonRooms: Random pattern for floors.
2014-08-26 17:25:38 +03:00
Mattes D
2d569ce6dd
DungeonRooms: Replaced explicit switch with CanBeTerraformed().
2014-08-26 17:13:46 +03:00
Mattes D
ac4d3a30ed
Added initial dungeon rooms finisher.
2014-08-26 15:16:33 +03:00