ephphatha
36ff5578fd
Refactor LoadMapObjects/LoadMapObjs to take Point instead of int x/y
5 years ago
ephphatha
3a517048f7
Refactor ObjIndex to take Point instead of int x/y
...
Also updated declaration of temporary/local variables to match
convention. This includes inlining int oi in LoadMapObjects as this
matches the way SetOBjMapRange is called in other areas.
5 years ago
ephphatha
19ae61811f
Refactor AddObject to take Point instead of int x/y
5 years ago
ephphatha
e4b434b2ef
Refactor SetupObject to use Point
5 years ago
ephphatha
288d691678
Refactor OperateShrineTown to use Point
...
Also added documentation about what the function does.
5 years ago
ephphatha
c2cf2f8b59
Refactor OperateShrineSparkling to use Point
...
Also added documentation about what the function does.
5 years ago
ephphatha
61a2cf9ac8
Refactor OperateShrineOily to use Point
...
Also added documentation about what the function does.
5 years ago
ephphatha
bc386a4701
Refactor OperateShrineDivine to use Point
...
Also added documentation about what the function does.
5 years ago
ephphatha
73cf62179c
Refactor ObjSetMini to use Point
5 years ago
ephphatha
e668d215f2
Refactor objects_set_door_piece to use a Point param
5 years ago
ephphatha
cbe542c52e
Refactor Add*Door functions to use more descriptive parameters
5 years ago
ephphatha
a3d155f552
Remove unnecessary temporaries from Obj_Light
...
This function can use Point member functions to perform the logic that determines when to show lights.
5 years ago
ephphatha
6f40f0dd88
Refactor ObjSetMicro to take a Point parameter
5 years ago
Anders Jenbo
903d4bd2e1
Scope all for loops
...
This caused 7 of the loops to be rewriteen using range by clang-tidy
5 years ago
Anders Jenbo
467b74dc06
Rename object globals
5 years ago
Anders Jenbo
9b8bf92575
Rename quest globals
5 years ago
Anders Jenbo
96bf75b502
Rename player globals
5 years ago
Anders Jenbo
dce78dde62
Rename lighting globals
5 years ago
Anders Jenbo
c8870dbd1f
Rename item globals
5 years ago
Anders Jenbo
07ad083fda
Rename monster globals
5 years ago
Vladimir Olteanu
d969672895
Check for negative random values in tear fountain logic
5 years ago
Anders Jenbo
56d3b5d710
clang-tidy/Android Stuidio cleanups 5
5 years ago
Vladimir Olteanu
04751418e0
Refactor tear fountain logic; remove GenerateRnd loop
5 years ago
ephphatha
08ae390643
Add explicit casts for some implicit conversions
...
Some of these were triggering multiple warnings due to casts applied at times which forced potentially truncating operations.
5 years ago
Anders Jenbo
bc0d1f7ac0
clang-tidy/Android Stuidio cleanups 3
5 years ago
Anders Jenbo
cb564a2d54
Clean up A-D
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
Anders Jenbo
a350fb0b15
Clang-tidy: FunctionCase part 1
5 years ago
Anders Jenbo
4cd916a085
Clang-tidy: EnumConstantCase
5 years ago
Anders Jenbo
129342d07a
Clang-tidy: GlobalConstantCase
5 years ago
Anders Jenbo
d9e0658643
Clang-tidy: basic naming
5 years ago
Anders Jenbo
d95a99d9a4
Clean up objects var init
5 years ago
qndel
373f1db22e
If cleanup + bugfixes ( #2273 )
5 years ago
Juliano Leal Goncalves
cbb84199c2
♻️ Replace Point addition with 'Point + Displacement'
5 years ago
ephphatha
357f6f1dc3
Move RNG functions to their own header/source files
5 years ago
Anders Jenbo
bf221f4322
Clang-tidy: readability-simplify-boolean-expr
5 years ago
Anders Jenbo
2bdb6caa07
Cleanup majority of remaning implicit bool conversions ( #2234 )
5 years ago
ephphatha
2fa4178aff
Refactor Operate*Door functions with meaningful variable names
5 years ago
ephphatha
f4f6a8a51e
Refactor PlaySfxLoc to take a Point instead of x/y params
...
Because of the heavy usage of this function in objects.cpp and the mixed use of aliases and direct references to the active object in Operate*Door functions I've done some refactoring of those areas beyond what is strictly necessary. Hopefully this makes sense and is reasonable to include in this change.
5 years ago
Anders Jenbo
22b632f04a
♻️ Clean up implicit bool conversions
5 years ago
Anders Jenbo
f2e24fee3d
🐛 Fix trap direction
5 years ago
Vladimir Olteanu
95643029e3
Refactor missiles.cpp
...
Use Point wherever possible
Make some functions static (not exhaustive)
Reduce excessive indentation (not exhaustive)
Declare variables as needed (not exhaustive)
5 years ago
Gleb Mazovetskiy
e40b1963f9
🚚 engine.h: Extract `CelSprite` and file loading
5 years ago
qndel
70bf808512
change 1 to bool
5 years ago
ephphatha
0c99ae0206
Add descriptive name and comments for the Na-Krul spell tome check function
5 years ago
qndel
816b244689
HasItem/RemoveInvItem combo refactor
5 years ago
qndel
a8075697d7
fix thaumaturgic
5 years ago
Juliano Leal Goncalves
b04047ba4d
♻️ Leverage 'Point' struct on 'SpawnUnique'
5 years ago
Juliano Leal Goncalves
4668a526eb
♻️ Leverage 'Point' struct on monster functions ( #2056 )
5 years ago