World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Файл VectorTypes.cpp

См. исходные тексты.

Функции

uint32_t int_get_vector_length (int32_t x, int32_t y, int32_t z)
 

Функции

◆ int_get_vector_length()

uint32_t int_get_vector_length ( int32_t  x,
int32_t  y,
int32_t  z 
)

См. определение в файле VectorTypes.cpp строка 8

8  {
9  if (x < y) {
10  std::swap(x, y);
11  }
12  if (x < z) {
13  std::swap(x, z);
14  }
15  if (y < z) {
16  std::swap(y, z);
17  }
18 
19  return x + (11 * y >> 5) + (z >> 2);
20 }

Используется в CastSpellInfoHelpers::_427E01_cast_spell(), _43F5C8_get_point_light_level_with_respect_to_lights(), _45063B_spawn_some_monster(), LightmapBuilder::_45BE86_build_light_polygon(), LightmapBuilder::_45CC0C_light(), Party::_46A89E_immolation_effect(), Actor::AggroSurroundingPeasants(), CheckActors_proximity(), Actor::DamageMonsterFromParty(), GameUI_GetMinimapHintText(), Vec3< int >::GetDistanceTo(), GetMapBookHintText(), IsBModelVisible(), Actor::MakeActorAIList_BLV(), Actor::MakeActorAIList_ODM(), UpdateActors_BLV(), UpdateObjects() и Party::Yell().

+ Граф вызова функции:
z
GLdouble GLdouble z
Definition: SDL_opengl_glext.h:407
y
EGLSurface EGLint EGLint y
Definition: SDL_egl.h:1596
x
EGLSurface EGLint x
Definition: SDL_egl.h:1596