staphen
8b6b898493
Defer d-pad inputs to movement handlers
2023-04-21 02:45:10 +02:00
obligaron
b916c8e428
Introduce Open/Close/ToggleCharPanel
2023-04-14 02:40:17 +02:00
obligaron
c4388b0d41
Remove unused pnum from UseInvItem
2023-04-14 02:40:17 +02:00
obligaron
1522dc7031
Multiplayer: Add arena potions
2023-04-13 21:20:53 +02:00
staphen
d2bc7c10ba
Fix stand ground for gamepad controls
2023-04-02 18:31:16 +02:00
ephphatha
94c646ef8f
Use rectangles for inventory/belt hit areas
2023-03-25 14:22:57 +01:00
obligaron
2296bf5625
Use StashStruct::EmptyCell instead for empty stash item check
2023-03-21 14:15:00 -04:00
Gleb Mazovetskiy
ebcd6b222d
Optimize SpellData size: 40 bytes -> 24
2023-02-10 10:51:06 +00:00
KPhoenix
a1fbf5253f
enum talk_id -> enum class TalkID
2023-02-09 13:04:01 +01:00
Gleb Mazovetskiy
b61dac853b
Add GetSpellData(SpellID)
2023-02-05 12:12:48 +00:00
KPhoenix
d813f13700
enum spell_id -> enum class SpellID
2023-02-05 10:24:58 +00:00
Gleb Mazovetskiy
1788d2f8ec
Remove miniwin
...
Event handling code moved to `engine/events.{hpp,cpp}`.
2023-02-01 16:06:57 +00:00
Eric Robinson
ef3a57b7d9
enum spell_type -> enum class SpellType (#5674 )
2023-01-28 22:25:37 +01:00
KPhoenix
8db521727d
enum missile_id -> enum class MissileID
...
Changes `enum missile_id` to `enum class MissileID`
2023-01-18 17:17:25 +00:00
Anders Jenbo
a29fc3a074
Correct casing for Player::isWalking()
2023-01-12 09:42:49 +01:00
Gleb Mazovetskiy
46e755f680
Simplify spell icon handling
...
Hide the internals of spell icon rendering behind simple functions.
2022-11-22 02:37:19 +01:00
staphen
e1167350a2
Clean up handling for gamepad IGNORE/NONE buttons
2022-11-02 07:41:30 +00:00
staphen
6a565d3755
Further improve simulated mouse interaction
2022-10-31 10:29:37 +01:00
staphen
21bd760bfa
Bypass CMD_PUTITEM when triggering CMD_OPENHIVE or CMD_OPENGRAVE
2022-10-25 07:14:03 +02:00
obligaron
ba65d5fbff
SyncPutItem: Always use passed coordinates for item position
2022-10-23 10:09:54 +02:00
staphen
e67e4934cc
Add padmapper for gamepad customization
2022-10-17 01:01:21 +02:00
Gleb Mazovetskiy
759ca7f055
WorldTileRectangle/Size
...
Adds a custom sized type for the world tile rectagle.
This allows us to better express intent.
It also allows us to make certain globals smaller, e.g. `THEME_LOC`.
2022-10-16 03:53:26 +01:00
Gleb Mazovetskiy
12c7dab3f3
Define gamepad type for SDL1 handhelds
2022-10-11 02:04:58 +01:00
staphen
8b6db3a678
Get rid of panelstr, pnumlines, and ClearPanel()
2022-10-02 08:51:24 +02:00
staphen
c90d884597
Fix skipping intro using gamepad
2022-09-08 06:11:19 +02:00
Anders Jenbo
872456ae5d
Use size_t for a select few pnum variables
2022-08-26 13:22:04 +09:00
Gleb Mazovetskiy
188dc79f6e
Make Players a vector
2022-08-26 13:22:04 +09:00
Nicholas Calaway
cf33230293
#3380 Use appropriate terms for mouse/gamepad/touch #5234 ( #5235 )
2022-08-17 00:36:58 +02:00
ephphatha
0ce76a3f13
Add Object lookup method to mimic map::at()
2022-07-28 12:47:13 +02:00
ephphatha and Anders Jenbo
975eb3674b
Add helper to check if a monster belongs to a player
...
Co-authored-by: Anders Jenbo <[email protected] >
2022-07-24 16:08:09 +02:00
Anders Jenbo
046f826931
[gamepad/touch] Fix targeting berserked
2022-07-24 03:02:15 +02:00
ephphatha
9e76cd4ab7
Use object pointer for pcursobj
2022-07-19 13:20:24 +02:00
ephphatha and Anders Jenbo
3a7fd8da2d
Only send and consume object location for location based messages
...
Co-authored-by: Anders Jenbo <[email protected] >
2022-07-19 12:50:00 +02:00
Anders Jenbo
d1189388f5
Use user by reference
2022-07-17 18:41:05 +02:00
Gleb Mazovetskiy
33ac2cca8e
♻️ Make Monster counters size_t
2022-07-12 03:04:53 +01:00
Nicholas Calaway
67aaced610
Fix bad interaction between hold to attack and quick cast ( #4965 )
2022-07-11 21:26:29 +00:00
Anders Jenbo
3ae834148a
Split event handeling from general miniwin features
2022-07-10 21:13:39 +02:00
Anders Jenbo
2d21fc372e
Remove more miniwin code
2022-07-10 21:13:39 +02:00
Anders Jenbo
6a8fd04067
Use player by references ( #4938 )
2022-07-10 11:40:04 +02:00
Gleb Mazovetskiy
197e1180b2
Add StrCat and StrAppend
...
Adds simple string / integer concatenation functions.
Many of the uses of `fmt::format` are simply concatenation
of a few strings and integers.
`StrCat` is an easier-to-read alternative to such uses of `fmt`.
2022-07-10 06:14:58 +02:00
Cesar Canassa
e538acb248
📝 Fixes Doxygen warnings (#4904 )
2022-07-07 12:51:24 +02:00
Mikołaj Piróg
15989609a8
Members' name changes and comments in Monster struct ( #4861 )
2022-07-06 10:21:22 +02:00
Mikołaj Piróg
dda0b96ea5
Remove #defines in player.h and add constexpr where applicable ( #4896 )
...
* Change defines to constexpr int in player.h
* Add const or constexpr to player.h/cpp where applicable
* Update tests with changed names of player constatns
* remove unecessary variable
2022-07-05 17:25:23 +02:00
ephphatha
c68fcf3cb1
Apply MethodCase config to Rectangle::Contains
...
Also included Circle and VirtualButton classes due to the shared use.
2022-06-24 00:39:55 +02:00
Anders Jenbo
6d56058708
Move level generation to subfolder
2022-06-23 09:21:58 +02:00
ephphatha
3af11ad355
Use the same function when checking and actually dropping an item
2022-06-21 18:53:19 +02:00
Gleb Mazovetskiy
01ad1814ea
Make path finding index-based
...
Reduces the size of the `PathNodes` array from 28 KiB to just 8 KiB.
Also reduces the size of `pnode_tblptr` from `300 * sizeof(void *)` to
`300 * 2` bytes.
2022-06-20 10:49:16 +01:00
Andrew James
0add7a8af6
Define sizes using Size type in control.cpp/stash.cpp ( #4737 )
...
* Use appropriate types for size constants in control.cpp
* Declare constexpr value for iterating over the cells in a stash grid
* Use appropriate type for UIRectangle dimensions
2022-06-18 15:25:52 +02:00
Gleb Mazovetskiy
779ccaca17
Overhaul translation fetching
...
1. Do not modify the map after loading. Instead, return string views
(guaranteed to be null-terminated) from look up functions and return
the key directly if not found.
2. Use an `unorded_map` instead of `map` where available (C++20).
Saves a bit of RAM (~50 KiB) and improves lookup performance.
2022-06-14 12:46:36 +01:00
staphen
128f5098e0
Check player hitpoints in InGameMenu()
2022-06-09 11:13:07 +02:00