Crossfire Server, Trunk
|
#include <map.h>
Data Fields | |
int | direction |
unsigned int | distance |
int | distance_x |
int | distance_y |
object * | part |
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 negative. 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
int rv_vector::direction |
General direction to the targer.
Definition at line 372 of file map.h.
Referenced by flee_player(), get_rangevector(), get_rangevector_from_mapcoord(), monster_cast_spell(), monster_move(), monster_use_bow(), monster_use_range(), monster_use_scroll(), monster_use_skill(), move_towards(), path_to_player(), and pets_move().
unsigned int rv_vector::distance |
Distance, in squares.
Definition at line 369 of file map.h.
Referenced by command_follow(), do_follow(), get_nearest_player(), get_rangevector(), get_rangevector_from_mapcoord(), monster_can_detect_enemy(), monster_check_wakeup(), monster_dist_att(), monster_use_bow(), monster_wait_att2(), move_towards(), path_to_player(), and spring_trap().
int rv_vector::distance_x |
X delta.
Definition at line 370 of file map.h.
Referenced by get_rangevector(), get_rangevector_from_mapcoord(), monster_can_hit(), monster_use_bow(), path_to_player(), and player_can_view().
int rv_vector::distance_y |
Y delta.
Definition at line 371 of file map.h.
Referenced by get_rangevector(), get_rangevector_from_mapcoord(), monster_can_hit(), monster_use_bow(), path_to_player(), and player_can_view().
object* rv_vector::part |
Part we found.
Definition at line 373 of file map.h.
Referenced by get_rangevector(), get_rangevector_from_mapcoord(), and monster_move().