Gleb Mazovetskiy
6d7d95c5da
drlg_l2: Use WorldTilePosition for Room/HallNode
3 years ago
Gleb Mazovetskiy
759ca7f055
`WorldTileRectangle/Size`
...
Adds a custom sized type for the world tile rectagle.
This allows us to better express intent.
It also allows us to make certain globals smaller, e.g. `THEME_LOC`.
3 years ago
Anders Jenbo
58c8c021f8
Clean up ConnectHall
4 years ago
Gleb Mazovetskiy
6327e713e0
Lowercase all file paths
...
We want to be able to use unpacked MPQs on low-end platforms
(PS2/rg99/etc).
This is tricky on case-sensitive filesystems. Avoids case issues by
lowercasing all paths in the code (then we'll just need lowercased
listfiles).
4 years ago
Vladimir Olteanu
78f2fa6221
drlg_l2: refactor ROOMNODE and HALLNODE
4 years ago
Anders Jenbo
3d08f951d6
Clean up use of miniwin
4 years ago
Anders Jenbo
2d21fc372e
Remove more miniwin code
4 years ago
ephphatha
420a248e0c
Use FlipCoin for most uses of GenerateRnd with variable frequency
4 years ago
Anders Jenbo
791a6b6266
Decode DRLG2 ASCII
4 years ago
Anders Jenbo
8ed3cb476b
Clean up initial room generation
4 years ago
Gleb Mazovetskiy
39ff1825c1
drlg_l2.cpp: Fix `-Wmissing-braces` from clang
4 years ago
ephphatha
c68fcf3cb1
Apply MethodCase config to Rectangle::Contains
...
Also included Circle and VirtualButton classes due to the shared use.
4 years ago
Anders Jenbo
6d56058708
Move level generation to subfolder
4 years ago
Gleb Mazovetskiy
de3c9874c7
Migrate large bool arrays to `std::bitset`
...
E.g. `dRendered` size is reduced by 10 KiB
4 years ago
Anders Jenbo
4cc3a5264c
Make dPiece zero-indexed
4 years ago
Anders Jenbo
fd98aff9f1
Move shared dungeon level code to common function
4 years ago
Anders Jenbo
6fa681e567
Clean up level initialization
4 years ago
Anders Jenbo
6fffbb4676
Clean up selecting what chamber to spawn quests in
4 years ago
Anders Jenbo
d17d7e018d
Use common function for loading .dun tile data
4 years ago
ephphatha
d74e2f2b7e
Tidy up constants used in CreateRoom
4 years ago
Anders Jenbo
98a10d262e
Unify PlaceMiniSet
4 years ago
Anders Jenbo
357d477f65
Update DRLG_L1 to use Miniset
4 years ago
Anders Jenbo
359e31a900
Add PlaceMiniSetRandom1x1() helper for simple replacements
4 years ago
Anders Jenbo
6962fcd63e
Clean up PlaceMiniSet()
4 years ago
Anders Jenbo
afec954c9a
Convert dflags to boolean
4 years ago
Anders Jenbo
1203514383
Clean up use of currlevel
4 years ago
Gleb Mazovetskiy
ade8aba822
Fix some more warnings
4 years ago
Vladimir Olteanu
0e497b10f9
Use Miniset in drlg_l4
4 years ago
obligaron
90fbf1c535
Remove old dungeon reroll bugfix
4 years ago
obligaron
4073fdd531
Fix dungeon reroll - Initialize special Room coordinates
4 years ago
Gleb Mazovetskiy
7e1fea6f76
clang-format all files in {Source,test}/
...
Also includes a few manual tweaks to comments and newlines for better results.
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
Vladimir Olteanu
f530535a58
Simplify PlaceMiniSetRandom
5 years ago
Vladimir Olteanu
3193c077a6
Introduce Miniset::matches
5 years ago
Vladimir Olteanu
82584b2c54
Introduce Miniset::place
5 years ago
Vladimir Olteanu
9b8aec8a42
drlg_l2.cpp: introduce Miniset
5 years ago
Juliano Leal Goncalves
ba66a9dc87
♻️ Replace 'dmaxx' and 'dmaxy' globals with single 'dmaxPosition'
5 years ago
Juliano Leal Goncalves
6583410152
♻️ Replace 'dminx' and 'dminy' globals with single 'dminPosition'
5 years ago
Juliano Leal Goncalves
940a120bf9
♻️ Replace 'ViewX' and 'ViewY' globals with single 'ViewPosition'
5 years ago
BC Ko
40c804c0ba
Replace QuestStatus() with IsAvailable() in QuestStruct
5 years ago
BC Ko
c85d3f4b21
Merge pull request #2555 from bcko/2348_bcko_refactor_FindTransparencyValues_2
5 years ago
BC Ko
bcd60ea0b4
refactor 3 versions of FindTransparencyValues in: drlg_l1.cpp, drlg_l2.cpp, drlg_l4.cpp ( #2554 )
5 years ago
Anders Jenbo
74b57558c9
🚚 Move local code to anonymous namespace
5 years ago
Anders Jenbo
85ee14710a
Align naming and style in DRLG algorithms
5 years ago
Anders Jenbo
6fe4cb32b5
Move DRLG functions in to the same relative order
5 years ago
Anders Jenbo
352a0ca510
Place local symbols in an anonymous namespace
5 years ago
Anders Jenbo
9ebdb6db69
General clean up
5 years ago
Anders Jenbo
9b8bf92575
Rename quest globals
5 years ago
Anders Jenbo
bc59218d0d
More clang-tidy/Android Studio cleanups
5 years ago
Anders Jenbo
cb564a2d54
Clean up A-D
5 years ago
Anders Jenbo
ecea12fc15
Clang-tidy: ParameterCase
5 years ago