/*
-Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file)
+Copyright (C) 2010-2017 - Lugaru contributors (see AUTHORS file)
This file is part of Lugaru.
#ifndef _AWARDS_HPP_
#define _AWARDS_HPP_
-enum bonus_types {
+enum bonus_types
+{
#define DECLARE_BONUS(id, ...) id,
#include "Bonuses.def"
#undef DECLARE_BONUS
bonus_count
};
-extern const char *bonus_names[bonus_count];
+extern const char* bonus_names[bonus_count];
extern int bonus;
-extern float bonusvalue;
-extern float bonustotal;
+extern int bonusvalue;
+extern int bonustotal;
extern float bonustime;
-extern float startbonustotal;
+extern int startbonustotal;
extern float bonusnum[100];
extern void award_bonus(int playerid, int bonusid, int alt_value = 0);
-enum award_types {
+enum award_types
+{
#define DECLARE_AWARD(id, name) id,
#include "Awards.def"
#undef DECLARE_AWARD
award_count
};
-extern const char *award_names[award_count];
+extern const char* award_names[award_count];
-extern int award_awards(int *);
+extern int award_awards(int*);
extern float damagetaken;
extern int numfalls;
extern int numattacks;
extern int maxalarmed;
#endif
-