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

##### Variables

    base              X
    enemies           X
    ent               X
    free_root         X
    movers            X
    nuke              X
    occupant          X
    realapollo        X
    root              X

##### Macros

    Base              X
    CLOAKS            X
    COUNTDOWN         X
    Crusher           X
    Enemy             X
    Enterprise        X
    FRIENDLY          X
    PIRATE            X
    Root              X
    STATIC            X
    Star              X
    Torp              X
    Web               X

##### struct's

    object            X

##### typedef's

    OBJECT            X

       1: /* $Header: object.h,v 7.0.1.2 86/12/12 17:01:38 lwall Exp $ */
       2:
       3: /* $Log:	object.h,v $
       4:  * Revision 7.0.1.2  86/12/12  17:01:38  lwall
       5:  * Baseline for net release.
       6:  *
       7:  * Revision 7.0.1.1  86/10/16  10:52:30  lwall
       8:  * Added Damage.  Fixed random bugs.
       9:  *
      10:  * Revision 7.0  86/10/08  15:13:04  lwall
      11:  * Split into separate files.  Added amoebas and pirates.
      12:  *
      13:  */
      14:
      15: #define Root 0
      16: #define Base 1
      17: #define Enterprise 2
      18: #define Star 3
      19: #define Torp 4
      20: #define Enemy 5
      21: #define Web 6
      22: #define Crusher 7
      23:
      24: typedef struct object {
      25:     char posx, posy;
      26: #ifdef SIGNEDCHAR
      27:     char velx, vely;
      28: #else
      29:     short velx, vely;
      30: #endif
      31:     struct object *next, *prev, *contend;
      32:     long energy;
      33:     long mass;
      34:     char type;
      35:     char image;
      36:     char strategy;
      37:     char flags;
      38: } OBJECT;
      39:
      40: #define PIRATE 1    /* we may mutiny */
      41: #define FRIENDLY 2  /* we aren't really an enemy, for now */
      42: #define STATIC 4    /* we are not in the movers list at the moment */
      43: #define COUNTDOWN 8 /* we are counting down for something */
      44: #define CLOAKS 16   /* we can cloak */
      45:
      46: #ifdef DOINIT
      47: OBJECT root = {0, 0, 0, 0, &root, &root, 0, 0, 0, Root, '?', 0, 0};
      48: #else
      49: EXT OBJECT root;
      50: #endif
      51:
      52: #ifdef DOINIT
      53: OBJECT free_root = {0, 0, 0, 0, &free_root, &free_root, 0, 0, 0, Root, '?', 0, 0};
      54: #else
      55: EXT OBJECT free_root;
      56: #endif
      57:
      58: EXT OBJECT *ent;
      59: EXT OBJECT *base;
      60: EXT OBJECT *enemies;
      61: EXT OBJECT *movers;
      62: EXT OBJECT *realapollo;
      63: EXT OBJECT *nuke;
      64:
      65: EXT OBJECT *occupant[YSIZE][XSIZE];
      66:
      67: OBJECT *make_object();
      68:
      69: void unmake_object();
      70: void free_object();
      71: void object_init();

#### Defined variables

base defined in line 59; used 62 times

- in /usr/src/games/warp/init.c line 387-389(2), 514-515(4), 535
- in /usr/src/games/warp/move.c line 52(2), 136-138(2), 293, 331, 338, 550, 573, 580-586(3)
- in /usr/src/games/warp/play.c line 75-77(3), 118, 149-150(2), 172-177(2)
- in /usr/src/games/warp/score.c line 279-281(3), 478-480(2)
- in /usr/src/games/warp/term.c line 558
- in /usr/src/games/warp/them.c line 296, 329
- in /usr/src/games/warp/us.c line 87-90(3), 100-101(2), 132, 158, 288, 294, 343-349(5), 373
- in /usr/src/games/warp/weapon.c line 45-50(2), 62, 184, 199, 455, 471-473(3), 482, 588, 658

enemies defined in line 60; used 26 times

- in /usr/src/games/warp/init.c line 85, 411-412(2), 474-475(2), 503-504(2), 510-511(2)
- in /usr/src/games/warp/move.c line 364-365(2), 377-378(2), 414-415(2), 421-422(2), 431-432(2), 443-444(2), 497-498(2), 505-506(2)
- in /usr/src/games/warp/them.c line 82

