X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FAwards.h;h=8e45a680b211bf1a9999ffc04e54ffa7586059b9;hb=72ad782ae757aab6f247a7b0f58d17756c98734b;hp=78cb8e1ccacd1b4d3ee165e28c109d9a3247829d;hpb=14d27ff7369d8892e08b520309c90ece4ab883a7;p=lugaru.git diff --git a/Source/Awards.h b/Source/Awards.h index 78cb8e1..8e45a68 100644 --- a/Source/Awards.h +++ b/Source/Awards.h @@ -22,11 +22,33 @@ 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, ...) 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]; + +extern void award_bonus(int playerid, int bonusid, int alt_value = 0); + enum award_types { #define DECLARE_AWARD(id, name) id, #include "Awards.def" #undef DECLARE_AWARD -award_count + award_count }; static const char *award_names[award_count] = {