Atrinik Server  4.0
Macros
Range Vector Flags

Macros

#define RV_MANHATTAN_DISTANCE   0x00
 
#define RV_EUCLIDIAN_DISTANCE   0x01
 
#define RV_DIAGONAL_DISTANCE   0x02
 
#define RV_NO_DISTANCE   (RV_EUCLIDIAN_DISTANCE | RV_DIAGONAL_DISTANCE)
 
#define RV_IGNORE_MULTIPART   0x04
 
#define RV_RECURSIVE_SEARCH   0x08
 
#define RV_NO_LOAD   0x10
 

Detailed Description

Range vector flags, used by functions like get_rangevector() and get_rangevector_from_mapcoords().

Macro Definition Documentation

#define RV_DIAGONAL_DISTANCE   0x02

Calculate diagonal distance.

Definition at line 809 of file map.h.

#define RV_EUCLIDIAN_DISTANCE   0x01

Calculate Euclidian distance.

Definition at line 805 of file map.h.

#define RV_IGNORE_MULTIPART   0x04

If set, will ignore tail parts of a multi-part object in range vector calculations.

Definition at line 819 of file map.h.

#define RV_MANHATTAN_DISTANCE   0x00

Calculate Manhattan distance.

Definition at line 801 of file map.h.

#define RV_NO_DISTANCE   (RV_EUCLIDIAN_DISTANCE | RV_DIAGONAL_DISTANCE)

Do not perform distance calculation.

Definition at line 813 of file map.h.

#define RV_NO_LOAD   0x10

Do not load any maps when attempting to calculate the range vector.

Definition at line 829 of file map.h.

#define RV_RECURSIVE_SEARCH   0x08

If not set, only immediately adjacent tiled maps are searched. If set, a depth-first search is performed on the tiled maps, up to some limit.

Definition at line 825 of file map.h.