Defines | Functions | Variables

track.c File Reference

#include "hack.h"
Include dependency graph for track.c:

Defines

#define UTSZ   50

Functions

void initrack ()
void settrack ()
coordgettrack (int x, int y)

Variables

STATIC_VAR NEARDATA int utcnt
STATIC_VAR NEARDATA int utpnt
STATIC_VAR NEARDATA coord utrack [UTSZ]

Define Documentation

#define UTSZ   50

Referenced by gettrack(), and settrack().


Function Documentation

coord* gettrack ( int  x,
int  y 
)

References distmin(), utcnt, utpnt, utrack, UTSZ, nhcoord::x, and nhcoord::y.

Referenced by dog_goal(), and m_move().

Here is the call graph for this function:

Here is the caller graph for this function:

void initrack (  )

References utcnt, and utpnt.

Referenced by goto_level(), moveloop(), and teleds().

Here is the caller graph for this function:

void settrack (  )

References u, utcnt, utpnt, utrack, UTSZ, you::ux, you::uy, nhcoord::x, and nhcoord::y.

Referenced by moveloop().

Here is the caller graph for this function:


Variable Documentation

STATIC_VAR NEARDATA int utcnt

Referenced by gettrack(), initrack(), and settrack().

STATIC_VAR NEARDATA int utpnt

Referenced by gettrack(), initrack(), and settrack().

STATIC_VAR NEARDATA coord utrack[UTSZ]

Referenced by gettrack(), and settrack().