Commit graph

719 commits

Author SHA1 Message Date
Anders Jenbo
bc0d1f7ac0 clang-tidy/Android Stuidio cleanups 3 2021-07-04 16:09:32 -07:00
Anders Jenbo
bc59218d0d More clang-tidy/Android Studio cleanups 2021-07-04 19:34:37 +02:00
Anders Jenbo
a7c7fa0030 Fully apply clang-tidy/format to all files 2021-07-03 16:41:43 -07:00
Anders Jenbo
ecea12fc15 Clang-tidy: ParameterCase 2021-07-03 15:46:39 -07:00
Anders Jenbo
ee2e7518c4 Clang-tidy: FunctionCase part 2 2021-07-03 12:36:04 -07:00
Anders Jenbo
d7a86330c6 Correct assertions in ProcessMonsters 2021-07-03 03:53:32 +02:00
Anders Jenbo
b71b0149a3 Clang-tidy: ConstexprVariableCase 2021-07-03 03:09:43 +02:00
Anders Jenbo
e285cacce5 Fix debug builds 2021-07-03 02:51:44 +02:00
Anders Jenbo
c63a420e12 Clang-tidy: apply base naming to merged src 2021-07-03 02:38:47 +02:00
Anders Jenbo
9ffafdfcc6 Clean up var init in monster.cpp 2021-07-02 17:09:38 -07:00
Anders Jenbo
7e737cfa96 Merge remote-tracking branch 'refs/remotes/devilution/master' 2021-07-03 01:44:45 +02:00
Anders Jenbo
129342d07a Clang-tidy: GlobalConstantCase 2021-07-02 22:56:56 +02:00
Anders Jenbo
d9e0658643 Clang-tidy: basic naming 2021-07-02 22:55:01 +02:00
Anders Jenbo
3a1a44de34 Fix and clean up AddDoppelganger 2021-07-02 13:07:47 -07:00
qndel
373f1db22e
If cleanup + bugfixes (#2273) 2021-07-01 18:32:25 +02:00
Juliano Leal Goncalves
cbb84199c2 ♻️ Replace Point addition with 'Point + Displacement' 2021-06-28 20:37:44 -07:00
Juliano Leal Goncalves
0441ffc2f4 ♻️ Move 'fromDirection' from 'Point' type to 'Displacement' type 2021-06-28 20:37:44 -07:00
obligaron
0755bcc6de Enable ADL for MA_DEATH 2021-06-28 01:37:32 -07:00
obligaron
05718f2b0b Enable ADL for MA_GOTHIT 2021-06-28 01:37:32 -07:00
Anders Jenbo
8e07ef8fe5 Clang-tidy: misc-unused-parameters 2021-06-27 17:34:32 +02:00
ephphatha
357f6f1dc3 Move RNG functions to their own header/source files 2021-06-27 03:09:41 -07:00
obligaron
3a9cc631c7 Rename DelayLen -> TicksPerFrame
Rename DelayCounter -> TickCounterOfCurrentFrame
2021-06-27 01:26:49 -07:00
Anders Jenbo
fa54499aeb Clang-tidy: readability-uppercase-literal-suffix
Strip suffixes
2021-06-27 03:17:36 +02:00
Anders Jenbo
bf780be1ed ♻️Cleanup all implicit bool conversions 2021-06-26 16:32:44 -07:00
Anders Jenbo
bf221f4322 Clang-tidy: readability-simplify-boolean-expr 2021-06-26 23:12:22 +02:00
Anders Jenbo
2bdb6caa07
Cleanup majority of remaning implicit bool conversions (#2234) 2021-06-26 21:05:45 +02:00
Anders Jenbo
22b632f04a ♻️Clean up implicit bool conversions 2021-06-26 08:57:59 -07:00
obligaron
cada4a5ac4 Introduce MonsterStruct.IsWalking() 2021-06-26 06:10:33 -07:00
obligaron
3c9314fa0a Remove MonsterStruct.actionFrame and enable ADL for Walking 2021-06-26 06:10:33 -07:00
obligaron
fb23521288 Introduce AnimationInfo.IsPetrified to handle Stone Curse Spell 2021-06-25 11:52:12 -07:00
obligaron
a1f57f5777 ProcessAnimationPending for MM_RSPATTACK and Megademon special 2021-06-25 11:52:12 -07:00
obligaron
a37e48db7b ProcessAnimationPending for MM_ATTACK+MM_RATTACK 2021-06-25 11:52:12 -07:00
obligaron
a4cacfbcbe Enable ADL for Monsters 2021-06-25 11:52:12 -07:00
obligaron
317a6ee82c Introduce MonsterStruct::Petrify 2021-06-25 11:52:12 -07:00
obligaron
b0ed920a25 Introduce AnimationInfo to MonsterStruct 2021-06-25 11:52:12 -07:00
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.
2021-06-23 11:27:56 +01:00
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)
2021-06-21 12:10:37 -07:00
Gleb Mazovetskiy
14218080b6 🚚 engine.h: Extract CelGetFrame and friends 2021-06-21 02:34:28 -07:00
Gleb Mazovetskiy
e40b1963f9 🚚 engine.h: Extract CelSprite and file loading 2021-06-21 01:36:20 -07:00
obligaron
b5ad92eb2c Convert _mAnimData to CelSprite 2021-06-18 21:47:19 +02:00
obligaron
7e594db683 Simplify SyncMonsterAnim 2021-06-18 21:47:19 +02:00
obligaron
40faa6e186 Introduce MonsterStruct::CheckStandAnimationIsLoaded 2021-06-18 21:47:19 +02:00
qndel
816b244689 HasItem/RemoveInvItem combo refactor 2021-06-13 05:18:08 +02:00
Vladimir Olteanu
f1a3ace440 Use Point stuff in DirOK 2021-06-02 13:36:17 +02:00
Vladimir Olteanu
90bef461a6 Use WalkingDistance in M_FallenFear 2021-06-02 13:36:17 +02:00
Vladimir Olteanu
51de9716c1 Use WalkingDistance in MAI_Zombie 2021-06-02 13:36:17 +02:00
Vladimir Olteanu
a947e7b25c Use WalkingDistance in GroupUnity 2021-06-02 13:36:17 +02:00
Vladimir Olteanu
2206ce47a5 Use WalkingDistance in M_TryH2HHit 2021-06-02 13:36:17 +02:00
Vladimir Olteanu
2dee5b0e52 Use WalkingDistance in M_DiabloDeath 2021-06-02 13:36:17 +02:00
Vladimir Olteanu
01687e7fca Use WalkingDistance in M_Enemy 2021-06-02 13:36:17 +02:00