Crossfire Server, Trunk  R20805
rv_vector Struct Reference

#include <map.h>

+ Collaboration diagram for rv_vector:

Data Fields

int direction
unsigned int distance
int distance_x
int distance_y

Detailed Description

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

Definition at line 380 of file map.h.

Field Documentation

◆ direction

◆ distance

◆ distance_x

int rv_vector::distance_x

◆ distance_y

int rv_vector::distance_y

◆ part

object* rv_vector::part

Part we found.

Definition at line 385 of file map.h.

Referenced by get_rangevector(), get_rangevector_from_mapcoord(), and monster_move().

The documentation for this struct was generated from the following file: