doom

a minimalistic implementation of doom
git clone git://ssnf.xyz/doom
Log | Files | Refs

info.h (20994B)


      1 #ifndef __INFO__
      2 #define __INFO__
      3 
      4 #include "d_think.h"
      5 
      6 typedef struct state_t    state_t;
      7 typedef struct mobjinfo_t mobjinfo_t;
      8 
      9 
     10 typedef enum {
     11     SPR_TROO,
     12     SPR_SHTG,
     13     SPR_PUNG,
     14     SPR_PISG,
     15     SPR_PISF,
     16     SPR_SHTF,
     17     SPR_SHT2,
     18     SPR_CHGG,
     19     SPR_CHGF,
     20     SPR_MISG,
     21     SPR_MISF,
     22     SPR_SAWG,
     23     SPR_PLSG,
     24     SPR_PLSF,
     25     SPR_BFGG,
     26     SPR_BFGF,
     27     SPR_BLUD,
     28     SPR_PUFF,
     29     SPR_BAL1,
     30     SPR_BAL2,
     31     SPR_PLSS,
     32     SPR_PLSE,
     33     SPR_MISL,
     34     SPR_BFS1,
     35     SPR_BFE1,
     36     SPR_BFE2,
     37     SPR_TFOG,
     38     SPR_IFOG,
     39     SPR_PLAY,
     40     SPR_POSS,
     41     SPR_SPOS,
     42     SPR_VILE,
     43     SPR_FIRE,
     44     SPR_FATB,
     45     SPR_FBXP,
     46     SPR_SKEL,
     47     SPR_MANF,
     48     SPR_FATT,
     49     SPR_CPOS,
     50     SPR_SARG,
     51     SPR_HEAD,
     52     SPR_BAL7,
     53     SPR_BOSS,
     54     SPR_BOS2,
     55     SPR_SKUL,
     56     SPR_SPID,
     57     SPR_BSPI,
     58     SPR_APLS,
     59     SPR_APBX,
     60     SPR_CYBR,
     61     SPR_PAIN,
     62     SPR_SSWV,
     63     SPR_KEEN,
     64     SPR_BBRN,
     65     SPR_BOSF,
     66     SPR_ARM1,
     67     SPR_ARM2,
     68     SPR_BAR1,
     69     SPR_BEXP,
     70     SPR_FCAN,
     71     SPR_BON1,
     72     SPR_BON2,
     73     SPR_BKEY,
     74     SPR_RKEY,
     75     SPR_YKEY,
     76     SPR_BSKU,
     77     SPR_RSKU,
     78     SPR_YSKU,
     79     SPR_STIM,
     80     SPR_MEDI,
     81     SPR_SOUL,
     82     SPR_PINV,
     83     SPR_PSTR,
     84     SPR_PINS,
     85     SPR_MEGA,
     86     SPR_SUIT,
     87     SPR_PMAP,
     88     SPR_PVIS,
     89     SPR_CLIP,
     90     SPR_AMMO,
     91     SPR_ROCK,
     92     SPR_BROK,
     93     SPR_CELL,
     94     SPR_CELP,
     95     SPR_SHEL,
     96     SPR_SBOX,
     97     SPR_BPAK,
     98     SPR_BFUG,
     99     SPR_MGUN,
    100     SPR_CSAW,
    101     SPR_LAUN,
    102     SPR_PLAS,
    103     SPR_SHOT,
    104     SPR_SGN2,
    105     SPR_COLU,
    106     SPR_SMT2,
    107     SPR_GOR1,
    108     SPR_POL2,
    109     SPR_POL5,
    110     SPR_POL4,
    111     SPR_POL3,
    112     SPR_POL1,
    113     SPR_POL6,
    114     SPR_GOR2,
    115     SPR_GOR3,
    116     SPR_GOR4,
    117     SPR_GOR5,
    118     SPR_SMIT,
    119     SPR_COL1,
    120     SPR_COL2,
    121     SPR_COL3,
    122     SPR_COL4,
    123     SPR_CAND,
    124     SPR_CBRA,
    125     SPR_COL6,
    126     SPR_TRE1,
    127     SPR_TRE2,
    128     SPR_ELEC,
    129     SPR_CEYE,
    130     SPR_FSKU,
    131     SPR_COL5,
    132     SPR_TBLU,
    133     SPR_TGRN,
    134     SPR_TRED,
    135     SPR_SMBT,
    136     SPR_SMGT,
    137     SPR_SMRT,
    138     SPR_HDB1,
    139     SPR_HDB2,
    140     SPR_HDB3,
    141     SPR_HDB4,
    142     SPR_HDB5,
    143     SPR_HDB6,
    144     SPR_POB1,
    145     SPR_POB2,
    146     SPR_BRS1,
    147     SPR_TLMP,
    148     SPR_TLP2,
    149     NUMSPRITES
    150 }spritenum_t;
    151 
    152 typedef enum {
    153     S_NULL,
    154     S_LIGHTDONE,
    155     S_PUNCH,
    156     S_PUNCHDOWN,
    157     S_PUNCHUP,
    158     S_PUNCH1,
    159     S_PUNCH2,
    160     S_PUNCH3,
    161     S_PUNCH4,
    162     S_PUNCH5,
    163     S_PISTOL,
    164     S_PISTOLDOWN,
    165     S_PISTOLUP,
    166     S_PISTOL1,
    167     S_PISTOL2,
    168     S_PISTOL3,
    169     S_PISTOL4,
    170     S_PISTOLFLASH,
    171     S_SGUN,
    172     S_SGUNDOWN,
    173     S_SGUNUP,
    174     S_SGUN1,
    175     S_SGUN2,
    176     S_SGUN3,
    177     S_SGUN4,
    178     S_SGUN5,
    179     S_SGUN6,
    180     S_SGUN7,
    181     S_SGUN8,
    182     S_SGUN9,
    183     S_SGUNFLASH1,
    184     S_SGUNFLASH2,
    185     S_DSGUN,
    186     S_DSGUNDOWN,
    187     S_DSGUNUP,
    188     S_DSGUN1,
    189     S_DSGUN2,
    190     S_DSGUN3,
    191     S_DSGUN4,
    192     S_DSGUN5,
    193     S_DSGUN6,
    194     S_DSGUN7,
    195     S_DSGUN8,
    196     S_DSGUN9,
    197     S_DSGUN10,
    198     S_DSNR1,
    199     S_DSNR2,
    200     S_DSGUNFLASH1,
    201     S_DSGUNFLASH2,
    202     S_CHAIN,
    203     S_CHAINDOWN,
    204     S_CHAINUP,
    205     S_CHAIN1,
    206     S_CHAIN2,
    207     S_CHAIN3,
    208     S_CHAINFLASH1,
    209     S_CHAINFLASH2,
    210     S_MISSILE,
    211     S_MISSILEDOWN,
    212     S_MISSILEUP,
    213     S_MISSILE1,
    214     S_MISSILE2,
    215     S_MISSILE3,
    216     S_MISSILEFLASH1,
    217     S_MISSILEFLASH2,
    218     S_MISSILEFLASH3,
    219     S_MISSILEFLASH4,
    220     S_SAW,
    221     S_SAWB,
    222     S_SAWDOWN,
    223     S_SAWUP,
    224     S_SAW1,
    225     S_SAW2,
    226     S_SAW3,
    227     S_PLASMA,
    228     S_PLASMADOWN,
    229     S_PLASMAUP,
    230     S_PLASMA1,
    231     S_PLASMA2,
    232     S_PLASMAFLASH1,
    233     S_PLASMAFLASH2,
    234     S_BFG,
    235     S_BFGDOWN,
    236     S_BFGUP,
    237     S_BFG1,
    238     S_BFG2,
    239     S_BFG3,
    240     S_BFG4,
    241     S_BFGFLASH1,
    242     S_BFGFLASH2,
    243     S_BLOOD1,
    244     S_BLOOD2,
    245     S_BLOOD3,
    246     S_PUFF1,
    247     S_PUFF2,
    248     S_PUFF3,
    249     S_PUFF4,
    250     S_TBALL1,
    251     S_TBALL2,
    252     S_TBALLX1,
    253     S_TBALLX2,
    254     S_TBALLX3,
    255     S_RBALL1,
    256     S_RBALL2,
    257     S_RBALLX1,
    258     S_RBALLX2,
    259     S_RBALLX3,
    260     S_PLASBALL,
    261     S_PLASBALL2,
    262     S_PLASEXP,
    263     S_PLASEXP2,
    264     S_PLASEXP3,
    265     S_PLASEXP4,
    266     S_PLASEXP5,
    267     S_ROCKET,
    268     S_BFGSHOT,
    269     S_BFGSHOT2,
    270     S_BFGLAND,
    271     S_BFGLAND2,
    272     S_BFGLAND3,
    273     S_BFGLAND4,
    274     S_BFGLAND5,
    275     S_BFGLAND6,
    276     S_BFGEXP,
    277     S_BFGEXP2,
    278     S_BFGEXP3,
    279     S_BFGEXP4,
    280     S_EXPLODE1,
    281     S_EXPLODE2,
    282     S_EXPLODE3,
    283     S_TFOG,
    284     S_TFOG01,
    285     S_TFOG02,
    286     S_TFOG2,
    287     S_TFOG3,
    288     S_TFOG4,
    289     S_TFOG5,
    290     S_TFOG6,
    291     S_TFOG7,
    292     S_TFOG8,
    293     S_TFOG9,
    294     S_TFOG10,
    295     S_IFOG,
    296     S_IFOG01,
    297     S_IFOG02,
    298     S_IFOG2,
    299     S_IFOG3,
    300     S_IFOG4,
    301     S_IFOG5,
    302     S_PLAY,
    303     S_PLAY_RUN1,
    304     S_PLAY_RUN2,
    305     S_PLAY_RUN3,
    306     S_PLAY_RUN4,
    307     S_PLAY_ATK1,
    308     S_PLAY_ATK2,
    309     S_PLAY_PAIN,
    310     S_PLAY_PAIN2,
    311     S_PLAY_DIE1,
    312     S_PLAY_DIE2,
    313     S_PLAY_DIE3,
    314     S_PLAY_DIE4,
    315     S_PLAY_DIE5,
    316     S_PLAY_DIE6,
    317     S_PLAY_DIE7,
    318     S_PLAY_XDIE1,
    319     S_PLAY_XDIE2,
    320     S_PLAY_XDIE3,
    321     S_PLAY_XDIE4,
    322     S_PLAY_XDIE5,
    323     S_PLAY_XDIE6,
    324     S_PLAY_XDIE7,
    325     S_PLAY_XDIE8,
    326     S_PLAY_XDIE9,
    327     S_POSS_STND,
    328     S_POSS_STND2,
    329     S_POSS_RUN1,
    330     S_POSS_RUN2,
    331     S_POSS_RUN3,
    332     S_POSS_RUN4,
    333     S_POSS_RUN5,
    334     S_POSS_RUN6,
    335     S_POSS_RUN7,
    336     S_POSS_RUN8,
    337     S_POSS_ATK1,
    338     S_POSS_ATK2,
    339     S_POSS_ATK3,
    340     S_POSS_PAIN,
    341     S_POSS_PAIN2,
    342     S_POSS_DIE1,
    343     S_POSS_DIE2,
    344     S_POSS_DIE3,
    345     S_POSS_DIE4,
    346     S_POSS_DIE5,
    347     S_POSS_XDIE1,
    348     S_POSS_XDIE2,
    349     S_POSS_XDIE3,
    350     S_POSS_XDIE4,
    351     S_POSS_XDIE5,
    352     S_POSS_XDIE6,
    353     S_POSS_XDIE7,
    354     S_POSS_XDIE8,
    355     S_POSS_XDIE9,
    356     S_POSS_RAISE1,
    357     S_POSS_RAISE2,
    358     S_POSS_RAISE3,
    359     S_POSS_RAISE4,
    360     S_SPOS_STND,
    361     S_SPOS_STND2,
    362     S_SPOS_RUN1,
    363     S_SPOS_RUN2,
    364     S_SPOS_RUN3,
    365     S_SPOS_RUN4,
    366     S_SPOS_RUN5,
    367     S_SPOS_RUN6,
    368     S_SPOS_RUN7,
    369     S_SPOS_RUN8,
    370     S_SPOS_ATK1,
    371     S_SPOS_ATK2,
    372     S_SPOS_ATK3,
    373     S_SPOS_PAIN,
    374     S_SPOS_PAIN2,
    375     S_SPOS_DIE1,
    376     S_SPOS_DIE2,
    377     S_SPOS_DIE3,
    378     S_SPOS_DIE4,
    379     S_SPOS_DIE5,
    380     S_SPOS_XDIE1,
    381     S_SPOS_XDIE2,
    382     S_SPOS_XDIE3,
    383     S_SPOS_XDIE4,
    384     S_SPOS_XDIE5,
    385     S_SPOS_XDIE6,
    386     S_SPOS_XDIE7,
    387     S_SPOS_XDIE8,
    388     S_SPOS_XDIE9,
    389     S_SPOS_RAISE1,
    390     S_SPOS_RAISE2,
    391     S_SPOS_RAISE3,
    392     S_SPOS_RAISE4,
    393     S_SPOS_RAISE5,
    394     S_VILE_STND,
    395     S_VILE_STND2,
    396     S_VILE_RUN1,
    397     S_VILE_RUN2,
    398     S_VILE_RUN3,
    399     S_VILE_RUN4,
    400     S_VILE_RUN5,
    401     S_VILE_RUN6,
    402     S_VILE_RUN7,
    403     S_VILE_RUN8,
    404     S_VILE_RUN9,
    405     S_VILE_RUN10,
    406     S_VILE_RUN11,
    407     S_VILE_RUN12,
    408     S_VILE_ATK1,
    409     S_VILE_ATK2,
    410     S_VILE_ATK3,
    411     S_VILE_ATK4,
    412     S_VILE_ATK5,
    413     S_VILE_ATK6,
    414     S_VILE_ATK7,
    415     S_VILE_ATK8,
    416     S_VILE_ATK9,
    417     S_VILE_ATK10,
    418     S_VILE_ATK11,
    419     S_VILE_HEAL1,
    420     S_VILE_HEAL2,
    421     S_VILE_HEAL3,
    422     S_VILE_PAIN,
    423     S_VILE_PAIN2,
    424     S_VILE_DIE1,
    425     S_VILE_DIE2,
    426     S_VILE_DIE3,
    427     S_VILE_DIE4,
    428     S_VILE_DIE5,
    429     S_VILE_DIE6,
    430     S_VILE_DIE7,
    431     S_VILE_DIE8,
    432     S_VILE_DIE9,
    433     S_VILE_DIE10,
    434     S_FIRE1,
    435     S_FIRE2,
    436     S_FIRE3,
    437     S_FIRE4,
    438     S_FIRE5,
    439     S_FIRE6,
    440     S_FIRE7,
    441     S_FIRE8,
    442     S_FIRE9,
    443     S_FIRE10,
    444     S_FIRE11,
    445     S_FIRE12,
    446     S_FIRE13,
    447     S_FIRE14,
    448     S_FIRE15,
    449     S_FIRE16,
    450     S_FIRE17,
    451     S_FIRE18,
    452     S_FIRE19,
    453     S_FIRE20,
    454     S_FIRE21,
    455     S_FIRE22,
    456     S_FIRE23,
    457     S_FIRE24,
    458     S_FIRE25,
    459     S_FIRE26,
    460     S_FIRE27,
    461     S_FIRE28,
    462     S_FIRE29,
    463     S_FIRE30,
    464     S_SMOKE1,
    465     S_SMOKE2,
    466     S_SMOKE3,
    467     S_SMOKE4,
    468     S_SMOKE5,
    469     S_TRACER,
    470     S_TRACER2,
    471     S_TRACEEXP1,
    472     S_TRACEEXP2,
    473     S_TRACEEXP3,
    474     S_SKEL_STND,
    475     S_SKEL_STND2,
    476     S_SKEL_RUN1,
    477     S_SKEL_RUN2,
    478     S_SKEL_RUN3,
    479     S_SKEL_RUN4,
    480     S_SKEL_RUN5,
    481     S_SKEL_RUN6,
    482     S_SKEL_RUN7,
    483     S_SKEL_RUN8,
    484     S_SKEL_RUN9,
    485     S_SKEL_RUN10,
    486     S_SKEL_RUN11,
    487     S_SKEL_RUN12,
    488     S_SKEL_FIST1,
    489     S_SKEL_FIST2,
    490     S_SKEL_FIST3,
    491     S_SKEL_FIST4,
    492     S_SKEL_MISS1,
    493     S_SKEL_MISS2,
    494     S_SKEL_MISS3,
    495     S_SKEL_MISS4,
    496     S_SKEL_PAIN,
    497     S_SKEL_PAIN2,
    498     S_SKEL_DIE1,
    499     S_SKEL_DIE2,
    500     S_SKEL_DIE3,
    501     S_SKEL_DIE4,
    502     S_SKEL_DIE5,
    503     S_SKEL_DIE6,
    504     S_SKEL_RAISE1,
    505     S_SKEL_RAISE2,
    506     S_SKEL_RAISE3,
    507     S_SKEL_RAISE4,
    508     S_SKEL_RAISE5,
    509     S_SKEL_RAISE6,
    510     S_FATSHOT1,
    511     S_FATSHOT2,
    512     S_FATSHOTX1,
    513     S_FATSHOTX2,
    514     S_FATSHOTX3,
    515     S_FATT_STND,
    516     S_FATT_STND2,
    517     S_FATT_RUN1,
    518     S_FATT_RUN2,
    519     S_FATT_RUN3,
    520     S_FATT_RUN4,
    521     S_FATT_RUN5,
    522     S_FATT_RUN6,
    523     S_FATT_RUN7,
    524     S_FATT_RUN8,
    525     S_FATT_RUN9,
    526     S_FATT_RUN10,
    527     S_FATT_RUN11,
    528     S_FATT_RUN12,
    529     S_FATT_ATK1,
    530     S_FATT_ATK2,
    531     S_FATT_ATK3,
    532     S_FATT_ATK4,
    533     S_FATT_ATK5,
    534     S_FATT_ATK6,
    535     S_FATT_ATK7,
    536     S_FATT_ATK8,
    537     S_FATT_ATK9,
    538     S_FATT_ATK10,
    539     S_FATT_PAIN,
    540     S_FATT_PAIN2,
    541     S_FATT_DIE1,
    542     S_FATT_DIE2,
    543     S_FATT_DIE3,
    544     S_FATT_DIE4,
    545     S_FATT_DIE5,
    546     S_FATT_DIE6,
    547     S_FATT_DIE7,
    548     S_FATT_DIE8,
    549     S_FATT_DIE9,
    550     S_FATT_DIE10,
    551     S_FATT_RAISE1,
    552     S_FATT_RAISE2,
    553     S_FATT_RAISE3,
    554     S_FATT_RAISE4,
    555     S_FATT_RAISE5,
    556     S_FATT_RAISE6,
    557     S_FATT_RAISE7,
    558     S_FATT_RAISE8,
    559     S_CPOS_STND,
    560     S_CPOS_STND2,
    561     S_CPOS_RUN1,
    562     S_CPOS_RUN2,
    563     S_CPOS_RUN3,
    564     S_CPOS_RUN4,
    565     S_CPOS_RUN5,
    566     S_CPOS_RUN6,
    567     S_CPOS_RUN7,
    568     S_CPOS_RUN8,
    569     S_CPOS_ATK1,
    570     S_CPOS_ATK2,
    571     S_CPOS_ATK3,
    572     S_CPOS_ATK4,
    573     S_CPOS_PAIN,
    574     S_CPOS_PAIN2,
    575     S_CPOS_DIE1,
    576     S_CPOS_DIE2,
    577     S_CPOS_DIE3,
    578     S_CPOS_DIE4,
    579     S_CPOS_DIE5,
    580     S_CPOS_DIE6,
    581     S_CPOS_DIE7,
    582     S_CPOS_XDIE1,
    583     S_CPOS_XDIE2,
    584     S_CPOS_XDIE3,
    585     S_CPOS_XDIE4,
    586     S_CPOS_XDIE5,
    587     S_CPOS_XDIE6,
    588     S_CPOS_RAISE1,
    589     S_CPOS_RAISE2,
    590     S_CPOS_RAISE3,
    591     S_CPOS_RAISE4,
    592     S_CPOS_RAISE5,
    593     S_CPOS_RAISE6,
    594     S_CPOS_RAISE7,
    595     S_TROO_STND,
    596     S_TROO_STND2,
    597     S_TROO_RUN1,
    598     S_TROO_RUN2,
    599     S_TROO_RUN3,
    600     S_TROO_RUN4,
    601     S_TROO_RUN5,
    602     S_TROO_RUN6,
    603     S_TROO_RUN7,
    604     S_TROO_RUN8,
    605     S_TROO_ATK1,
    606     S_TROO_ATK2,
    607     S_TROO_ATK3,
    608     S_TROO_PAIN,
    609     S_TROO_PAIN2,
    610     S_TROO_DIE1,
    611     S_TROO_DIE2,
    612     S_TROO_DIE3,
    613     S_TROO_DIE4,
    614     S_TROO_DIE5,
    615     S_TROO_XDIE1,
    616     S_TROO_XDIE2,
    617     S_TROO_XDIE3,
    618     S_TROO_XDIE4,
    619     S_TROO_XDIE5,
    620     S_TROO_XDIE6,
    621     S_TROO_XDIE7,
    622     S_TROO_XDIE8,
    623     S_TROO_RAISE1,
    624     S_TROO_RAISE2,
    625     S_TROO_RAISE3,
    626     S_TROO_RAISE4,
    627     S_TROO_RAISE5,
    628     S_SARG_STND,
    629     S_SARG_STND2,
    630     S_SARG_RUN1,
    631     S_SARG_RUN2,
    632     S_SARG_RUN3,
    633     S_SARG_RUN4,
    634     S_SARG_RUN5,
    635     S_SARG_RUN6,
    636     S_SARG_RUN7,
    637     S_SARG_RUN8,
    638     S_SARG_ATK1,
    639     S_SARG_ATK2,
    640     S_SARG_ATK3,
    641     S_SARG_PAIN,
    642     S_SARG_PAIN2,
    643     S_SARG_DIE1,
    644     S_SARG_DIE2,
    645     S_SARG_DIE3,
    646     S_SARG_DIE4,
    647     S_SARG_DIE5,
    648     S_SARG_DIE6,
    649     S_SARG_RAISE1,
    650     S_SARG_RAISE2,
    651     S_SARG_RAISE3,
    652     S_SARG_RAISE4,
    653     S_SARG_RAISE5,
    654     S_SARG_RAISE6,
    655     S_HEAD_STND,
    656     S_HEAD_RUN1,
    657     S_HEAD_ATK1,
    658     S_HEAD_ATK2,
    659     S_HEAD_ATK3,
    660     S_HEAD_PAIN,
    661     S_HEAD_PAIN2,
    662     S_HEAD_PAIN3,
    663     S_HEAD_DIE1,
    664     S_HEAD_DIE2,
    665     S_HEAD_DIE3,
    666     S_HEAD_DIE4,
    667     S_HEAD_DIE5,
    668     S_HEAD_DIE6,
    669     S_HEAD_RAISE1,
    670     S_HEAD_RAISE2,
    671     S_HEAD_RAISE3,
    672     S_HEAD_RAISE4,
    673     S_HEAD_RAISE5,
    674     S_HEAD_RAISE6,
    675     S_BRBALL1,
    676     S_BRBALL2,
    677     S_BRBALLX1,
    678     S_BRBALLX2,
    679     S_BRBALLX3,
    680     S_BOSS_STND,
    681     S_BOSS_STND2,
    682     S_BOSS_RUN1,
    683     S_BOSS_RUN2,
    684     S_BOSS_RUN3,
    685     S_BOSS_RUN4,
    686     S_BOSS_RUN5,
    687     S_BOSS_RUN6,
    688     S_BOSS_RUN7,
    689     S_BOSS_RUN8,
    690     S_BOSS_ATK1,
    691     S_BOSS_ATK2,
    692     S_BOSS_ATK3,
    693     S_BOSS_PAIN,
    694     S_BOSS_PAIN2,
    695     S_BOSS_DIE1,
    696     S_BOSS_DIE2,
    697     S_BOSS_DIE3,
    698     S_BOSS_DIE4,
    699     S_BOSS_DIE5,
    700     S_BOSS_DIE6,
    701     S_BOSS_DIE7,
    702     S_BOSS_RAISE1,
    703     S_BOSS_RAISE2,
    704     S_BOSS_RAISE3,
    705     S_BOSS_RAISE4,
    706     S_BOSS_RAISE5,
    707     S_BOSS_RAISE6,
    708     S_BOSS_RAISE7,
    709     S_BOS2_STND,
    710     S_BOS2_STND2,
    711     S_BOS2_RUN1,
    712     S_BOS2_RUN2,
    713     S_BOS2_RUN3,
    714     S_BOS2_RUN4,
    715     S_BOS2_RUN5,
    716     S_BOS2_RUN6,
    717     S_BOS2_RUN7,
    718     S_BOS2_RUN8,
    719     S_BOS2_ATK1,
    720     S_BOS2_ATK2,
    721     S_BOS2_ATK3,
    722     S_BOS2_PAIN,
    723     S_BOS2_PAIN2,
    724     S_BOS2_DIE1,
    725     S_BOS2_DIE2,
    726     S_BOS2_DIE3,
    727     S_BOS2_DIE4,
    728     S_BOS2_DIE5,
    729     S_BOS2_DIE6,
    730     S_BOS2_DIE7,
    731     S_BOS2_RAISE1,
    732     S_BOS2_RAISE2,
    733     S_BOS2_RAISE3,
    734     S_BOS2_RAISE4,
    735     S_BOS2_RAISE5,
    736     S_BOS2_RAISE6,
    737     S_BOS2_RAISE7,
    738     S_SKULL_STND,
    739     S_SKULL_STND2,
    740     S_SKULL_RUN1,
    741     S_SKULL_RUN2,
    742     S_SKULL_ATK1,
    743     S_SKULL_ATK2,
    744     S_SKULL_ATK3,
    745     S_SKULL_ATK4,
    746     S_SKULL_PAIN,
    747     S_SKULL_PAIN2,
    748     S_SKULL_DIE1,
    749     S_SKULL_DIE2,
    750     S_SKULL_DIE3,
    751     S_SKULL_DIE4,
    752     S_SKULL_DIE5,
    753     S_SKULL_DIE6,
    754     S_SPID_STND,
    755     S_SPID_STND2,
    756     S_SPID_RUN1,
    757     S_SPID_RUN2,
    758     S_SPID_RUN3,
    759     S_SPID_RUN4,
    760     S_SPID_RUN5,
    761     S_SPID_RUN6,
    762     S_SPID_RUN7,
    763     S_SPID_RUN8,
    764     S_SPID_RUN9,
    765     S_SPID_RUN10,
    766     S_SPID_RUN11,
    767     S_SPID_RUN12,
    768     S_SPID_ATK1,
    769     S_SPID_ATK2,
    770     S_SPID_ATK3,
    771     S_SPID_ATK4,
    772     S_SPID_PAIN,
    773     S_SPID_PAIN2,
    774     S_SPID_DIE1,
    775     S_SPID_DIE2,
    776     S_SPID_DIE3,
    777     S_SPID_DIE4,
    778     S_SPID_DIE5,
    779     S_SPID_DIE6,
    780     S_SPID_DIE7,
    781     S_SPID_DIE8,
    782     S_SPID_DIE9,
    783     S_SPID_DIE10,
    784     S_SPID_DIE11,
    785     S_BSPI_STND,
    786     S_BSPI_STND2,
    787     S_BSPI_SIGHT,
    788     S_BSPI_RUN1,
    789     S_BSPI_RUN2,
    790     S_BSPI_RUN3,
    791     S_BSPI_RUN4,
    792     S_BSPI_RUN5,
    793     S_BSPI_RUN6,
    794     S_BSPI_RUN7,
    795     S_BSPI_RUN8,
    796     S_BSPI_RUN9,
    797     S_BSPI_RUN10,
    798     S_BSPI_RUN11,
    799     S_BSPI_RUN12,
    800     S_BSPI_ATK1,
    801     S_BSPI_ATK2,
    802     S_BSPI_ATK3,
    803     S_BSPI_ATK4,
    804     S_BSPI_PAIN,
    805     S_BSPI_PAIN2,
    806     S_BSPI_DIE1,
    807     S_BSPI_DIE2,
    808     S_BSPI_DIE3,
    809     S_BSPI_DIE4,
    810     S_BSPI_DIE5,
    811     S_BSPI_DIE6,
    812     S_BSPI_DIE7,
    813     S_BSPI_RAISE1,
    814     S_BSPI_RAISE2,
    815     S_BSPI_RAISE3,
    816     S_BSPI_RAISE4,
    817     S_BSPI_RAISE5,
    818     S_BSPI_RAISE6,
    819     S_BSPI_RAISE7,
    820     S_ARACH_PLAZ,
    821     S_ARACH_PLAZ2,
    822     S_ARACH_PLEX,
    823     S_ARACH_PLEX2,
    824     S_ARACH_PLEX3,
    825     S_ARACH_PLEX4,
    826     S_ARACH_PLEX5,
    827     S_CYBER_STND,
    828     S_CYBER_STND2,
    829     S_CYBER_RUN1,
    830     S_CYBER_RUN2,
    831     S_CYBER_RUN3,
    832     S_CYBER_RUN4,
    833     S_CYBER_RUN5,
    834     S_CYBER_RUN6,
    835     S_CYBER_RUN7,
    836     S_CYBER_RUN8,
    837     S_CYBER_ATK1,
    838     S_CYBER_ATK2,
    839     S_CYBER_ATK3,
    840     S_CYBER_ATK4,
    841     S_CYBER_ATK5,
    842     S_CYBER_ATK6,
    843     S_CYBER_PAIN,
    844     S_CYBER_DIE1,
    845     S_CYBER_DIE2,
    846     S_CYBER_DIE3,
    847     S_CYBER_DIE4,
    848     S_CYBER_DIE5,
    849     S_CYBER_DIE6,
    850     S_CYBER_DIE7,
    851     S_CYBER_DIE8,
    852     S_CYBER_DIE9,
    853     S_CYBER_DIE10,
    854     S_PAIN_STND,
    855     S_PAIN_RUN1,
    856     S_PAIN_RUN2,
    857     S_PAIN_RUN3,
    858     S_PAIN_RUN4,
    859     S_PAIN_RUN5,
    860     S_PAIN_RUN6,
    861     S_PAIN_ATK1,
    862     S_PAIN_ATK2,
    863     S_PAIN_ATK3,
    864     S_PAIN_ATK4,
    865     S_PAIN_PAIN,
    866     S_PAIN_PAIN2,
    867     S_PAIN_DIE1,
    868     S_PAIN_DIE2,
    869     S_PAIN_DIE3,
    870     S_PAIN_DIE4,
    871     S_PAIN_DIE5,
    872     S_PAIN_DIE6,
    873     S_PAIN_RAISE1,
    874     S_PAIN_RAISE2,
    875     S_PAIN_RAISE3,
    876     S_PAIN_RAISE4,
    877     S_PAIN_RAISE5,
    878     S_PAIN_RAISE6,
    879     S_SSWV_STND,
    880     S_SSWV_STND2,
    881     S_SSWV_RUN1,
    882     S_SSWV_RUN2,
    883     S_SSWV_RUN3,
    884     S_SSWV_RUN4,
    885     S_SSWV_RUN5,
    886     S_SSWV_RUN6,
    887     S_SSWV_RUN7,
    888     S_SSWV_RUN8,
    889     S_SSWV_ATK1,
    890     S_SSWV_ATK2,
    891     S_SSWV_ATK3,
    892     S_SSWV_ATK4,
    893     S_SSWV_ATK5,
    894     S_SSWV_ATK6,
    895     S_SSWV_PAIN,
    896     S_SSWV_PAIN2,
    897     S_SSWV_DIE1,
    898     S_SSWV_DIE2,
    899     S_SSWV_DIE3,
    900     S_SSWV_DIE4,
    901     S_SSWV_DIE5,
    902     S_SSWV_XDIE1,
    903     S_SSWV_XDIE2,
    904     S_SSWV_XDIE3,
    905     S_SSWV_XDIE4,
    906     S_SSWV_XDIE5,
    907     S_SSWV_XDIE6,
    908     S_SSWV_XDIE7,
    909     S_SSWV_XDIE8,
    910     S_SSWV_XDIE9,
    911     S_SSWV_RAISE1,
    912     S_SSWV_RAISE2,
    913     S_SSWV_RAISE3,
    914     S_SSWV_RAISE4,
    915     S_SSWV_RAISE5,
    916     S_KEENSTND,
    917     S_COMMKEEN,
    918     S_COMMKEEN2,
    919     S_COMMKEEN3,
    920     S_COMMKEEN4,
    921     S_COMMKEEN5,
    922     S_COMMKEEN6,
    923     S_COMMKEEN7,
    924     S_COMMKEEN8,
    925     S_COMMKEEN9,
    926     S_COMMKEEN10,
    927     S_COMMKEEN11,
    928     S_COMMKEEN12,
    929     S_KEENPAIN,
    930     S_KEENPAIN2,
    931     S_BRAIN,
    932     S_BRAIN_PAIN,
    933     S_BRAIN_DIE1,
    934     S_BRAIN_DIE2,
    935     S_BRAIN_DIE3,
    936     S_BRAIN_DIE4,
    937     S_BRAINEYE,
    938     S_BRAINEYESEE,
    939     S_BRAINEYE1,
    940     S_SPAWN1,
    941     S_SPAWN2,
    942     S_SPAWN3,
    943     S_SPAWN4,
    944     S_SPAWNFIRE1,
    945     S_SPAWNFIRE2,
    946     S_SPAWNFIRE3,
    947     S_SPAWNFIRE4,
    948     S_SPAWNFIRE5,
    949     S_SPAWNFIRE6,
    950     S_SPAWNFIRE7,
    951     S_SPAWNFIRE8,
    952     S_BRAINEXPLODE1,
    953     S_BRAINEXPLODE2,
    954     S_BRAINEXPLODE3,
    955     S_ARM1,
    956     S_ARM1A,
    957     S_ARM2,
    958     S_ARM2A,
    959     S_BAR1,
    960     S_BAR2,
    961     S_BEXP,
    962     S_BEXP2,
    963     S_BEXP3,
    964     S_BEXP4,
    965     S_BEXP5,
    966     S_BBAR1,
    967     S_BBAR2,
    968     S_BBAR3,
    969     S_BON1,
    970     S_BON1A,
    971     S_BON1B,
    972     S_BON1C,
    973     S_BON1D,
    974     S_BON1E,
    975     S_BON2,
    976     S_BON2A,
    977     S_BON2B,
    978     S_BON2C,
    979     S_BON2D,
    980     S_BON2E,
    981     S_BKEY,
    982     S_BKEY2,
    983     S_RKEY,
    984     S_RKEY2,
    985     S_YKEY,
    986     S_YKEY2,
    987     S_BSKULL,
    988     S_BSKULL2,
    989     S_RSKULL,
    990     S_RSKULL2,
    991     S_YSKULL,
    992     S_YSKULL2,
    993     S_STIM,
    994     S_MEDI,
    995     S_SOUL,
    996     S_SOUL2,
    997     S_SOUL3,
    998     S_SOUL4,
    999     S_SOUL5,
   1000     S_SOUL6,
   1001     S_PINV,
   1002     S_PINV2,
   1003     S_PINV3,
   1004     S_PINV4,
   1005     S_PSTR,
   1006     S_PINS,
   1007     S_PINS2,
   1008     S_PINS3,
   1009     S_PINS4,
   1010     S_MEGA,
   1011     S_MEGA2,
   1012     S_MEGA3,
   1013     S_MEGA4,
   1014     S_SUIT,
   1015     S_PMAP,
   1016     S_PMAP2,
   1017     S_PMAP3,
   1018     S_PMAP4,
   1019     S_PMAP5,
   1020     S_PMAP6,
   1021     S_PVIS,
   1022     S_PVIS2,
   1023     S_CLIP,
   1024     S_AMMO,
   1025     S_ROCK,
   1026     S_BROK,
   1027     S_CELL,
   1028     S_CELP,
   1029     S_SHEL,
   1030     S_SBOX,
   1031     S_BPAK,
   1032     S_BFUG,
   1033     S_MGUN,
   1034     S_CSAW,
   1035     S_LAUN,
   1036     S_PLAS,
   1037     S_SHOT,
   1038     S_SHOT2,
   1039     S_COLU,
   1040     S_STALAG,
   1041     S_BLOODYTWITCH,
   1042     S_BLOODYTWITCH2,
   1043     S_BLOODYTWITCH3,
   1044     S_BLOODYTWITCH4,
   1045     S_DEADTORSO,
   1046     S_DEADBOTTOM,
   1047     S_HEADSONSTICK,
   1048     S_GIBS,
   1049     S_HEADONASTICK,
   1050     S_HEADCANDLES,
   1051     S_HEADCANDLES2,
   1052     S_DEADSTICK,
   1053     S_LIVESTICK,
   1054     S_LIVESTICK2,
   1055     S_MEAT2,
   1056     S_MEAT3,
   1057     S_MEAT4,
   1058     S_MEAT5,
   1059     S_STALAGTITE,
   1060     S_TALLGRNCOL,
   1061     S_SHRTGRNCOL,
   1062     S_TALLREDCOL,
   1063     S_SHRTREDCOL,
   1064     S_CANDLESTIK,
   1065     S_CANDELABRA,
   1066     S_SKULLCOL,
   1067     S_TORCHTREE,
   1068     S_BIGTREE,
   1069     S_TECHPILLAR,
   1070     S_EVILEYE,
   1071     S_EVILEYE2,
   1072     S_EVILEYE3,
   1073     S_EVILEYE4,
   1074     S_FLOATSKULL,
   1075     S_FLOATSKULL2,
   1076     S_FLOATSKULL3,
   1077     S_HEARTCOL,
   1078     S_HEARTCOL2,
   1079     S_BLUETORCH,
   1080     S_BLUETORCH2,
   1081     S_BLUETORCH3,
   1082     S_BLUETORCH4,
   1083     S_GREENTORCH,
   1084     S_GREENTORCH2,
   1085     S_GREENTORCH3,
   1086     S_GREENTORCH4,
   1087     S_REDTORCH,
   1088     S_REDTORCH2,
   1089     S_REDTORCH3,
   1090     S_REDTORCH4,
   1091     S_BTORCHSHRT,
   1092     S_BTORCHSHRT2,
   1093     S_BTORCHSHRT3,
   1094     S_BTORCHSHRT4,
   1095     S_GTORCHSHRT,
   1096     S_GTORCHSHRT2,
   1097     S_GTORCHSHRT3,
   1098     S_GTORCHSHRT4,
   1099     S_RTORCHSHRT,
   1100     S_RTORCHSHRT2,
   1101     S_RTORCHSHRT3,
   1102     S_RTORCHSHRT4,
   1103     S_HANGNOGUTS,
   1104     S_HANGBNOBRAIN,
   1105     S_HANGTLOOKDN,
   1106     S_HANGTSKULL,
   1107     S_HANGTLOOKUP,
   1108     S_HANGTNOBRAIN,
   1109     S_COLONGIBS,
   1110     S_SMALLPOOL,
   1111     S_BRAINSTEM,
   1112     S_TECHLAMP,
   1113     S_TECHLAMP2,
   1114     S_TECHLAMP3,
   1115     S_TECHLAMP4,
   1116     S_TECH2LAMP,
   1117     S_TECH2LAMP2,
   1118     S_TECH2LAMP3,
   1119     S_TECH2LAMP4,
   1120     NUMSTATES
   1121 }statenum_t;
   1122 
   1123 
   1124 struct state_t {
   1125   spritenum_t	sprite;
   1126   long			frame;
   1127   long			tics;
   1128   
   1129   actionf_t			action;
   1130   statenum_t			nextstate;
   1131   long			misc1, misc2;
   1132 };
   1133 
   1134 extern state_t	states[NUMSTATES];
   1135 extern char *sprnames[NUMSPRITES];
   1136 
   1137 
   1138 
   1139 typedef enum {
   1140     MT_PLAYER,
   1141     MT_POSSESSED,
   1142     MT_SHOTGUY,
   1143     MT_VILE,
   1144     MT_FIRE,
   1145     MT_UNDEAD,
   1146     MT_TRACER,
   1147     MT_SMOKE,
   1148     MT_FATSO,
   1149     MT_FATSHOT,
   1150     MT_CHAINGUY,
   1151     MT_TROOP,
   1152     MT_SERGEANT,
   1153     MT_SHADOWS,
   1154     MT_HEAD,
   1155     MT_BRUISER,
   1156     MT_BRUISERSHOT,
   1157     MT_KNIGHT,
   1158     MT_SKULL,
   1159     MT_SPIDER,
   1160     MT_BABY,
   1161     MT_CYBORG,
   1162     MT_PAIN,
   1163     MT_WOLFSS,
   1164     MT_KEEN,
   1165     MT_BOSSBRAIN,
   1166     MT_BOSSSPIT,
   1167     MT_BOSSTARGET,
   1168     MT_SPAWNSHOT,
   1169     MT_SPAWNFIRE,
   1170     MT_BARREL,
   1171     MT_TROOPSHOT,
   1172     MT_HEADSHOT,
   1173     MT_ROCKET,
   1174     MT_PLASMA,
   1175     MT_BFG,
   1176     MT_ARACHPLAZ,
   1177     MT_PUFF,
   1178     MT_BLOOD,
   1179     MT_TFOG,
   1180     MT_IFOG,
   1181     MT_TELEPORTMAN,
   1182     MT_EXTRABFG,
   1183     MT_MISC0,
   1184     MT_MISC1,
   1185     MT_MISC2,
   1186     MT_MISC3,
   1187     MT_MISC4,
   1188     MT_MISC5,
   1189     MT_MISC6,
   1190     MT_MISC7,
   1191     MT_MISC8,
   1192     MT_MISC9,
   1193     MT_MISC10,
   1194     MT_MISC11,
   1195     MT_MISC12,
   1196     MT_INV,
   1197     MT_MISC13,
   1198     MT_INS,
   1199     MT_MISC14,
   1200     MT_MISC15,
   1201     MT_MISC16,
   1202     MT_MEGA,
   1203     MT_CLIP,
   1204     MT_MISC17,
   1205     MT_MISC18,
   1206     MT_MISC19,
   1207     MT_MISC20,
   1208     MT_MISC21,
   1209     MT_MISC22,
   1210     MT_MISC23,
   1211     MT_MISC24,
   1212     MT_MISC25,
   1213     MT_CHAINGUN,
   1214     MT_MISC26,
   1215     MT_MISC27,
   1216     MT_MISC28,
   1217     MT_SHOTGUN,
   1218     MT_SUPERSHOTGUN,
   1219     MT_MISC29,
   1220     MT_MISC30,
   1221     MT_MISC31,
   1222     MT_MISC32,
   1223     MT_MISC33,
   1224     MT_MISC34,
   1225     MT_MISC35,
   1226     MT_MISC36,
   1227     MT_MISC37,
   1228     MT_MISC38,
   1229     MT_MISC39,
   1230     MT_MISC40,
   1231     MT_MISC41,
   1232     MT_MISC42,
   1233     MT_MISC43,
   1234     MT_MISC44,
   1235     MT_MISC45,
   1236     MT_MISC46,
   1237     MT_MISC47,
   1238     MT_MISC48,
   1239     MT_MISC49,
   1240     MT_MISC50,
   1241     MT_MISC51,
   1242     MT_MISC52,
   1243     MT_MISC53,
   1244     MT_MISC54,
   1245     MT_MISC55,
   1246     MT_MISC56,
   1247     MT_MISC57,
   1248     MT_MISC58,
   1249     MT_MISC59,
   1250     MT_MISC60,
   1251     MT_MISC61,
   1252     MT_MISC62,
   1253     MT_MISC63,
   1254     MT_MISC64,
   1255     MT_MISC65,
   1256     MT_MISC66,
   1257     MT_MISC67,
   1258     MT_MISC68,
   1259     MT_MISC69,
   1260     MT_MISC70,
   1261     MT_MISC71,
   1262     MT_MISC72,
   1263     MT_MISC73,
   1264     MT_MISC74,
   1265     MT_MISC75,
   1266     MT_MISC76,
   1267     MT_MISC77,
   1268     MT_MISC78,
   1269     MT_MISC79,
   1270     MT_MISC80,
   1271     MT_MISC81,
   1272     MT_MISC82,
   1273     MT_MISC83,
   1274     MT_MISC84,
   1275     MT_MISC85,
   1276     MT_MISC86,
   1277     NUMMOBJTYPES
   1278 }mobjtype_t;
   1279 
   1280 struct mobjinfo_t {
   1281     int	doomednum;
   1282     int	spawnstate;
   1283     int	spawnhealth;
   1284     int	seestate;
   1285     int	seesound;
   1286     int	reactiontime;
   1287     int	attacksound;
   1288     int	painstate;
   1289     int	painchance;
   1290     int	painsound;
   1291     int	meleestate;
   1292     int	missilestate;
   1293     int	deathstate;
   1294     int	xdeathstate;
   1295     int	deathsound;
   1296     int	speed;
   1297     int	radius;
   1298     int	height;
   1299     int	mass;
   1300     int	damage;
   1301     int	activesound;
   1302     int	flags;
   1303     int	raisestate;
   1304 
   1305 };
   1306 
   1307 extern mobjinfo_t mobjinfo[NUMMOBJTYPES];
   1308 
   1309 #endif
   1310 
   1311 
   1312 
   1313 
   1314