Annotation of 43BSDReno/games/phantasia/macros.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * macros.h - macro definitions for Phantasia
        !             3:  */
        !             4: 
        !             5: #define ROLL(BASE,INTERVAL)    floor((BASE) + (INTERVAL) * drandom())
        !             6: #define SGN(X)         ((X) < 0 ? -1 : 1)
        !             7: #define CIRCLE(X, Y)   floor(distance(X, 0.0, Y, 0.0) / 125.0 + 1)
        !             8: #define MAX(A, B)      ((A) > (B) ? (A) : (B))
        !             9: #define MIN(A, B)      ((A) < (B) ? (A) : (B))
        !            10: #define ILLCMD()       mvaddstr(5, 0, Illcmd)
        !            11: #define MAXMOVE()      (Player.p_level * 1.5 + 1)
        !            12: #define ILLMOVE()      mvaddstr(5, 0, Illmove)
        !            13: #define ILLSPELL()     mvaddstr(5, 0, Illspell)
        !            14: #define NOMANA()       mvaddstr(5, 0, Nomana)
        !            15: #define SOMEBETTER()   addstr(Somebetter)
        !            16: #define NOBETTER()     mvaddstr(17, 0, Nobetter)

unix.superglobalmegacorp.com

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