Gleb Mazovetskiy
a5e1fa5bbe
Load missile frames into a single buffer
...
Previously, the memory for each frame was allocated separately.
Changes it to allocate a single buffer for all the frames.
This has the following advantages:
1. Less bookkeeping overhead in the allocator.
2. Less alignment overhead (allocator results are max-aligned by default).
We can follow this up with a similar treatment for other multi-file
animations.
2022-02-01 04:04:59 +00:00
Gleb Mazovetskiy
7e1fea6f76
clang-format all files in {Source,test}/
...
Also includes a few manual tweaks to comments and newlines for better results.
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
2021-11-24 23:44:12 +01:00
ephphatha
6fa3018f05
Move Init/FreeMissileGFX functions alongside MissileSpriteData array definition
...
Also combined the two free missile graphics functions as they were always called together (just slightly out of order previously).
2021-09-07 01:09:51 +02:00
Juliano Leal Goncalves
d82b3b542f
🚚 Rename 'MissileDataStruct' struct to 'MissileData' ( #2803 )
...
* 🚚 Rename 'MissileDataStruct' struct to 'MissileData'
* 🚚 Rename 'MissileData' global array to 'MissilesData'
2021-09-06 12:59:43 +02:00
Anders Jenbo
9a6820493f
No missile golem
...
Simplify spawning golem, the golem will now spawn in the same tick
instead of next tick
2021-08-25 20:24:45 +02:00
qndel
3d92b6eea5
Rewrite manashield into not using a missile
2021-08-25 19:32:10 +02:00
qndel
d76158ca03
reflect without missile! ( #2659 )
2021-08-22 01:32:41 +02:00
staphen
c356db7d9f
Fix uninitialized variable exception raised in Visual Studio debugger
2021-08-13 18:19:12 +02:00
Anders Jenbo
c5e0966190
Clean up golem code
2021-08-13 03:59:29 +02:00
Anders Jenbo
fa7f3442e4
Fix loading monster missiles
2021-08-13 03:59:29 +02:00
Anders Jenbo
f289fbcec5
Remove dead missile code
2021-08-13 03:59:29 +02:00
Vladimir Olteanu
a437cb1af9
Fix MissileFileData arrays not getting properly filled
2021-08-13 00:07:46 +02:00
Anders Jenbo
ffc9b0e6a8
Apply clang-format
2021-08-12 00:22:30 +02:00
Vladimir Olteanu
b76e8c060b
Introduce MissileDataFlags
2021-08-12 00:19:09 +02:00
Vladimir Olteanu
4253ea7a39
Rename MisFileData to MissileFileData
2021-08-12 00:19:09 +02:00
Vladimir Olteanu
040ca7b1e9
Remove logic related to unused MFLAG_ALLOW_SPECIAL
2021-08-12 00:19:09 +02:00
Vladimir Olteanu
7482b23473
MissileSpriteData: move checks for hidden sprites to class members
2021-08-12 00:19:09 +02:00
Vladimir Olteanu
b5d6758295
Introduce AutofillArray
2021-08-12 00:19:09 +02:00
Vladimir Olteanu
3364a4e00c
Refactor MisFileData
...
MisFileData: make pinnedMem private
2021-08-12 00:19:09 +02:00
obligaron
5ed79c38ef
Introduce MissilePosition.StopMissile
2021-07-16 02:15:36 +02:00
Anders Jenbo
9ae908f947
Rename missile globals
2021-07-08 02:01:14 -07:00
obligaron
be53349c2d
Decouple missile movement from game logic ( #2322 )
2021-07-08 10:19:52 +02:00
Anders Jenbo
7e737cfa96
Merge remote-tracking branch 'refs/remotes/devilution/master'
2021-07-03 01:44:45 +02:00
obligaron
86e1d488e6
Draw Reflect Icon similiar to Manashield
2021-05-21 13:27:57 +02:00
obligaron
a3229741d1
🖌️ Refurbish tables in source code (clang-format off)
2021-04-25 23:48:25 +02:00
Anders Jenbo
b69d18f12d
🌐 Enable translation of all remaning strings
2021-04-25 21:32:41 +02:00
John Törnblom
e0dddf508a
Add automatically translated string literals ( #1694 )
2021-04-25 18:14:58 +02:00
Anders Jenbo
f004c78824
🧹 performance-unnecessary-value-param
2021-04-22 00:08:19 +02:00
Anders Jenbo
bb4e1960e7
🎨 modernize-use-nullptr
2021-04-19 16:02:05 +02:00
staphen
4faf09c2df
Consolidate logic for Mana Shield and player damage.
2021-04-18 21:12:16 +02:00
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
2021-04-16 01:04:54 +02:00
Anders Jenbo
af96de4038
♻️ Move a large part of enums to there respective headers
2021-04-08 19:20:55 +02:00
Gleb Mazovetskiy
1326df189a
Optimize layout of MissileData: sizeof 40 -> 32
2021-04-08 17:41:06 +02:00
Gleb Mazovetskiy
ff5d0c8512
Optimize layout of MisFileData: sizeof 341 -> 240
2021-04-08 17:41:06 +02:00
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
2021-04-06 15:21:25 +02:00
Anders Jenbo
630e507f63
🚚 Apply namespace
2021-04-06 15:21:25 +02:00
qndel
858c6ba3f2
fix order
2021-03-09 05:56:38 +01:00
Anders Jenbo
7cf40d3c7c
Clean up missile function names
2021-02-25 11:52:19 +01:00
Anders Jenbo
61729c1eb6
Clean up missile types
2021-02-25 09:56:10 +01:00
Anders Jenbo
ccb81d66e6
Correct properties for the Blodboil (Rage) spell
2021-02-21 01:15:45 +01:00
Anders Jenbo
adf5f8f504
Clean up hellfire related code
2021-01-31 13:37:42 +01:00
Anders Jenbo
0c96e32f19
Unify all defines, enums and structs
2021-01-08 20:53:06 +01:00
Anders Jenbo
6f8f4c3293
Unify another chunk of simple Hellfire code paths
2021-01-07 07:19:07 +01:00
Anders Jenbo
e609e170d0
Merge a large chunk of Hellfire the code paths
2021-01-06 08:07:20 +01:00
Anders Jenbo
2d6c1efeab
Merge branch 'master' of github.com:diasurgical/devilution
2020-10-12 10:46:28 +02:00
qndel
1371d5b118
fix compiling and apply enum
2020-10-12 01:07:26 +02:00
Anders Jenbo
b040c04a18
Merge branch 'master' of github.com:diasurgical/devilution into hellfire
2020-04-04 07:56:06 +02:00
Anders Jenbo
776ab10476
Merge branch 'master' of github.com:diasurgical/devilution
2020-03-29 23:40:05 +02:00
Anders Jenbo
0383f9abcd
Add documentation to more files
2020-03-02 02:29:28 +01:00
Anders Jenbo
3c276a3cd3
Add documentation
...
- Add file documentation to about 1/4 of the files in Source
- Copy over a lot of the documentation from the sanctuary/notes repo
- Standardise all the existing documentation
- Create a configuration for Doxygen
- Add more documentation (engine.cpp is now fully documented)
2020-03-01 22:18:00 +01:00