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
Vladimir Olteanu
51de9716c1
Use WalkingDistance in MAI_Zombie
5 years ago
Vladimir Olteanu
a947e7b25c
Use WalkingDistance in GroupUnity
5 years ago
Vladimir Olteanu
2206ce47a5
Use WalkingDistance in M_TryH2HHit
5 years ago
Vladimir Olteanu
2dee5b0e52
Use WalkingDistance in M_DiabloDeath
5 years ago
Vladimir Olteanu
01687e7fca
Use WalkingDistance in M_Enemy
5 years ago
Juliano Leal Goncalves
b04047ba4d
♻️ Leverage 'Point' struct on 'SpawnUnique'
5 years ago
qndel
90f250dfee
fix line clear after refactor ( #2086 )
5 years ago
Juliano Leal Goncalves
4668a526eb
♻️ Leverage 'Point' struct on monster functions ( #2056 )
5 years ago
Juliano Leal Goncalves
0d4e792551
♻️ Change 'SetMapMonsters' to take a 'Point' instead of 2 separate ints
5 years ago
Juliano Leal Goncalves
944ff6fb78
♻️ Change 'InitMonster' to take a 'Point' instead of 2 separate ints
5 years ago
Juliano Leal Goncalves
dd9e05222d
♻️ Change 'PosOkPlayer' to take a 'Point' instead of 2 separate ints
5 years ago
Juliano Leal Goncalves
c6fafbf64b
♻️ Change 'SolicLoc' to take a 'Point' instead of 2 separate ints
5 years ago
Juliano Leal Goncalves
b3ec79af4f
Leverage 'Point' in Lighting and Player functions ( #2048 )
5 years ago
Anders Jenbo
43f26084d0
Fix warnigns
5 years ago
Juliano Leal Goncalves
21fdb0dcd9
♻️ Replace manual direction displacement logic with 'Point' add operator
5 years ago
Juliano Leal Goncalves
d55cd99dd5
🚚 Rename 'direction' enum to 'Direction'
5 years ago
Jmgr
bbd39aa513
Replace sprintfs with strcpy for translatable strings
5 years ago
Jmgr
6e85cde978
Update format strings
5 years ago
Jmgr
0c27e756f7
Add fmt::format
5 years ago
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
5 years ago
Anders Jenbo
34744c068f
♻️ Consitantly use %i and not %d
5 years ago
Anders Jenbo
bec0ceec4a
♻️ Add points
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
e665a0c4b0
♻️ Draw info box text using DrawString
5 years ago
thebigMuh
8d33b31927
Fix loading of infravision palette transformation instead of actual unique monster transformation
5 years ago
Gleb Mazovetskiy
9a9941efdd
🚚 Move CL2 rendering to engine/render/cl2_render.cpp
5 years ago
Anders Jenbo
4b577329f4
♻️ Refactor towner initialization
5 years ago
Anders Jenbo
6321bf04d5
♻️ Pass player to towner by reference instead of index
5 years ago
Anders Jenbo
c98a1409f9
♻️ Pass towners by reference instead of index
5 years ago
Anders Jenbo
f579b2f287
Handle cel/cl2 files as byte arrays
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
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
f884ba5340
🔥 Remove more miniwin dependencies
5 years ago
Anders Jenbo
3b04f67194
🔥 Remove a chunk of miniwin types
5 years ago
Anders Jenbo
5745f099ba
♻️ Use Point for positions in msg.cpp functions
5 years ago
Anders Jenbo
48dbb47d70
🌐 Apply static translations
5 years ago
Vladimir Olteanu
2a3cf98850
Slight cleanup of dead{.h,.cpp}
5 years ago