summaryrefslogtreecommitdiffstats
path: root/atc/struct.h
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2014-03-22 22:58:56 +0000
committerdholland <dholland@NetBSD.org>2014-03-22 22:58:56 +0000
commit2b1b33dbf5144e2190a0dc9963afa23ce93aa7af (patch)
tree6e374d2a51414743ee9f00df6c9903fbca26a8a0 /atc/struct.h
parentb02984cd3526b2e629c94ede019e8e2492c06e5f (diff)
downloadbsdgames-darwin-2b1b33dbf5144e2190a0dc9963afa23ce93aa7af.tar.gz
bsdgames-darwin-2b1b33dbf5144e2190a0dc9963afa23ce93aa7af.tar.zst
bsdgames-darwin-2b1b33dbf5144e2190a0dc9963afa23ce93aa7af.zip
Make the list of place types an enumeration. Use unsigned values for
place numbers.
Diffstat (limited to 'atc/struct.h')
-rw-r--r--atc/struct.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/atc/struct.h b/atc/struct.h
index ad5361dd..52ba1dcf 100644
--- a/atc/struct.h
+++ b/atc/struct.h
@@ -1,4 +1,4 @@
-/* $NetBSD: struct.h,v 1.9 2014/03/22 22:45:05 dholland Exp $ */
+/* $NetBSD: struct.h,v 1.10 2014/03/22 22:58:56 dholland Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -72,15 +72,22 @@ typedef struct {
AIRPORT *airport;
} C_SCREEN;
+enum places {
+ T_NODEST = 0,
+ T_BEACON = 1,
+ T_EXIT = 2,
+ T_AIRPORT = 3
+};
+
typedef struct plane {
struct plane *next, *prev;
int status;
int plane_no;
int plane_type;
- int orig_no;
- int orig_type;
- int dest_no;
- int dest_type;
+ unsigned orig_no;
+ enum places orig_type;
+ unsigned dest_no;
+ enum places dest_type;
int altitude;
int new_altitude;
int dir;