Commit graph

543 commits

Author SHA1 Message Date
obligaron
b94e599f5e ADL: Advance skipped Frames in SetNewAnimation and remove logic from PM_XYZ 2021-05-09 09:53:53 +02:00
staphen
3e5e5b2696 Synchronize SFileCloseFile() access 2021-05-08 04:01:07 +02:00
Anders Jenbo
b0f2d5b5d2 🐛 Fix all monsters wanting to talk 2021-05-08 00:41:08 +02:00
obligaron
aba3bb42fa Fix Bard incorrect number of sword animation frames 2021-05-07 09:08:24 +02:00
Gleb Mazovetskiy
b6adc10af0 🐞 Fix return value in PlayerStruct::HasItem 2021-05-07 01:02:30 +02:00
Anders Jenbo
6321bf04d5 ♻️Pass player to towner by reference instead of index 2021-05-07 00:29:46 +02:00
Anders Jenbo
f579b2f287 Handle cel/cl2 files as byte arrays 2021-05-06 13:17:54 +02:00
obligaron
cb7819a75c Introduce AnimationDistributionFlags::RepeatedAction 2021-05-06 07:52:17 +02:00
obligaron
b5954eb34b Change AnimationDistributionParams to AnimationDistributionFlags 2021-05-06 07:52:17 +02:00
obligaron
7740a66dc4 Set correct Hit-Frame for Spell Animation 2021-05-06 07:52:17 +02:00
Juliano Goncalves
6e3c33ad23 Add key to stop walking and cancel pending actions 2021-05-05 00:38:58 +02:00
Juliano Leal Goncalves
39736e2538 ♻️ Pass 'PlayerStruct' pointer to 'ClrPlrPath' 2021-05-05 00:38:58 +02:00
Gleb Mazovetskiy
0bfc147b78
🧹 Remove DiabloAllocPtr and friends (#1824) 2021-05-02 07:06:18 +02:00
obligaron
9cfbea4c8b ADL: Fix calculation of fast/faster/fastest combination (Bard) 2021-04-30 20:00:10 +02:00
Anders Jenbo
5745f099ba ♻️Use Point for positions in msg.cpp functions 2021-04-29 21:36:31 +02:00
obligaron
ff995adc2b Move ProcessPlayerAnimation to AnimationInfo 2021-04-29 04:33:51 +02:00
obligaron
16b3b38908 Move NewPlrAnim logic to AnimationInfo
Adjust SetNewAnimation-Parameter Names to Class Member

Adjust NewPlrAnim-Parameter Names to SetNewAnimation-Parameter Names
2021-04-29 04:33:51 +02:00
obligaron
3b87433fc2 Move GetFrameToUseForPlayerRendering to AnimationInfo 2021-04-29 04:33:51 +02:00
obligaron
1de46a8495 Rename member variables 2021-04-29 04:33:51 +02:00
obligaron
0b5183f63e Introduce AnimationInfo
Update AnimationInfo.DelayLen comment
2021-04-29 04:33:51 +02:00
Vladimir Olteanu
2a3cf98850 Slight cleanup of dead{.h,.cpp} 2021-04-28 12:56:00 +02:00
qndel
bdf4b848a9
🐛 Fix queuing operating object when clicking during attack (#1678) 2021-04-28 04:07:09 +02:00
obligaron
a2a54dec34 Remove AnimLenFromClass 2021-04-26 19:56:34 +02:00
thebigMuh
7ce3957a8a Split of QoL features into separate files 2021-04-26 19:31:25 +02:00
John Törnblom
e0dddf508a
Add automatically translated string literals (#1694) 2021-04-25 18:14:58 +02:00
obligaron
239a43cc1c
Remove "AnimWidth2" expect for missiles (#1680) 2021-04-25 13:32:33 +02:00
Jmgr
c33182d6de Modernize deprecated headers 2021-04-25 02:50:31 +02:00
Jmgr
1b7e0d2cb3 Migrate existing log entries 2021-04-25 02:39:42 +02:00
Anders Jenbo
f77c52941a ♻️Make GetDirection take Points instead of ints 2021-04-25 02:25:52 +02:00
Anders Jenbo
2bd13451a1 ♻️Apply point positioning to all remaning entities 2021-04-25 01:25:48 +02:00
Anders Jenbo
efbe8a8338 ♻️ add possition points to monsters 2021-04-24 20:29:52 +02:00
Anders Jenbo
7912e510f0 🎨 Clean up overuse of SDL types 2021-04-24 17:07:07 +02:00
Anders Jenbo
275404029e ♻️Cleanup player temp variables 2021-04-24 17:07:07 +02:00
obligaron
b1ee8c00b3 change AnimationDistributionFlags to enum class and rename to AnimationDistributionParams 2021-04-24 10:00:07 +02:00
obligaron
ab28255c68 temporary: use normal animation logic for walk 2021-04-24 10:00:07 +02:00
obligaron
93d487d3ed move comments to own line 2021-04-24 10:00:07 +02:00
obligaron
1930b0f1a6 rename enum AnimationFlags to AnimationDistributionFlags 2021-04-24 10:00:07 +02:00
obligaron
2f2e48abf5 check the result of &-operator for enum flag explicitly 2021-04-24 10:00:07 +02:00
obligaron
e0aec0b153 Rename _pAnimRelevantAnimationFramesForDistributen to _pAnimRelevantAnimationFramesForDistributing 2021-04-24 10:00:07 +02:00
obligaron
9834e4849b player.cpp: Rename absolutAnimationFrame to absoluteAnimationFrame 2021-04-24 10:00:07 +02:00
obligaron
fa6bf63dd3 Introduce AnimationFlags::SkipsDelayOfLastFrame and handle it 2021-04-24 10:00:07 +02:00
obligaron
4fc7a4c8aa Change Logic from Frames to GameTicks 2021-04-24 10:00:07 +02:00
obligaron
c9b506d334 Introduce AnimationFlags::ProcessAnimationPending and stop passing skipped Frames cause of ProcessAnimationPending as skipped Frames 2021-04-24 10:00:07 +02:00
obligaron
f908f47751 Move the original logic to NewPlrAnim and introduce _pAnimGameTickModifier and _pAnimRelevantAnimationFramesForDistributen 2021-04-24 10:00:07 +02:00
Anders Jenbo
e4cfad3196 ♻️Use points instead of individual fileds for player structure 2021-04-24 04:46:08 +02:00
Gleb Mazovetskiy
00bc7cb302 🧹 GetPlrGFXSize: unordered_set -> direct test
The use of `unordered_set` here is a bit gratuitous and doesn't do much
for readability.
2021-04-24 03:04:35 +02:00
qndel
118d480be7
🐛 Fix loading monk block animations 2021-04-24 01:26:00 +02:00
Anders Jenbo
d99522b9a5 ♻️ Clean up direction related code 2021-04-23 17:39:18 +02:00
Anders Jenbo
a32ac83090 🎨 cleanup trivial trype comparisons 2021-04-23 02:48:25 +02:00
Anders Jenbo
1e3ed903be 🎨 strip redundant else 2021-04-22 00:39:48 +02:00