File: dir.h

package info (click to toggle)
craft 3.5-10
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 18,000 kB
  • ctags: 1,602
  • sloc: cpp: 3,794; makefile: 2,319; ansic: 857; sh: 385
file content (12 lines) | stat: -rw-r--r-- 264 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef dir_h
#define dir_h

int  dir_left  (int dir);
int  dir_right (int dir);
void dir_dx_dy (int dir, int &dx, int &dy);
int  direction (int dx, int dy);
int  dir_back  (int dir);
int  fdir      (int dx, int dy);
int  left_dist (int dir1, int dir2);

#endif