X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FAwards.h;h=9168f1cbd786da45d30baade5d75005092ded11f;hb=fb33deea78909d498c363d973cda2c5d0d334314;hp=46e8c3eaa2c68cf52c113e9f4022836e12680261;hpb=ef57f91f57c6a11178d5b0fba58a4906b716026b;p=lugaru.git diff --git a/Source/Awards.h b/Source/Awards.h index 46e8c3e..9168f1c 100644 --- a/Source/Awards.h +++ b/Source/Awards.h @@ -22,6 +22,26 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef AWARDS_H #define AWARDS_H +enum bonus_types { +#define DECLARE_BONUS(id, name) id, +#include "Bonuses.def" +#undef DECLARE_BONUS +bonus_count +}; + +static const char *bonus_names[bonus_count] = { +#define DECLARE_BONUS(id, name) name, +#include "Bonuses.def" +#undef DECLARE_BONUS +}; + +extern int bonus; +extern float bonusvalue; +extern float bonustotal; +extern float bonustime; +extern float startbonustotal; +extern float bonusnum[100]; + enum award_types { #define DECLARE_AWARD(id, name) id, #include "Awards.def" @@ -35,5 +55,24 @@ static const char *award_names[award_count] = { #undef DECLARE_AWARD }; +extern int award_awards(int *); + +extern float damagetaken; +extern int numfalls; +extern int numflipfail; +extern int numseen; +extern int numresponded; +extern int numstaffattack; +extern int numswordattack; +extern int numknifeattack; +extern int numunarmedattack; +extern int numescaped; +extern int numflipped; +extern int numwallflipped; +extern int numthrowkill; +extern int numafterkill; +extern int numreversals; +extern int numattacks; +extern int maxalarmed; #endif