ent defined in line 58; used 85 times

- in /usr/src/games/warp/init.c line 375-377(2), 512-513(4), 532
- in /usr/src/games/warp/move.c line 51(2), 136-138(2), 171, 265-274(4), 329, 340, 566
- in /usr/src/games/warp/play.c line 61-69(6), 84, 115-116(2), 172-177(2)
- in /usr/src/games/warp/score.c line 260-262(3), 471-473(2)
- in /usr/src/games/warp/term.c line 556
- in /usr/src/games/warp/them.c line 296, 330-331(4)
- in /usr/src/games/warp/us.c line 48-55(5), 62, 79-80(2), 118-120(3), 128, 144-146(3), 154, 276, 282, 298-303(2), 310-317(3), 325-339(7), 349-353(2), 373-375(2), 460-463(2)
- in /usr/src/games/warp/weapon.c line 44, 55, 151, 200-204(2), 453, 590, 654

free_root defined in line 55; used 11 times

- in line 53(2)
- in /usr/src/games/warp/object.c line 30(2), 37-39(3), 78-81(4)

movers defined in line 61; used 27 times

- in /usr/src/games/warp/init.c line 85, 365, 376-377(2), 388-389(2), 413-414(2), 476-477(2), 505-509(4)
- in /usr/src/games/warp/move.c line 77, 88, 125-128(4), 375-376(2), 548-549(2)
- in /usr/src/games/warp/object.c line 68-69(2)
- in /usr/src/games/warp/them.c line 53

nuke defined in line 63; used 56 times

- in /usr/src/games/warp/init.c line 396, 404, 412-414(2)
- in /usr/src/games/warp/move.c line 149, 164, 246
- in /usr/src/games/warp/them.c line 60, 76-77(3), 195, 328, 349-356(5), 364, 385-386(2)
- in /usr/src/games/warp/weapon.c line 121, 144-147(2), 213-216(2), 249-252(2), 273-276(2), 286, 293-302(3), 314-317(2), 324-327(2), 349-352(2), 369, 375, 385-389(2), 400-414(6), 430-435(2), 540-542(3), 645

occupant defined in line 65; used 89 times

- in /usr/src/games/warp/bang.c line 45, 94, 148
- in /usr/src/games/warp/init.c line 94, 316, 339, 364, 373, 385, 395, 424, 484
- in /usr/src/games/warp/move.c line 46, 61, 80-81(2), 94-99(2), 131, 146, 192, 226, 243, 357, 531, 538, 619-633(8), 648-655(8), 670-677(8)
- in /usr/src/games/warp/object.c line 55
- in /usr/src/games/warp/play.c line 156
- in /usr/src/games/warp/term.c line 541
- in /usr/src/games/warp/them.c line 60, 208, 322, 400
- in /usr/src/games/warp/us.c line 79, 100, 197-198(2)
- in /usr/src/games/warp/weapon.c line 46, 140, 475(2), 502-503(2), 517-528(6), 540, 550-552(3), 559, 565, 580-586(8), 629, 642

realapollo defined in line 62; used 23 times

- in /usr/src/games/warp/init.c line 139
- in /usr/src/games/warp/play.c line 87-88(3), 96-100(5), 107-109(3), 121-122(3), 130-134(5), 141-143(3)

root defined in line 49; used 47 times

- in line 47(2)
- in /usr/src/games/warp/init.c line 80-84(7), 327, 365, 375, 387, 397, 456, 496, 509-511(2), 520(2)
- in /usr/src/games/warp/move.c line 77, 88
- in /usr/src/games/warp/object.c line 32
- in /usr/src/games/warp/play.c line 93-96(3), 127-130(3)
- in /usr/src/games/warp/score.c line 521(2)
- in /usr/src/games/warp/them.c line 319
- in /usr/src/games/warp/us.c line 357-358(2), 379
- in /usr/src/games/warp/weapon.c line 57, 64, 72, 88, 339-342(4), 672-675(4)

#### Defined struct's

object defined in line 24; used 2 times

- in line 31(2)

#### Defined typedef's

OBJECT defined in line 38; used 51 times

