Annotation of 43BSDReno/games/atc/struct.h, revision 1.1.1.1

1.1       root        1: /*-
                      2:  * Copyright (c) 1990 The Regents of the University of California.
                      3:  * All rights reserved.
                      4:  *
                      5:  * This code is derived from software contributed to Berkeley by
                      6:  * Ed James.
                      7:  *
                      8:  * Redistribution and use in source and binary forms are permitted
                      9:  * provided that: (1) source distributions retain this entire copyright
                     10:  * notice and comment, and (2) distributions including binaries display
                     11:  * the following acknowledgement:  ``This product includes software
                     12:  * developed by the University of California, Berkeley and its contributors''
                     13:  * in the documentation or other materials provided with the distribution
                     14:  * and in all advertising materials mentioning features or use of this
                     15:  * software. Neither the name of the University nor the names of its
                     16:  * contributors may be used to endorse or promote products derived
                     17:  * from this software without specific prior written permission.
                     18:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
                     19:  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
                     20:  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
                     21:  *
                     22:  *     @(#)struct.h    5.2 (Berkeley) 4/30/90
                     23:  */
                     24: 
                     25: /*
                     26:  * Copyright (c) 1987 by Ed James, UC Berkeley.  All rights reserved.
                     27:  *
                     28:  * Copy permission is hereby granted provided that this notice is
                     29:  * retained on all partial or complete copies.
                     30:  *
                     31:  * For more info on this and all of my stuff, mail [email protected].
                     32:  */
                     33: 
                     34: typedef struct {
                     35:        int     x, y;
                     36:        int     dir;    /* used only sometimes */
                     37: } SCREEN_POS;
                     38: 
                     39: typedef struct {
                     40:        SCREEN_POS      p1, p2;
                     41: } LINE;
                     42: 
                     43: typedef SCREEN_POS     EXIT;
                     44: typedef SCREEN_POS     BEACON;
                     45: typedef SCREEN_POS     AIRPORT;
                     46: 
                     47: typedef struct {
                     48:        int     width, height;
                     49:        int     update_secs;
                     50:        int     newplane_time;
                     51:        int     num_exits;
                     52:        int     num_lines;
                     53:        int     num_beacons;
                     54:        int     num_airports;
                     55:        EXIT    *exit;
                     56:        LINE    *line;
                     57:        BEACON  *beacon;
                     58:        AIRPORT *airport;
                     59: } C_SCREEN;
                     60: 
                     61: typedef struct plane {
                     62:        struct plane    *next, *prev;
                     63:        int             status;
                     64:        int             plane_no;
                     65:        int             plane_type;
                     66:        int             orig_no;
                     67:        int             orig_type;
                     68:        int             dest_no;
                     69:        int             dest_type;
                     70:        int             altitude;
                     71:        int             new_altitude;
                     72:        int             dir;
                     73:        int             new_dir;
                     74:        int             fuel;
                     75:        int             xpos;
                     76:        int             ypos;
                     77:        int             delayd;
                     78:        int             delayd_no;
                     79: } PLANE;
                     80: 
                     81: typedef struct {
                     82:        PLANE   *head, *tail;
                     83: } LIST;
                     84: 
                     85: typedef struct {
                     86:        char    name[10];
                     87:        char    host[256];
                     88:        char    game[256];
                     89:        int     planes;
                     90:        int     time;
                     91:        int     real_time;
                     92: } SCORE;
                     93: 
                     94: typedef struct displacement {
                     95:        int     dx;
                     96:        int     dy;
                     97: } DISPLACEMENT;

unix.superglobalmegacorp.com

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