Brandon Cullen
926f6b44bc
Minimize direct usage of Lights[] global
4 years ago
Vladimir Olteanu
25d412d1ac
Remove duplicate code in DoLighting
4 years ago
qndel
b7b01ce1fd
remove InitLightMax
4 years ago
Andrew James
796e2813cf
Use scoped enums for DungeonFlags/BFLAG ( #3135 )
4 years ago
qndel
e567953bc9
Sharing automap exploration in multiplayer
4 years ago
qndel
0ccdf940f7
fix bounds checks ( #3237 )
4 years ago
qndel
f8cda02456
apply bounds check function
4 years ago
obligaron
1b3381ce8e
Move CrawlNum to CrawlTable and make it extern visible
5 years ago
Juliano Leal Goncalves
a91074d470
🚚 Rename 'LightStruct' struct to 'Light'
5 years ago
Anders Jenbo
87f478d82f
Remove unnecessary indentation
5 years ago
BC Ko
a9754d664b
Reduce use of globals: VisionList
5 years ago
Anders Jenbo
7463d2c7dc
Update Source/lighting.cpp
5 years ago
BC Ko
c589ccb0ac
cleanup manual value clamping: lighting.cpp
5 years ago
Anders Jenbo
ef6275caac
Clean up private function names
5 years ago
Anders Jenbo
4bf4e42230
Move local symbols to anonymous namespace
5 years ago
ephphatha
af7adda161
Refactor GetLight/SetLight to take Points instead of x/y params
...
Doing both functions at once as they are called from the same places with the same arguments.
They also operate on char values internally but get treated as if they are ints, might be more appropriate to use int8_t/uint8_t?
5 years ago
ephphatha
8dbbdcca0d
remove unnecessary cast from MakeLightTable
...
Also changed the c-style cast to static_cast with appropriate type for destination.
5 years ago
Anders Jenbo
9ebdb6db69
General clean up
5 years ago
Anders Jenbo
467b74dc06
Rename object globals
5 years ago
Anders Jenbo
96bf75b502
Rename player globals
5 years ago
Anders Jenbo
dce78dde62
Rename lighting globals
5 years ago
Anders Jenbo
bc59218d0d
More clang-tidy/Android Studio cleanups
5 years ago
Anders Jenbo
a7c7fa0030
Fully apply clang-tidy/format to all files
5 years ago
Anders Jenbo
ecea12fc15
Clang-tidy: ParameterCase
5 years ago
qndel
dadf418fe0
fix typo ( #2266 )
5 years ago
Anders Jenbo
b1d237c823
More init clean up ( #2262 )
5 years ago
Anders Jenbo
5537fe748e
Clean up debug code
5 years ago
Anders Jenbo
22b632f04a
♻️ Clean up implicit bool conversions
5 years ago
Gleb Mazovetskiy
e40b1963f9
🚚 engine.h: Extract `CelSprite` and file loading
5 years ago
Juliano Leal Goncalves
b3ec79af4f
Leverage 'Point' in Lighting and Player functions ( #2048 )
5 years ago
Anders Jenbo
44b58c4970
Clean up L5dflags flags
5 years ago
Anders Jenbo
0c2042fa52
♻️ Player by reference
...
Update Source/items.cpp
Update Source/lighting.cpp
Update Source/pack.cpp
asd
ads
as
5 years ago
Anders Jenbo
92db72719d
🔥 Remove some unused code
5 years ago
Anders Jenbo
3746723f52
♻️ Add type to MIN-files and TRN-files
5 years ago
Anders Jenbo
fa0b286693
♻️ Typed file loading
...
Tthis gives us the option to specify what type a file should be loaded
as, avoidng the need to case it and does some automatic checks on the
fitness of the data, while making the process simpler.
If no type is given then the type will be set to std::byte which limit
what operations can be performed on the data.
5 years ago
Anders Jenbo
654a2b8834
♻️ Clean up automap code
...
Use Point for x,y pairs. Make helpers for drawing door and squares
5 years ago
Gleb Mazovetskiy
0bfc147b78
🧹 Remove `DiabloAllocPtr` and friends ( #1824 )
5 years ago
Gleb Mazovetskiy
052b4c12f5
♻️ LoadFileInMem: Remove `nullptr` at call sites
...
This is now the default argument, no need to provide it explicitly.
5 years ago
Gleb Mazovetskiy
1b8b62a8c2
♻️ Store CEL width with the sprite itself
...
Instead of passing the CEL sprite width when drawing, store the CEL
width at load time in the new `CelSprite` struct.
Implemented for most sprites except towners, missiles, or monsters.
5 years ago
Anders Jenbo
2bd13451a1
♻️ Apply point positioning to all remaning entities
5 years ago
Anders Jenbo
e4cfad3196
♻️ Use points instead of individual fileds for player structure
5 years ago
Anders Jenbo
1e3ed903be
🎨 strip redundant else
5 years ago
Anders Jenbo
373f28736f
🎨 Acceptable parts of modernize-*
5 years ago
Anders Jenbo
bb4e1960e7
🎨 modernize-use-nullptr
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
qndel
3254ee7434
automap bugfix
5 years ago
qndel
e24f3c83de
fix automap
5 years ago
qndel
40d33f6778
fix gharbad and vision
5 years ago
qndel
ced74f76f9
fix gharbad and vision
5 years ago
Anders Jenbo
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
5 years ago