- in line 47-67(12)
- in /usr/src/games/warp/bang.c line 39, 80, 118
- in /usr/src/games/warp/init.c line 47, 518
- in /usr/src/games/warp/move.c line 38, 71-75(3), 240, 614, 644, 660, 666, 679
- in /usr/src/games/warp/object.c line 20, 26-34(4), 64, 76
- in /usr/src/games/warp/play.c line 36-37(2)
- in /usr/src/games/warp/score.c line 518
- in /usr/src/games/warp/term.c line 534
- in /usr/src/games/warp/them.c line 46-47(2), 322
- in /usr/src/games/warp/us.c line 41, 350, 374
- in /usr/src/games/warp/weapon.c line 37-41(2), 105, 112, 442, 606, 615

#### Defined macros

Base defined in line 16; used 4 times

- in /usr/src/games/warp/init.c line 387
- in /usr/src/games/warp/move.c line 574
- in /usr/src/games/warp/play.c line 123-128(2)

CLOAKS defined in line 44; used 4 times

- in /usr/src/games/warp/init.c line 471, 500
- in /usr/src/games/warp/them.c line 83(2)

COUNTDOWN defined in line 43; used 3 times

- in /usr/src/games/warp/them.c line 168-172(2)
- in /usr/src/games/warp/weapon.c line 542

Crusher defined in line 22; used 7 times

- in /usr/src/games/warp/init.c line 365
- in /usr/src/games/warp/move.c line 198, 548
- in /usr/src/games/warp/them.c line 53
- in /usr/src/games/warp/weapon.c line 519, 653, 679

Enemy defined in line 20; used 8 times

- in /usr/src/games/warp/init.c line 396, 455, 495
- in /usr/src/games/warp/move.c line 151
- in /usr/src/games/warp/them.c line 82
- in /usr/src/games/warp/weapon.c line 43-49(3)

Enterprise defined in line 17; used 3 times

- in /usr/src/games/warp/init.c line 375
- in /usr/src/games/warp/play.c line 89-94(2)

FRIENDLY defined in line 41; used 7 times

- in /usr/src/games/warp/init.c line 502
- in /usr/src/games/warp/them.c line 83, 92, 158, 215-216(2)
- in /usr/src/games/warp/weapon.c line 528

PIRATE defined in line 40; used 9 times

- in /usr/src/games/warp/init.c line 498
- in /usr/src/games/warp/move.c line 427
- in /usr/src/games/warp/them.c line 92(2), 213, 289
- in /usr/src/games/warp/weapon.c line 164, 191, 550

Root defined in line 15; used 2 times

- in line 47, 53

STATIC defined in line 42; used 7 times

- in /usr/src/games/warp/init.c line 328
- in /usr/src/games/warp/move.c line 122
- in /usr/src/games/warp/them.c line 102
- in /usr/src/games/warp/weapon.c line 335-336(2), 668-669(2)

Star defined in line 18; used 11 times

- in /usr/src/games/warp/init.c line 327, 385
- in /usr/src/games/warp/move.c line 99, 120, 175, 555
- in /usr/src/games/warp/score.c line 522
- in /usr/src/games/warp/us.c line 381
- in /usr/src/games/warp/weapon.c line 475, 584, 667

Torp defined in line 19; used 12 times

- in /usr/src/games/warp/move.c line 83, 100, 119, 133, 195
- in /usr/src/games/warp/object.c line 54
- in /usr/src/games/warp/us.c line 380
- in /usr/src/games/warp/weapon.c line 56, 63, 71, 87, 666

Web defined in line 21; used 12 times

- in /usr/src/games/warp/bang.c line 148
- in /usr/src/games/warp/move.c line 83, 121, 195, 229
- in /usr/src/games/warp/object.c line 54
- in /usr/src/games/warp/them.c line 306, 320
- in /usr/src/games/warp/us.c line 81, 102, 380
- in /usr/src/games/warp/weapon.c line 651

#### Usage of this include

object.h used 12 times

- in /usr/src/games/warp/bang.c line 20
- in /usr/src/games/warp/init.c line 24
- in /usr/src/games/warp/move.c line 18
- in /usr/src/games/warp/object.c line 12
- in /usr/src/games/warp/play.c line 16
- in /usr/src/games/warp/score.c line 21
- in /usr/src/games/warp/term.c line 19
- in /usr/src/games/warp/them.c line 27
- in /usr/src/games/warp/us.c line 21
- in /usr/src/games/warp/util.c line 18
- in /usr/src/games/warp/warp.c line 123
- in /usr/src/games/warp/weapon.c line 18

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