# 2.11BSD#431 - /usr/src/games/warp/us.h

##### Variables

    bvelx             X
    bvely             X
    dam               X
    damage            X
    entmode           X
    evelx             X
    evely             X
    lastdam           X
    olddamage         X
    status            X

##### Macros

    MAXDAMAGE         X
    NOCLOAKING        X
    NODESTRUCT        X
    NOIMPULSE         X
    NOPHASERS         X
    NOSHIELDS         X
    NOTORPS           X
    NOTRACTORS        X
    NOWARP            X
    NOZAPPER          X

       1: /* $Header: us.h,v 7.0.1.1 86/10/16 10:53:58 lwall Exp $ */
       2:
       3: /* $Log:	us.h,v $
       4:  * Revision 7.0.1.1  86/10/16  10:53:58  lwall
       5:  * Added Damage.  Fixed random bugs.
       6:  *
       7:  * Revision 7.0  86/10/08  15:14:27  lwall
       8:  * Split into separate files.  Added amoebas and pirates.
       9:  *
      10:  */
      11:
      12: EXT bool cloaking;
      13: EXT bool cloaked;
      14:
      15: EXT int status;
      16: EXT int entmode;
      17:
      18: EXT int evely;
      19: EXT int evelx;
      20: EXT int bvely;
      21: EXT int bvelx;
      22:
      23: #define MAXDAMAGE 9
      24: #define NOWARP 0
      25: #define NOIMPULSE 1
      26: #define NOPHASERS 2
      27: #define NOTORPS 3
      28: #define NOCLOAKING 4
      29: #define NOSHIELDS 5
      30: #define NOZAPPER 6
      31: #define NODESTRUCT 7
      32: #define NOTRACTORS 8
      33:
      34: EXT int dam INIT(0);
      35: EXT int lastdam INIT(-1);
      36: EXT int damage INIT(0);
      37: EXT int olddamage INIT(-1);
      38:
      39: #ifdef DOINIT
      40: char *dammess[MAXDAMAGE] = {
      41:     "WARP",
      42:     "IMPULSE",
      43:     "PHASERS",
      44:     "TORPS",
      45:     "CLOAKING",
      46:     "SHIELDS",
      47:     "ZAPPER",
      48:     "DESTRUCT",
      49:     "TRACTORS"
      50: };
      51: char damflag[MAXDAMAGE] = {0,0,0,0,0,0,0,0,0};
      52: #else
      53: extern char *dammess[];
      54: extern char damflag[];
      55: #endif
      56:
      57: void do_direction();
      58: void ctrl_direction();
      59: void shift_direction();
      60: void get_commands();
      61: void us_init();

#### Defined variables

bvelx defined in line 21; used 10 times

- in /usr/src/games/warp/play.c line 77, 142, 150
- in /usr/src/games/warp/us.c line 86, 92-103(4)
- in /usr/src/games/warp/weapon.c line 196, 660

bvely defined in line 20; used 10 times

- in /usr/src/games/warp/play.c line 76, 142, 149
- in /usr/src/games/warp/us.c line 86-103(5)
- in /usr/src/games/warp/weapon.c line 196, 659

dam defined in line 34; used 16 times

- in /usr/src/games/warp/score.c line 300-337(15), 366

damage defined in line 36; used 35 times

- in /usr/src/games/warp/init.c line 547
- in /usr/src/games/warp/move.c line 179, 276, 286, 591, 598
- in /usr/src/games/warp/play.c line 66
- in /usr/src/games/warp/score.c line 276, 297-300(2), 307-308(2), 314, 323, 334, 366
- in /usr/src/games/warp/term.c line 554
- in /usr/src/games/warp/us.c line 57-59(2), 68-72(2), 123-125(2), 149-151(2), 276, 282, 317-320(2), 331-333(2), 349-354(2), 373-376(2)

damflag declared in line 54; defined in line 51; used 39 times

