Annotation of 43BSD/games/monop/monop.def, revision 1.1.1.1

1.1       root        1: # include      "monop.h"
                      2: # include      "deck.h"
                      3: 
                      4: bool   fixing,                 /* set if fixing up debt                */
                      5:        trading,                /* set if in process of trading         */
                      6:        told_em,                /* set if told user he's out of debt    */
                      7:        spec;                   /* set if moving by card to RR or UTIL  */
                      8: 
                      9: char   *name_list[MAX_PL+2],   /* list of players' names               */
                     10:        *comlist[]      = {     /* list of normal commands              */
                     11:        "quit",         /*  0 */        "print",        /*  1 */
                     12:        "where",        /*  2 */        "own holdings", /*  3 */
                     13:        "holdings",     /*  4 */        "shell",        /*  5 */
                     14:        "mortgage",     /*  6 */        "unmortgage",   /*  7 */
                     15:        "buy houses",   /*  8 */        "sell houses",  /*  9 */
                     16:        "card",         /* 10 */        "pay",          /* 11 */
                     17:        "trade",        /* 12 */        "resign",       /* 13 */
                     18:        "save",         /* 14 */        "restore",      /* 15 */
                     19:        "roll",         /* 16 */        "",             /* 17 */
                     20:        0
                     21:        },
                     22:        *yn[]           = {     /* list of commands for yes/no answers  */
                     23:        "yes",          /*  0 */        "no",           /*  1 */
                     24:        "quit",         /*  2 */        "print",        /*  3 */
                     25:        "where",        /*  4 */        "own holdings", /*  5 */
                     26:        "holdings",     /*  6 */        "shell",        /*  7 */
                     27:        0
                     28:        },
                     29:        *lucky_mes[]    = {     /* "got lucky" messages                 */
                     30:        "You lucky stiff",              "You got lucky",
                     31:        "What a lucky person!",         "You must have a 4-leaf clover",
                     32:        "My, my!  Aren't we lucky!",    "Luck smiles upon you",
                     33:        "You got lucky this time",      "Lucky person!",
                     34:        "Your karma must certainly be together",
                     35:        "How beautifully Cosmic",       "Wow, you must be really with it"
                     36:        /* "I want your autograph",     -- Save for later */
                     37:        };
                     38: 
                     39: int    player,                 /* current player number                */
                     40:        num_play,               /* current number of players            */
                     41:        num_doub,               /* # of doubles current player rolled   */
                     42:                                /* # of "got lucky" messages            */
                     43:        num_luck        = sizeof lucky_mes / sizeof (char *),
                     44:                                /* list of command functions            */
                     45:        buy_houses(), card(), do_move(), do_move(), list(), list_all(),
                     46:        mortgage(), pay(), printboard(), quit(), resign(), restore(),
                     47:        rub(), save(), sell_houses(), shell_out(), trade(),
                     48:        unmortgage(), where(),
                     49:        (*func[])()     = {     /* array of function calls for commands */
                     50:        quit,                   /* quit game            |*  0 *|        */
                     51:        printboard,             /* print board          |*  1 *|        */
                     52:        where,                  /* where players are    |*  2 *|        */
                     53:        list,                   /* own holdings         |*  3 *|        */
                     54:        list_all,               /* holdings list        |*  4 *|        */
                     55:        shell_out,              /* shell                |*  5 *|        */
                     56:        mortgage,               /* mortgage property    |*  6 *|        */
                     57:        unmortgage,             /* unmortgage property  |*  7 *|        */
                     58:        buy_houses,             /* buy houses           |*  8 *|        */
                     59:        sell_houses,            /* sell houses          |*  9 *|        */
                     60:        card,                   /* card for jail        |* 10 *|        */
                     61:        pay,                    /* pay for jail         |* 11 *|        */
                     62:        trade,                  /* trade                |* 12 *|        */
                     63:        resign,                 /* resign               |* 13 *|        */
                     64:        save,                   /* save game            |* 14 *|        */
                     65:        restore,                /* restore game         |* 15 *|        */
                     66:        do_move,                /* roll                 |* 16 *|        */
                     67:        do_move                 /* ""                   |* 17 *|        */
                     68:        };
                     69: 
                     70: DECK   deck[2];                /* Chance and Community Chest           */
                     71: 
                     72: PLAY   *play,                  /* player structure array ("calloc"ed)  */
                     73:        *cur_p;                 /* pointer to current player's struct   */
                     74: 
                     75: RR_S   rr[N_RR];               /* raildroad descriptions               */
                     76: 
                     77: UTIL_S util[2];                /* utility descriptions                 */
                     78: 
                     79: MON    mon[N_MON]      = {     /* monopoly descriptions                */
                     80: #              include "mon.dat"
                     81: };
                     82: 
                     83: PROP   prop[N_PROP]    = {     /* typical properties                   */
                     84: #              include "prop.dat"
                     85: };
                     86: 
                     87: SQUARE board[N_SQRS+1] = {     /* board itself (+1 for Jail)           */
                     88: #              include "brd.dat"
                     89: };

unix.superglobalmegacorp.com

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