X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=advent.h;h=7eb54dc744d3e694edf5055b252b0a55e843047a;hp=6efe5efbddea9ec0fd498717717e93ebe1d7f5c2;hb=3d2ba1835544af309723e7502d0311d5f14ec99d;hpb=6a90dcd0172c1a4c56d64a2dab9ebf892bc45afc diff --git a/advent.h b/advent.h index 6efe5ef..7eb54dc 100644 --- a/advent.h +++ b/advent.h @@ -89,6 +89,8 @@ enum speechpart {unknown, intransitive, transitive}; enum wordtype {NO_WORD_TYPE, MOTION, OBJECT, ACTION, SPECIAL}; +typedef enum scorebonus {none, splatter, defeat, victory} score_t; + /* Phase codes for action returns. * These were at one time FORTRAN line numbers. * The values don't matter, but perturb their order at your peril. @@ -118,7 +120,7 @@ typedef long loc_t; // index into the locations array */ struct game_t { unsigned long lcg_a, lcg_c, lcg_m, lcg_x; long abbnum; // How often to print non-abbreviated descriptions - long bonus; + score_t bonus; // What kind of bonus we are getting for finishing the game long chloc; long chloc2; long clock1; // # turns from finding last treasure till closing