Commit graph

538 commits

Author SHA1 Message Date
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
Juliano Leal Goncalves
b04047ba4d ♻️ Leverage 'Point' struct on 'SpawnUnique' 2021-05-31 06:05:35 +02:00
qndel
90f250dfee
fix line clear after refactor (#2086) 2021-05-30 15:38:53 +02:00
Juliano Leal Goncalves
4668a526eb ♻️ Leverage 'Point' struct on monster functions (#2056) 2021-05-28 20:46:11 +02:00
Juliano Leal Goncalves
0d4e792551 ♻️ Change 'SetMapMonsters' to take a 'Point' instead of 2 separate ints 2021-05-25 04:09:02 +02:00
Juliano Leal Goncalves
944ff6fb78 ♻️ Change 'InitMonster' to take a 'Point' instead of 2 separate ints 2021-05-25 04:09:02 +02:00
Juliano Leal Goncalves
dd9e05222d ♻️ Change 'PosOkPlayer' to take a 'Point' instead of 2 separate ints 2021-05-25 04:09:02 +02:00
Juliano Leal Goncalves
c6fafbf64b ♻️ Change 'SolicLoc' to take a 'Point' instead of 2 separate ints 2021-05-25 04:09:02 +02:00
Juliano Leal Goncalves
b3ec79af4f
Leverage 'Point' in Lighting and Player functions (#2048) 2021-05-24 17:28:52 +02:00
Anders Jenbo
43f26084d0 Fix warnigns 2021-05-24 05:27:06 +02:00
Juliano Leal Goncalves
21fdb0dcd9 ♻️ Replace manual direction displacement logic with 'Point' add operator 2021-05-24 04:46:08 +02:00
Juliano Leal Goncalves
d55cd99dd5 🚚 Rename 'direction' enum to 'Direction' 2021-05-24 04:46:08 +02:00
Jmgr
bbd39aa513 Replace sprintfs with strcpy for translatable strings 2021-05-21 01:02:45 +02:00
Jmgr
6e85cde978 Update format strings 2021-05-21 01:02:45 +02:00
Jmgr
0c27e756f7 Add fmt::format 2021-05-21 01:02:45 +02:00
Vladimir Olteanu
0c7c71d579
Cleanup of items.cpp (#1967)
- Apply Point where applicable
- Deduplicate vendor logic
- Add comment about unhanded edge case in GetSuperItemLoc
- Initialize some variables at deceleration
2021-05-17 00:12:53 +02:00
Anders Jenbo
34744c068f ♻️Consitantly use %i and not %d 2021-05-15 14:17:52 +02:00
Anders Jenbo
bec0ceec4a ♻️ Add points 2021-05-13 01:47:46 +02:00
Anders Jenbo
0c2042fa52 ♻️ Player by reference
Update Source/items.cpp
Update Source/lighting.cpp
Update Source/pack.cpp
asd


ads


as
2021-05-13 01:47:46 +02:00
Anders Jenbo
e665a0c4b0 ♻️Draw info box text using DrawString 2021-05-10 22:28:21 +02:00
thebigMuh
8d33b31927 Fix loading of infravision palette transformation instead of actual unique monster transformation 2021-05-10 04:45:25 +02:00
Gleb Mazovetskiy
9a9941efdd 🚚 Move CL2 rendering to engine/render/cl2_render.cpp 2021-05-07 01:02:03 +02:00
Anders Jenbo
4b577329f4 ♻️Refactor towner initialization 2021-05-07 00:30:23 +02:00
Anders Jenbo
6321bf04d5 ♻️Pass player to towner by reference instead of index 2021-05-07 00:29:46 +02:00