]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - atc/struct.h
clean up import
[bsdgames-darwin.git] / atc / struct.h
1 /* $NetBSD: struct.h,v 1.3 1995/03/21 15:04:31 cgd Exp $ */
2
3 /*-
4 * Copyright (c) 1990, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * Ed James.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 * This product includes software developed by the University of
21 * California, Berkeley and its contributors.
22 * 4. Neither the name of the University nor the names of its contributors
23 * may be used to endorse or promote products derived from this software
24 * without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
27 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)struct.h 8.1 (Berkeley) 5/31/93
39 */
40
41 /*
42 * Copyright (c) 1987 by Ed James, UC Berkeley. All rights reserved.
43 *
44 * Copy permission is hereby granted provided that this notice is
45 * retained on all partial or complete copies.
46 *
47 * For more info on this and all of my stuff, mail edjames@berkeley.edu.
48 */
49
50 typedef struct {
51 int x, y;
52 int dir; /* used only sometimes */
53 } SCREEN_POS;
54
55 typedef struct {
56 SCREEN_POS p1, p2;
57 } LINE;
58
59 typedef SCREEN_POS EXIT;
60 typedef SCREEN_POS BEACON;
61 typedef SCREEN_POS AIRPORT;
62
63 typedef struct {
64 int width, height;
65 int update_secs;
66 int newplane_time;
67 int num_exits;
68 int num_lines;
69 int num_beacons;
70 int num_airports;
71 EXIT *exit;
72 LINE *line;
73 BEACON *beacon;
74 AIRPORT *airport;
75 } C_SCREEN;
76
77 typedef struct plane {
78 struct plane *next, *prev;
79 int status;
80 int plane_no;
81 int plane_type;
82 int orig_no;
83 int orig_type;
84 int dest_no;
85 int dest_type;
86 int altitude;
87 int new_altitude;
88 int dir;
89 int new_dir;
90 int fuel;
91 int xpos;
92 int ypos;
93 int delayd;
94 int delayd_no;
95 } PLANE;
96
97 typedef struct {
98 PLANE *head, *tail;
99 } LIST;
100
101 typedef struct {
102 char name[10];
103 char host[256];
104 char game[256];
105 int planes;
106 int time;
107 int real_time;
108 } SCORE;
109
110 typedef struct displacement {
111 int dx;
112 int dy;
113 } DISPLACEMENT;