Commit Graph
859 Commits
Author SHA1 Message Date
ephphathaandAnders 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
Cesar Canassa 0ce0f5b7b4 ♻️ Remove _misource access from AddSpecArrow 2022-07-23 12:49:06 +02:00
Cesar Canassa f5af1fa49c ♻️ Remove _misource access from AddRuneExplosion 2022-07-23 12:48:06 +02:00
Cesar Canassa 71edcbed12 ♻️ Remove _misource access from AddWarp 2022-07-23 12:45:28 +02:00
Cesar Canassa 020ce5eb2b ♻️ Automatically dereference sourcePlayer on AddFlash 2022-07-23 03:00:33 +02:00
Cesar Canassa 98023a822e ♻️ Automatically dereference sourceX on MI_Arrow 2022-07-23 02:59:30 +02:00
Cesar Canassa 582e2b4e12 ♻️ Automatically dereference sourceX on MI_Firebolt 2022-07-23 02:58:43 +02:00
Cesar Canassa 2b19cae569 ♻️ Remove _misource access from AddBerserk 2022-07-22 16:22:45 +02:00
Cesar Canassa fcdab7f56f ✅ Add test for RotateBlockedMissile (#5069) 2022-07-20 22:53:33 +00:00
ephphatha 9e76cd4ab7 Use object pointer for pcursobj 2022-07-19 13:20:24 +02:00
ephphathaandAnders 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
Cesar Canassa 7db99c2a26 ♻️ Remove _misource access from AddReflection (#5053) 2022-07-18 15:28:49 +02:00
Cesar Canassa 2665aa61f3 PR feedback 2022-07-18 15:03:28 +02:00
Cesar Canassa 831796fcd4 ♻️ Remove _misource access from SpawnLightning 2022-07-18 15:03:28 +02:00
Cesar Canassa 28f12be8de PR feedback 2022-07-18 15:02:44 +02:00
Cesar Canassa 1f798bcec5 ♻️ Remove _misource access from AddLightningRune 2022-07-18 15:02:44 +02:00
Cesar Canassa 8f73844a3b ♻️ Remove _misource access from GuardianTryFireAt 2022-07-18 12:48:23 +02:00
Cesar Canassa 94e15b3a11 ♻️ Remove _misource access from AddTown 2022-07-18 08:31:49 +02:00
Cesar Canassa b415474cf5 ♻️ Remove _misource access from InitMissiles 2022-07-18 08:31:06 +02:00
Cesar Canassa 7fc08e183d ♻️ Remove _misource access from MoveMissilePos 2022-07-18 08:30:17 +02:00
Cesar Canassa ac583cbb2d ✨ Adds isSameSource Missile method (#5036) 2022-07-18 02:06:09 +02:00
Cesar Canassa c89b67a4d5 ♻️ Remove _misource access from MI_Arrow 2022-07-17 23:50:09 +02:00
Cesar Canassa 95589ebf94 ♻️ Remove _misource access from MI_Firebolt 2022-07-17 23:47:40 +02:00
Cesar Canassa aa6ea3907e ♻️ Adds Missile::SourcePlayer and Missile::SourceMonster (#4999) 2022-07-17 18:50:29 +02:00
Anders Jenbo d1189388f5 Use user by reference 2022-07-17 18:41:05 +02:00
Mikołaj Piróg 262fa9ac2d Rename MonsterData members (#5000) 2022-07-15 16:20:13 +02:00
Cesar Canassa ce349789cf ♻️ Refactor M_StartKill to receive a Monster reference (#4943) 2022-07-13 15:57:58 +02:00
ephphatha 1337ff6ea2 Add check if a monster potentially has leashed minions 2022-07-13 07:13:34 +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
Andrew James 593a9f3b4b Pull distinct points from VisionCrawlTable used by guardians (#4844) 2022-07-10 07:21:22 +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
ephphatha 7c54066f31 Use PickRandomlyAmong when choosing between two options 2022-07-10 02:37:33 +02:00
ephphatha bc0a058350 Invert FlipCoin 2022-07-10 02:37:33 +02:00
Gleb Mazovetskiy c8ddf7df65 Crawl: Move implementation from header to cpp 2022-07-09 11:29:31 +02:00
Cesar Canassa bb3fb36ddc ✨ Introduces FlipCoin() (#4908) 2022-07-07 20:57:03 +02:00
Vladimir Olteanu bed5bd9ec1 Eliminate CrawlTable 2022-07-07 18:55:34 +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
Cesar Canassa de971c6a8b ♻️ Refactor AddMonster to return a monster pointer (#4894) 2022-07-06 02:36:02 +02:00
Cesar Canassa 0d106beaf3 ♻️ Refactor M_StartHit to receive a Monster reference 2022-07-05 17:37:53 +02:00
Cesar Canassa 443f88b0f7 Rename MonsterTrapHit m parameter to monsterId 2022-07-05 17:37:53 +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
Cesar Canassa 4bb2f30657 ♻️ Refactor MonsterDeath to receive a Monster reference (#4887) 2022-07-04 17:31:14 +02:00
Cesar Canassa 76da2d14c9 Remove monsterId from M_GetKnockback (#4882) 2022-07-04 11:54:53 +02:00
Gleb Mazovetskiy eb8721885d Fix clang warnings
As seen in the Xbox NDK build.
2022-07-04 09:39:41 +01: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
Gleb Mazovetskiy 17f8cdddc4 Clean up GetSpellLevel
Remove the buggy `GetSpellLevel` implementation and use
`Player#GetSpellLevel` throughout instead.
2022-07-03 13:40:53 +01:00
Gleb Mazovetskiy 6949a6f418 Monster: Remove MType/MData pointers
These pointers are redundant, replaces them with methods.
2022-07-03 13:21:11 +01:00
Anders Jenbo ab55877adc Take player by reference in UseMana 2022-07-03 08:03:02 +02:00