Anders Jenbo
96bf75b502
Rename player globals
5 years ago
Anders Jenbo
dce78dde62
Rename lighting globals
5 years ago
Anders Jenbo
07ad083fda
Rename monster globals
5 years ago
Anders Jenbo
56d3b5d710
clang-tidy/Android Stuidio cleanups 5
5 years ago
ephphatha
51d05a3523
Reorder monster damage calculations to avoid warnings
...
This was giving type conversion warnings for the forced int > double > int conversion. The int + int operation in the middle was also flagged as it gets upcast during the multiplication (despite the values always being well within the range of an int) so using long constants there to avoid it.
5 years ago
obligaron
e1e92ad777
Fix PlaceUniques calculates wrong monster type
5 years ago
Anders Jenbo
bc0d1f7ac0
clang-tidy/Android Stuidio cleanups 3
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
Anders Jenbo
ee2e7518c4
Clang-tidy: FunctionCase part 2
5 years ago
Anders Jenbo
d7a86330c6
Correct assertions in ProcessMonsters
5 years ago
Anders Jenbo
b71b0149a3
Clang-tidy: ConstexprVariableCase
5 years ago
Anders Jenbo
e285cacce5
Fix debug builds
5 years ago
Anders Jenbo
c63a420e12
Clang-tidy: apply base naming to merged src
5 years ago
Anders Jenbo
9ffafdfcc6
Clean up var init in monster.cpp
5 years ago
Anders Jenbo
129342d07a
Clang-tidy: GlobalConstantCase
5 years ago
Anders Jenbo
d9e0658643
Clang-tidy: basic naming
5 years ago
Anders Jenbo
3a1a44de34
Fix and clean up AddDoppelganger
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
Juliano Leal Goncalves
0441ffc2f4
♻️ Move 'fromDirection' from 'Point' type to 'Displacement' type
5 years ago
obligaron
0755bcc6de
Enable ADL for MA_DEATH
5 years ago
obligaron
05718f2b0b
Enable ADL for MA_GOTHIT
5 years ago
Anders Jenbo
8e07ef8fe5
Clang-tidy: misc-unused-parameters
5 years ago
ephphatha
357f6f1dc3
Move RNG functions to their own header/source files
5 years ago
obligaron
3a9cc631c7
Rename DelayLen -> TicksPerFrame
...
Rename DelayCounter -> TickCounterOfCurrentFrame
5 years ago
Anders Jenbo
fa54499aeb
Clang-tidy: readability-uppercase-literal-suffix
...
Strip suffixes
5 years ago
Anders Jenbo
bf780be1ed
♻️ Cleanup all implicit bool conversions
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
Anders Jenbo
22b632f04a
♻️ Clean up implicit bool conversions
5 years ago
obligaron
cada4a5ac4
Introduce MonsterStruct.IsWalking()
5 years ago
obligaron
3c9314fa0a
Remove MonsterStruct.actionFrame and enable ADL for Walking
5 years ago
obligaron
fb23521288
Introduce AnimationInfo.IsPetrified to handle Stone Curse Spell
5 years ago
obligaron
a1f57f5777
ProcessAnimationPending for MM_RSPATTACK and Megademon special
5 years ago
obligaron
a37e48db7b
ProcessAnimationPending for MM_ATTACK+MM_RATTACK
5 years ago
obligaron
a4cacfbcbe
Enable ADL for Monsters
5 years ago
obligaron
317a6ee82c
Introduce MonsterStruct::Petrify
5 years ago
obligaron
b0ed920a25
Introduce AnimationInfo to MonsterStruct
5 years ago
Gleb Mazovetskiy
8a9618aea2
♻️ Clean up `cel_header.hpp`
...
1. Rename `CelGetFrameStart` to `CelGetFrame`, in line with the other 2
functions with the same name and load the `uint32_t` safely.
2. Remove redundant `FrameHeader`, simply use `LoadLE16`.
3. Document all the functions.
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
14218080b6
🚚 engine.h: Extract `CelGetFrame` and friends
5 years ago
Gleb Mazovetskiy
e40b1963f9
🚚 engine.h: Extract `CelSprite` and file loading
5 years ago
obligaron
b5ad92eb2c
Convert _mAnimData to CelSprite
5 years ago
obligaron
7e594db683
Simplify SyncMonsterAnim
5 years ago
obligaron
40faa6e186
Introduce MonsterStruct::CheckStandAnimationIsLoaded
5 years ago
qndel
816b244689
HasItem/RemoveInvItem combo refactor
5 years ago
Vladimir Olteanu
f1a3ace440
Use Point stuff in DirOK
5 years ago
Vladimir Olteanu
90bef461a6
Use WalkingDistance in M_FallenFear
5 years ago