- in /usr/src/games/warp/init.c line 549
- in /usr/src/games/warp/move.c line 178-181(3), 270, 279-284(4), 593-598(3)
- in /usr/src/games/warp/play.c line 64-67(2)
- in /usr/src/games/warp/score.c line 300-306(3), 315, 334, 366
- in /usr/src/games/warp/us.c line 57-60(2), 69-73(3), 123-126(2), 149-152(2), 276, 282, 317-321(2), 331-334(2), 349, 355, 373-377(2)

dammess declared in line 53; defined in line 40; used 3 times

- in /usr/src/games/warp/score.c line 309, 318, 324

entmode defined in line 16; used 15 times

- in /usr/src/games/warp/init.c line 533
- in /usr/src/games/warp/move.c line 341, 569
- in /usr/src/games/warp/score.c line 329-332(4)
- in /usr/src/games/warp/us.c line 69-73(3), 277, 283, 299-304(2), 311

evelx defined in line 19; used 14 times

- in /usr/src/games/warp/play.c line 63, 108, 116
- in /usr/src/games/warp/us.c line 53, 64, 71-82(4), 325, 337, 456, 462
- in /usr/src/games/warp/weapon.c line 656

evely defined in line 18; used 14 times

- in /usr/src/games/warp/play.c line 62, 108, 115
- in /usr/src/games/warp/us.c line 53, 63, 71-82(4), 325, 337, 455, 461
- in /usr/src/games/warp/weapon.c line 655

lastdam defined in line 35; used 3 times

- in /usr/src/games/warp/score.c line 322, 337, 343

olddamage defined in line 37; used 9 times

- in /usr/src/games/warp/init.c line 547
- in /usr/src/games/warp/score.c line 298, 307, 314, 322-323(2), 340-344(2)
- in /usr/src/games/warp/term.c line 555

status defined in line 15; used 32 times

- in /usr/src/games/warp/init.c line 533-538(3)
- in /usr/src/games/warp/move.c line 332-334(2), 341-343(2)
- in /usr/src/games/warp/score.c line 255-258(3), 328-332(3)
- in /usr/src/games/warp/us.c line 43, 85, 113, 131, 139, 157, 278, 284-304(7), 311, 331, 341, 454, 460

#### Defined macros

MAXDAMAGE defined in line 23; used 6 times

- in line 40, 51
- in /usr/src/games/warp/init.c line 548
- in /usr/src/games/warp/move.c line 278, 592
- in /usr/src/games/warp/score.c line 302

NOCLOAKING defined in line 28; used 2 times

- in /usr/src/games/warp/play.c line 64-67(2)

NODESTRUCT defined in line 31; used 6 times

- in /usr/src/games/warp/us.c line 331-334(2), 349, 355, 373-377(2)

NOIMPULSE defined in line 25; used 4 times

- in /usr/src/games/warp/score.c line 329
- in /usr/src/games/warp/us.c line 69-73(2), 276

NOPHASERS defined in line 26; used 2 times

- in /usr/src/games/warp/us.c line 123-126(2)

NOSHIELDS defined in line 29; used 6 times

- in /usr/src/games/warp/move.c line 178-181(3), 270, 598
- in /usr/src/games/warp/score.c line 313

NOTORPS defined in line 27; used 2 times

- in /usr/src/games/warp/us.c line 149-152(2)

NOTRACTORS defined in line 32; used 2 times

- in /usr/src/games/warp/us.c line 57-60(2)

NOWARP defined in line 24; used 4 times

- in /usr/src/games/warp/score.c line 331
- in /usr/src/games/warp/us.c line 70-73(2), 282

NOZAPPER defined in line 30; used 2 times

- in /usr/src/games/warp/us.c line 317-321(2)

#### Usage of this include

us.h used 9 times

- in /usr/src/games/warp/init.c line 30
- in /usr/src/games/warp/move.c line 24
- in /usr/src/games/warp/play.c line 20
- in /usr/src/games/warp/score.c line 25
- in /usr/src/games/warp/term.c line 23
- in /usr/src/games/warp/them.c line 31
- in /usr/src/games/warp/us.c line 28
- in /usr/src/games/warp/warp.c line 130
- in /usr/src/games/warp/weapon.c line 24

Last modified: 1987-06-19 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 761 |