MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / GetMonsterDirection

Function GetMonsterDirection

Source/monster.cpp:705–708  ·  view source on GitHub ↗

* @brief Get the direction from the monster to its current enemy */

Source from the content-addressed store, hash-verified

703 * @brief Get the direction from the monster to its current enemy
704 */
705Direction GetMonsterDirection(Monster &monster)
706{
707 return GetDirection(monster.position.tile, monster.enemyPosition);
708}
709
710void StartSpecialStand(Monster &monster, Direction md)
711{

Callers 15

StartAttackFunction · 0.85
StartRangedAttackFunction · 0.85
StartRangedSpecialAttackFunction · 0.85
StartSpecialAttackFunction · 0.85
TeleportFunction · 0.85
MonsterDelayFunction · 0.85
AiRangedFunction · 0.85
ZombieAiFunction · 0.85
OverlordAiFunction · 0.85
SkeletonBowAiFunction · 0.85
FallenAiFunction · 0.85
GargoyleAiFunction · 0.85

Calls 1

GetDirectionFunction · 0.85

Tested by

no test coverage detected