Eric Robinson
e5e6804e49
Add Monster hasNoLife helper ( #8304 )
2025-12-03 18:48:20 -05:00
Eric Robinson
7e8173e6ff
Add Player hasNoLife helper ( #8302 )
2025-12-03 05:12:42 +00:00
Gleb Mazovetskiy
1bbe8bfe08
SDL3: Even more migration
2025-10-09 01:28:37 +01:00
Anders Jenbo
1c76897f2c
Apply simple const rules using clang-tidy
2025-08-16 01:21:36 +02:00
Nick Wicked
120993c9a9
Fix Automap movement being hardcoded to right stick on gamepad ( #7921 )
2025-08-14 23:19:08 +02:00
Anders Jenbo
2d710174b2
Extract Hellfire table text for translation
2025-08-14 02:35:16 +02:00
Eric Robinson
8eddf55c3f
Stores - IsPlayerInStore() ( #7843 )
2025-03-15 21:18:28 +00:00
Gleb Mazovetskiy
3bb1d685af
Extract current input mode into its own library
...
Removes a transitive dependency on the entire plrctrl from options.
2025-01-22 23:14:45 +00:00
Eric Robinson
e90855b3c4
Rename stores.cpp global variables ( #7425 )
2024-09-21 01:08:56 +02:00
Anders Jenbo
e949f41d83
Clean up selection type
2024-09-15 09:35:25 -04:00
obligaron
fae6b3d817
Change Player::getId() and MyPlayerId to uint8_t
2023-12-05 19:05:08 +01:00
obligaron
22ec684671
Fix some MSVC warnings
2023-12-02 12:57:34 +01:00
ephphatha
3b458376bb
Use a pointer to a player instance instead of network id for cursor hovering
2023-11-09 17:40:50 +01:00
KPhoenix
a1fbf5253f
enum talk_id -> enum class TalkID
2023-02-09 13:04:01 +01:00
Anders Jenbo
a29fc3a074
Correct casing for Player::isWalking()
2023-01-12 09:42:49 +01:00
staphen
e67e4934cc
Add padmapper for gamepad customization
2022-10-17 01:01:21 +02:00
obligaron
c11463b615
Use cursor position for MouseActionType::OperateObject
2022-10-11 22:24:48 +02:00
Anders Jenbo
7c9111ddb0
Correct casing for isDoor()
2022-08-04 01:37:03 +02:00
ephphatha
9e76cd4ab7
Use object pointer for pcursobj
2022-07-19 13:20:24 +02:00
ephphatha
3a7fd8da2d
Only send and consume object location for location based messages
...
Co-authored-by: Anders Jenbo <anders@jenbo.dk >
2022-07-19 12:50:00 +02:00
Mikołaj Piróg
15989609a8
Members' name changes and comments in Monster struct ( #4861 )
2022-07-06 10:21:22 +02:00
k-bar
26de74f4a2
AnimationInfo class correct style ( #4870 )
...
* AnimationInfo class correct case-style for private members
clang-tidy warnings:
readability-identifier-naming invalid case style for private member
* AnimationInfo class correct case-style for members
clang-tidy warnings:
readability-identifier-naming invalid case style for member
* AnimationInfo class correct case-style for methods
clang-tidy warnings:
readability-identifier-naming invalid case style for method
* AnimationInfo class use nodiscard
clang-tidy warnings:
modernize-use-nodiscard function should be marked [[nodiscard]]
2022-07-03 16:55:37 +02:00
obligaron
19749420b5
Introduce Player::isOnActiveLevel
2022-06-18 17:05:30 +02:00
qndel
354e329644
Players[MyPlayerId] -> MyPlayer
2022-05-31 05:35:52 +02:00
obligaron
2b0b944afb
Manage friendly mode per player and sync state between clients
2022-05-20 22:46:48 +02:00
Anders Jenbo
c667e69554
[gamepad] Fix repeated spell casting getting stuck if there is no target
2022-04-13 04:52:49 +02:00
Anders Jenbo
66d7a3c222
[gamepad] Reuse repeat logic from mouse
2022-04-13 02:13:31 +02:00
obligaron
05dd2f9f90
Fix flash infinite casting: Add check for _pInvincible to RepeatMouseAction
2022-02-17 19:56:29 +01:00
qndel
0ccdf940f7
fix bounds checks ( #3237 )
2021-10-24 17:20:04 +02:00
qndel
f8cda02456
apply bounds check function
2021-10-12 01:18:28 +02:00
obligaron
0818c55b88
Holding mouse when shift is held shouldn't lock to a target (Spells)
2021-09-27 11:58:51 +02:00
Juliano Leal Goncalves
01823e1324
♻️ Replace 'cursmx' and 'cursmy' globals with single 'cursPosition'
2021-08-30 06:45:51 +02:00
Juliano Leal Goncalves
bbf529c65a
🚚 Rename 'PlayerStruct' to 'Player'
2021-08-30 06:44:18 +02:00
obligaron
b7cdf1eb59
Fix floating Dialogs (Walking while in store)
2021-08-07 14:20:27 +02:00
Anders Jenbo
ab8afa7cd7
Fix edge cases in mouse action tracking code ( #2452 )
...
Fixes #2431
Also:
- Track spell targets
- Merge repeat walk in to the new repeat action code
- Avoid time based repeats (use action frame instead)
2021-07-25 03:57:42 +00:00
Anders Jenbo
4260d4cfcc
Add OperateObject to MouseAction
...
For continiously operate fountains etc
Fixes #1133
2021-07-19 02:47:58 +02:00
Anders Jenbo
f4897c3139
Clean up MouseAction code
2021-07-18 05:16:02 +02:00
obligaron
70db8456ba
Remove _pwtype and replace it with UsesRangedWeapon
2021-07-17 17:38:28 +02:00
Anders Jenbo
3ffedb7a69
💄 Apply code style to src
2021-07-17 16:57:21 +02:00
Anders Jenbo
b168773cc4
🚨 Fix clang warnings
2021-07-17 16:57:21 +02:00
FluffyQuack
ba60907853
Hold mouse button to keep attacking (Diablo 2-style) ( #2349 )
2021-07-16 15:01:01 +01:00
Anders Jenbo
96bf75b502
Rename player globals
2021-07-08 02:01:14 -07:00
Anders Jenbo
a7c7fa0030
Fully apply clang-tidy/format to all files
2021-07-03 16:41:43 -07:00
Anders Jenbo
22b632f04a
♻️ Clean up implicit bool conversions
2021-06-26 08:57:59 -07:00
Gleb Mazovetskiy
f9f301b054
🚚 engine.h: Extract Point, Direction, clamp
...
`engine.h` is getting quite bloated. Moves this code to their own files.
2021-06-21 01:36:20 -07:00
Trihedraf
f2186d4d10
Change Multiplier if RunInTown Enabled to Fix Stuttering.
2021-05-19 13:47:41 +02:00
obligaron
1c77a22735
Fix movement with hold mouse button and stand animation
2021-05-17 21:12:32 +02:00
obligaron
7b16fafbff
track_process: Player by reference
2021-05-17 21:12:32 +02:00
obligaron
4de25cd2ea
Introduce PlayerStruct.IsWalking()
2021-05-16 21:24:36 +02:00
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
2021-05-13 01:24:26 +02:00