Gleb Mazovetskiy
74755c8be7
Remove utils/stdcompat/cstddef.hpp
3 years ago
obligaron
578ce01432
Introduce Towner/Player/Object/Item/Monster::currentSprite/getRenderingOffset
3 years ago
obligaron
aa354849ee
Fix stone curse shows the wrong animation & infinite petrify
3 years ago
Eric Robinson
81e3c7abaa
Remove fixed bugfix comments, apply golem fix
3 years ago
Gleb Mazovetskiy
e67ea9b006
Make `MissilesData` const
...
Instead of temporarily modifying `MissileData` around certain calls,
pass the arguments from the outside.
3 years ago
Eric Robinson
30c1991039
`enum _mai_id` -> `enum class MonsterAIID` ( #5683 )
3 years ago
Anders Jenbo
c99f7cf644
Floating numbers ( #5639 )
...
Co-authored-by: qndel <stefan551@o2.pl>
Co-authored-by: Stephen C. Wills <staphen@gmail.com>
3 years ago
KPhoenix
8db521727d
`enum missile_id` -> `enum class MissileID`
...
Changes `enum missile_id` to `enum class MissileID`
3 years ago
KPhoenix
a22389613d
Remove No Monster Heal from Fire Arrows
3 years ago
obligaron
d2d96f988c
Make TalktoMonster multiplayer compatible
3 years ago
obligaron
5f63060c28
Add FindUniqueMonster
3 years ago
Gleb Mazovetskiy
6dca019de2
Use `function_ref` instead of `function`
...
`function_ref` is a lightweight function pointer,
whereas `std::function` always involves a heap allocation.
3 years ago
Gleb Mazovetskiy
d1e9f51c68
monster.{h,cpp}: Minor refactor
...
1. Extract some common code into functions.
2. Avoid some overly long lines.
4 years ago
Mikołaj Piróg
4cff046ba9
Replace toHitSpecial member with a function & fix wrong arguments being passed ( #5337 )
4 years ago
Mikołaj Piróg
5e340d3261
Replace level member with a member function in monster ( #5336 )
4 years ago
Mikołaj Piróg
32b3333bfb
Exp overflow fix ( #5070 )
4 years ago
Gleb Mazovetskiy
4cf0053ece
Set underlying type for all the enums
...
Reduces rg99 binary size by 3 KiB.
4 years ago
staphen
f9e01f25c4
Consistently send network messages when monsters are damaged
4 years ago
Gleb Mazovetskiy
961866e1c4
CLX: A new graphics format
...
The format is almost identical to CL2, except it uses the frame header
to store frame width and height instead of 5 32-line offsets.
This means we always have access to frame dimensions, so we can use it
as an on-disk format for our graphics as well.
Additionally, we may be able to optimize the rendering even more
in the future now that we have guaranteed knowledge of frame dimensions.
4 years ago
Cesar Canassa
1bdee4523b
✨ Adds ignoreMovingMonsters to MonsterAtPosition ( #5118 )
4 years ago
ephphatha
9309f2fe4f
Add enum to represent monster sound effects
4 years ago
Stephen C. Wills
e364b7488c
HitMonster() cleanup ( #5147 )
4 years ago
Cesar Canassa
75756c518f
♻️ Send the monster reference to the monster AI functions ( #5113 )
4 years ago
ephphatha
975eb3674b
Add helper to check if a monster belongs to a player
...
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
Andrew James
2786a65e7b
Tidy up ActivateSkeleton and take monster by reference ( #5080 )
...
* Take reference in OperateSarcophagus
* Use monster reference instead of pointer in ActivateSkeleton
* Clean up ActivateSkeleton
4 years ago
Cesar Canassa
a0cd65e082
♻️ Remove monsterId from M_SyncStartKill
4 years ago
Anders Jenbo
d1189388f5
Use user by reference
4 years ago
Anders Jenbo
16b65120ea
Clean up LevelMonsterTypes related code
4 years ago
Gleb Mazovetskiy
7ad0ec925f
Reduce sizes of Monster (goal)Vars
...
sizeof(Monster): 168 -> 144
4 years ago
Mikołaj Piróg
262fa9ac2d
Rename MonsterData members ( #5000 )
4 years ago
Mikołaj Piróg
c38db60d0b
Remove monster name member from monster struct ( #4986 )
4 years ago
Cesar Canassa
ce349789cf
♻️ Refactor M_StartKill to receive a Monster reference ( #4943 )
4 years ago
Cesar Canassa
2c558a7aa0
♻️ Adds distanceToEnemy method
4 years ago
Andrew James
d9d1385f6c
Take const reference in DirOK ( #4985 )
4 years ago
ephphatha
1337ff6ea2
Add check if a monster potentially has leashed minions
4 years ago
ephphatha
b60bdf8b9b
Unset leader of minions when the leader dies
4 years ago
ephphatha
4fef842b0b
Remove use of ID/index from PlaceGroup
...
use getId helper for leader id
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
ephphatha
1e0f2c149c
Add getLeader helper for monsters in a pack
4 years ago
Gleb Mazovetskiy
33ac2cca8e
♻️ Make Monster counters `size_t`
4 years ago
Anders Jenbo
38113c0ad8
Convert monster_goal in to a scoped enum
4 years ago
Anders Jenbo
0312bae93f
Remove more miniwin code
4 years ago
Cesar Canassa
4d5aa90d77
♻️ Refactor M_WalkDir
...
- 🔥 Removed DumbWalk
- 🚚 Renames M_WalkDir to Walk
This integrates the DirOK check into M_WalkDir itself, that makes the DumbWalk function useless and most places that were calling DirOK before M_WalkDir can now be simplified.
4 years ago
Mikołaj Piróg
15989609a8
Members' name changes and comments in Monster struct ( #4861 )
4 years ago
Cesar Canassa
de971c6a8b
♻️ Refactor AddMonster to return a monster pointer ( #4894 )
4 years ago
Cesar Canassa
0d106beaf3
♻️ Refactor M_StartHit to receive a Monster reference
4 years ago
Cesar Canassa
4bb2f30657
♻️ Refactor MonsterDeath to receive a Monster reference ( #4887 )
4 years ago
Cesar Canassa
76da2d14c9
Remove monsterId from M_GetKnockback ( #4882 )
4 years ago
ephphatha
2da2ea7b03
Take monster reference in M_ClearSquares
4 years ago
Cesar Canassa
eb2740c7b6
♻️ change M_WalkDir to receive a Monster reference ( #4875 )
4 years ago
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]]
4 years ago