ref: daf98078950f5c4fefb9bca1f625e11c9863b256
parent: 5ed17b6f673f97736fecf80892afbcafc0f2f660
author: mkf <mkf@cloud9p.org>
date: Thu May 23 14:15:42 EDT 2024
glendy2.man: add enums
--- a/doc/glendy2.man
+++ b/doc/glendy2.man
@@ -4,7 +4,57 @@
doput, findglenda, checknext, score1, clac, nextglenda,
restart, undo, checkstate \- libglendy functions
.SH SYNOPSIS
-.B #include "engine.h"
+.EX
+.sp 0.3v
+#include "engine.h"
+
+enum
+{
+ /* difficulty levels (walls on the map) */
+ DEasy, /* 10≤x<15 */
+ DMed, /* 5≤x<10 */
+ DHard, /* 1≤x<5 */
+ DImp, /* 0 */
+
+ New = 0,
+ Undo,
+ Restart,
+ Exit,
+
+ /* map size */
+ SzX = 11,
+ SzY = 11,
+
+ Border = 3,
+
+ /* movement directions */
+ NE,
+ E,
+ SE,
+ SW,
+ W,
+ NW,
+
+ /* player types */
+ Human = 0,
+ Computer,
+ Net,
+
+ /* state of a game */
+ Init = 0,
+ Start,
+ Playing,
+ Won,
+ Lost,
+
+ /* elements on the map */
+ Prev = 100, /* glenda's previous location */
+ Wall = 999,
+ Glenda = 1000,
+
+ Err = 0,
+ Ok,
+};
.PP
.B
void initlevel(void);