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
Anders Jenbo
8a7ec56d3a
Player by reference part 2
...
This mostly change player to be by reference instead of by index.
But additionally it does stript checks for gold in the belt, move some
value types to the initialization and short circute a few functiongs.
5 years ago
obligaron
da7ded3170
Integrate GetAnimationWidth in LoadPlrGFX (only callside)
5 years ago
obligaron
d97131349e
Unify player_graphic memory handling
5 years ago
obligaron
61ba5009ac
Convert to CelSprite
5 years ago
obligaron
3067aeacb8
Remove PlayerStruct._pXYZWidth and replace it with calls to GetAnimationWidth
5 years ago
obligaron
d11ed50585
NewPlrAnim now also loads the graphics if needed
5 years ago
obligaron
c424f601ec
Change LoadPlrGFX from pnum to PlayerStruct
5 years ago
obligaron
3a6e631261
Remove memset for PlayerStruct
5 years ago
obligaron
a1e24b33fc
Default values for PlayerStruct
5 years ago
Juliano Leal Goncalves
b3ec79af4f
Leverage 'Point' in Lighting and Player functions ( #2048 )
5 years ago
Anders Jenbo
6ce8f13751
Apply clang-tidy to more code and do some related cleanups
5 years ago
Juliano Leal Goncalves
d55cd99dd5
🚚 Rename 'direction' enum to 'Direction'
5 years ago
Juliano Leal Goncalves
5350250a76
🚚 Rename speech functions to 'Say' variations
5 years ago
Juliano Leal Goncalves
8c620ce29e
♻️ Extract 'HeroSpeech' enum class for hero sounds instead of using raw `int`s
5 years ago
obligaron
4de25cd2ea
Introduce PlayerStruct.IsWalking()
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
obligaron
7ed009ecb7
Remove PlayerStruct.actionFrame and enable ADL for Walking/Run ( #1939 )
...
- Remove (unused) actionFrame for PM_DEATH
- Remove actionFrame for PM_SPELL
- Remove actionFrame for PM_WALK
- Remove actionFrame
5 years ago
obligaron
e3e3d02da7
Correct Doxygen comments
5 years ago
Anders Jenbo
6321bf04d5
♻️ Pass player to towner by reference instead of index
5 years ago
Anders Jenbo
f579b2f287
Handle cel/cl2 files as byte arrays
5 years ago
obligaron
b5954eb34b
Change AnimationDistributionParams to AnimationDistributionFlags
5 years ago
Juliano Goncalves
6e3c33ad23
✨ Add key to stop walking and cancel pending actions
5 years ago
Juliano Leal Goncalves
39736e2538
♻️ Pass 'PlayerStruct' pointer to 'ClrPlrPath'
5 years ago
obligaron
ff995adc2b
Move ProcessPlayerAnimation to AnimationInfo
5 years ago
obligaron
16b3b38908
Move NewPlrAnim logic to AnimationInfo
...
Adjust SetNewAnimation-Parameter Names to Class Member
Adjust NewPlrAnim-Parameter Names to SetNewAnimation-Parameter Names
5 years ago
obligaron
3b87433fc2
Move GetFrameToUseForPlayerRendering to AnimationInfo
5 years ago
obligaron
0b5183f63e
Introduce AnimationInfo
...
Update AnimationInfo.DelayLen comment
5 years ago
obligaron
a3229741d1
🖌️ Refurbish tables in source code (clang-format off)
5 years ago
obligaron
239a43cc1c
Remove "AnimWidth2" expect for missiles ( #1680 )
5 years ago
Jmgr
c33182d6de
Modernize deprecated headers
5 years ago
Anders Jenbo
efbe8a8338
♻️ add possition points to monsters
5 years ago
Anders Jenbo
7912e510f0
🎨 Clean up overuse of SDL types
5 years ago
Anders Jenbo
275404029e
♻️ Cleanup player temp variables
5 years ago
obligaron
b1ee8c00b3
change AnimationDistributionFlags to enum class and rename to AnimationDistributionParams
5 years ago
obligaron
1930b0f1a6
rename enum AnimationFlags to AnimationDistributionFlags
5 years ago
obligaron
e0aec0b153
Rename _pAnimRelevantAnimationFramesForDistributen to _pAnimRelevantAnimationFramesForDistributing
5 years ago
obligaron
613c54496d
player.h: change comment styles (doxygen)
5 years ago
obligaron
fa6bf63dd3
Introduce AnimationFlags::SkipsDelayOfLastFrame and handle it
5 years ago
obligaron
c9b506d334
Introduce AnimationFlags::ProcessAnimationPending and stop passing skipped Frames cause of ProcessAnimationPending as skipped Frames
5 years ago
obligaron
f908f47751
Move the original logic to NewPlrAnim and introduce _pAnimGameTickModifier and _pAnimRelevantAnimationFramesForDistributen
5 years ago
Anders Jenbo
e4cfad3196
♻️ Use points instead of individual fileds for player structure
5 years ago
Anders Jenbo
69a70b77f8
🚚 Move enum_traits.h to utils
5 years ago
Anders Jenbo
97d7171123
🔥 Get rid of _ptargx/y
5 years ago
qndel
ec74917cb4
class sounds cleanup
5 years ago
FluffyQuack
4f417d2fdc
Fix to one desync related to player movement (queuing moving after attacking).
5 years ago
Anders Jenbo
a9874d65c1
♻️ Remove SDL types from player header
5 years ago
Anders Jenbo
373f28736f
🎨 Acceptable parts of modernize-*
5 years ago
Anders Jenbo
c89bd9c001
🚨 Fix remaning warnings for clang and gcc
5 years ago