1: /*
   2:  * Copyright (c) 1980 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  */
   6: 
   7: #ifndef lint
   8: static char sccsid[] = "@(#)dumpssradio.c	5.1 (Berkeley) 5/30/85";
   9: #endif not lint
  10: 
  11: # include   "trek.h"
  12: 
  13: /**
  14:  **	output hidden distress calls
  15:  **/
  16: 
  17: dumpssradio()
  18: {
  19:     register struct event   *e;
  20:     register int        j;
  21:     register int        chkrest;
  22: 
  23:     chkrest = 0;
  24:     for (j = 0; j < MAXEVENTS; j++)
  25:     {
  26:         e = &Event[j];
  27:         /* if it is not hidden, then just ignore it */
  28:         if ((e->evcode & E_HIDDEN) == 0)
  29:             continue;
  30:         if (e->evcode & E_GHOST)
  31:         {
  32:             unschedule(e);
  33:             printf("Starsystem %s in quadrant %d,%d is no longer distressed\n",
  34:                 systemname(e), e->x, e->y);
  35:             continue;
  36:         }
  37: 
  38:         switch (e->evcode)
  39:         {
  40: 
  41:           case E_KDESB:
  42:             printf("Starbase in quadrant %d,%d is under attack\n",
  43:                 e->x, e->y);
  44:             chkrest++;
  45:             break;
  46: 
  47:           case E_ENSLV:
  48:           case E_REPRO:
  49:             printf("Starsystem %s in quadrant %d,%d is distressed\n",
  50:                 systemname(e), e->x, e->y);
  51:             chkrest++;
  52:             break;
  53: 
  54:         }
  55:     }
  56: 
  57:     return (chkrest);
  58: }

Defined functions

dumpssradio defined in line 17; used 2 times

Defined variables

sccsid defined in line 8; never used
Last modified: 1985-05-30
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1837
Valid CSS Valid XHTML 1.0 Strict