Annotation of 43BSDTahoe/games/atc/def.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1987 by Ed James, UC Berkeley.  All rights reserved.
        !             3:  *
        !             4:  * Copy permission is hereby granted provided that this notice is
        !             5:  * retained on all partial or complete copies.
        !             6:  *
        !             7:  * For more info on this and all of my stuff, mail [email protected].
        !             8:  */
        !             9: 
        !            10: #define AUTHOR_STR             "ATC - by Ed James"
        !            11: 
        !            12: #define PI                     3.14159654
        !            13: 
        !            14: #define LOWFUEL                        15
        !            15: 
        !            16: #define REALLOC                        10
        !            17: 
        !            18: #define SGN(x)                 ((x < 0) ? -1 : ((x > 0) ? 1 : 0))
        !            19: #define ABS(x)                 ((x < 0) ? -(x) : (x))
        !            20: #define DIR_FROM_DXDY(dx,dy)   ((int) (atan2((double)(dy), (double)(dx)) \
        !            21:                                * MAXDIR / (2 * PI) + 2.5 + MAXDIR) % MAXDIR)
        !            22: 
        !            23: #define MAXDIR         8
        !            24: 
        !            25: #define D_LEFT         1
        !            26: #define D_RIGHT                2
        !            27: #define D_UP           3
        !            28: #define D_DOWN         4
        !            29: 
        !            30: #define T_NODEST       0
        !            31: #define T_BEACON       1
        !            32: #define T_EXIT         2
        !            33: #define T_AIRPORT      3
        !            34: 
        !            35: #define S_NONE         0
        !            36: #define S_GONE         1
        !            37: #define S_MARKED       2
        !            38: #define S_UNMARKED     3
        !            39: #define S_IGNORED      4
        !            40: 
        !            41: #define INPUT_LINES    3
        !            42: #define PLANE_COLS     20

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.