|
Crossfire Server, Branch 1.12
R12190
|
This is used by get_rangevector to determine where the other creature is. More...
#include <map.h>
Data Fields | |
| int | direction |
| General direction to the targer. | |
| unsigned int | distance |
| Distance, in squares. | |
| int | distance_x |
| X delta. | |
| int | distance_y |
| Y delta. | |
| object * | part |
| Part we found. | |
This is used by get_rangevector to determine where the other creature is.
get_rangevector takes into account map tiling, so you just can not look the the map coordinates and get the righte value. distance_x/y are distance away, which can be negativbe. direction is the crossfire direction scheme that the creature should head. part is the part of the monster that is closest. Note: distance should be always >=0. I changed it to UINT. MT
General direction to the targer.
Definition at line 401 of file map.h.
Referenced by flee_player(), get_rangevector(), get_rangevector_from_mapcoord(), monster_cast_spell(), monster_use_scroll(), move_monster(), and path_to_player().
| unsigned int rv_vector::distance |
Distance, in squares.
Definition at line 398 of file map.h.
Referenced by check_wakeup(), dist_att(), get_nearest_player(), get_rangevector(), get_rangevector_from_mapcoord(), monster_use_bow(), path_to_player(), process_players1(), spring_trap(), and wait_att2().
X delta.
Definition at line 399 of file map.h.
Referenced by can_hit(), get_rangevector(), get_rangevector_from_mapcoord(), monster_use_bow(), path_to_player(), and player_can_view().
Y delta.
Definition at line 400 of file map.h.
Referenced by can_hit(), get_rangevector(), get_rangevector_from_mapcoord(), monster_use_bow(), path_to_player(), and player_can_view().
| object* rv_vector::part |
Part we found.
Definition at line 402 of file map.h.
Referenced by get_rangevector(), get_rangevector_from_mapcoord(), and move_monster().
1.7.6.1