Anders Jenbo
9c4e34f988
Player by reference
5 years ago
Anders Jenbo
8ba3bbb6a4
Have PosOkPlayer take PlayerStruct as input ( #2430 )
5 years ago
obligaron
d63fcded76
Refactor PlaceGroup ( #2425 )
...
* Rename MonstPlace -> CanPlaceMonster
* Refactor custom hitpoints and armorclass out of mUnqAttr
* Introduce enum UniqueMonsterPack
5 years ago
Anders Jenbo
62986869ab
Make GroupUnity take MonsterStruct
5 years ago
obligaron
20de9746eb
GroupUnity: Remove unused code for minions that are uniques themself
5 years ago
obligaron
91c8503ea5
Rename leaderflag to leaderRelation and MonsterRelation to LeaderRelation
5 years ago
obligaron
a677a61f13
Refactor GroupUnity
5 years ago
obligaron
a61d33ae02
GroupUnity: Revert changes from commit a44781bd73 Fix bounds checks in monster code
5 years ago
Vladimir Olteanu
d7a4e20485
Fix monster sync on kill
...
Fixes https://github.com/diasurgical/devilutionX/issues/2412
5 years ago
Anders Jenbo
0889780923
Remove more usage of miniwin types
5 years ago
Anders Jenbo
753b5698f7
Remove unconventional assert() implementations
5 years ago
ephphatha
a8ed1998d1
Use Point in path_ functions that reference position
...
In cases like path_get_h_cost this allows simplifying logic where Point provides functions for the intended behaviour in a much simpler to understand package.
This also makes it clearer which functions are const/don't modify the node and which potentially have side effects.
5 years ago
Anders Jenbo
b591824182
💚 Fix NOSOUND build
5 years ago
Anders Jenbo
78124fb389
Add GolemHoldingCell
5 years ago
Anders Jenbo
4d59c248ea
Remove unused return from SpawnSkeleton
5 years ago
Anders Jenbo
9c0760e780
♻️ Clean up various checks in monster logic
5 years ago
Anders Jenbo
2d4da488f0
Split path test functions
5 years ago
ephphatha
190025e79f
Use bound parameters for pathfinding functions operating on entities
5 years ago
ephphatha
488ee03f53
Use bound functions for LineClear test function pointer
5 years ago
Anders Jenbo
4e82c70fcb
Make MonsterIsTileAccessible aware if monsters can open doors or not
5 years ago
FluffyQuack
ba60907853
Hold mouse button to keep attacking (Diablo 2-style) ( #2349 )
5 years ago
Anders Jenbo
e82d103465
🐛 Fix bounds checks in monster code
5 years ago
Anders Jenbo
a089692850
💄 Introduce MonsterRelation enum
5 years ago
Anders Jenbo
77b72da276
♻️ Use monster by reference when possible
5 years ago
FluffyQuack
c4a96bc829
👑 Fix to bug that made spawned monsters overwrite alive ones (cause was monsters not being properly deleted)
5 years ago
Anders Jenbo
a709790c82
Document a few functions
5 years ago
Anders Jenbo
43aec8cecc
Clean up AiDelay
5 years ago
Anders Jenbo
684d6943aa
Merge MegaAi and MAI_RR2
5 years ago
Anders Jenbo
c30ff97885
Use Point in UpdateEnemy
5 years ago
Anders Jenbo
ef6275caac
Clean up private function names
5 years ago
Anders Jenbo
4bf4e42230
Move local symbols to anonymous namespace
5 years ago
Anders Jenbo
5d99cb4925
Fix MAI_Warlord direction
5 years ago
obligaron
3e57d0d69b
Introduce MonsterGraphic enum class
5 years ago
obligaron
5f7a2803fc
Introduce CMonster::GetAnimData
5 years ago
obligaron
481fc04235
InitMonster: Get AnimData only once
5 years ago
obligaron
1fcbad0810
MAI_Ranged: Use CheckStandAnimationIsLoaded instead of directly changing animation data
5 years ago
obligaron
e5bf44a75f
M_DoWalk: Simplify check if we reached new tile
5 years ago
obligaron
dc2d5e2b04
Remove unnecessary assignments to _mdir
5 years ago
obligaron
a94da6b4a3
NewMonsterAnim gets monster references and monster graphic instead of index, and AnimStruct Pointer
5 years ago
obligaron
02d2754a68
MAI Garbud/Zhar/SnotSpill/Lazurus/Lachdanan/Warlord
...
Change _mdir in CheckStandAnimationIsLoaded (and only in stand).
5 years ago
obligaron
95937021fe
Fallen fear: Use _mgoalvar2 for new direction instead of _mdir
5 years ago
obligaron
508132e014
ADL: Handle skipped Frames for Diablo Got-Hit Animation
5 years ago
obligaron
e2ba79d3d1
Introduce StartMonsterGotHit
5 years ago
obligaron
b4966f22e1
Move NewMonsterAnim to anonymous namespace
5 years ago
Anders Jenbo
65d7b3c1eb
Use AdvanceRndSeed() when changing RNG with out use
5 years ago
Anders Jenbo
903d4bd2e1
Scope all for loops
...
This caused 7 of the loops to be rewriteen using range by clang-tidy
5 years ago
Anders Jenbo
9ebdb6db69
General clean up
5 years ago
Anders Jenbo
467b74dc06
Rename object globals
5 years ago
Anders Jenbo
9ae908f947
Rename missile globals
5 years ago
Anders Jenbo
9b8bf92575
Rename quest globals
5 years ago