Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

direction Struct Reference

#include <util.h>


Detailed Description

A heading (one of eight cardinal directions).

Given as a vector of the form ([-1,0,1], [-1,0,1]). To iterate in the specified direction, simply step in (x,y). Note that 'in place' is a valid direction (x=0, y=0).

See also:
facing.c

Definition at line 51 of file util.h.

Data Fields

schar x
schar y


Field Documentation

schar direction::x
 

Definition at line 53 of file util.h.

Referenced by construct_direction(), and manip_door().

schar direction::y
 

Definition at line 54 of file util.h.

Referenced by construct_direction(), and manip_door().


The documentation for this struct was generated from the following file:
Generated on Thu May 20 13:12:14 2004 for CalcRogue by doxygen 1.3.6