newsyslog.8: Comment out another zstd reference (and fix a typo).
[dragonfly.git] / games / phantasia / macros.h
blob39b003c3480d5a1f0fd1dd78401fb6e4a99da8f8
1 /* $NetBSD: macros.h,v 1.3 1995/04/24 12:24:34 cgd Exp $ */
3 /*
4 * macros.h - macro definitions for Phantasia
5 */
7 #define ROLL(BASE,INTERVAL) floor((BASE) + (INTERVAL) * drandom())
8 #define SGN(X) ((X) < 0 ? -1 : 1)
9 #define CIRCLE(X, Y) floor(distance(X, 0.0, Y, 0.0) / 125.0 + 1)
10 #undef MAX
11 #define MAX(A, B) ((A) > (B) ? (A) : (B))
12 #undef MIN
13 #define MIN(A, B) ((A) < (B) ? (A) : (B))
14 #define ILLCMD() mvaddstr(5, 0, Illcmd)
15 #define MAXMOVE() (Player.p_level * 1.5 + 1)
16 #define ILLMOVE() mvaddstr(5, 0, Illmove)
17 #define ILLSPELL() mvaddstr(5, 0, Illspell)
18 #define NOMANA() mvaddstr(5, 0, Nomana)
19 #define SOMEBETTER() addstr(Somebetter)
20 #define NOBETTER() mvaddstr(17, 0, Nobetter)