| 1 |
// |
| 2 |
// Copyright(C) 2023 by Ryan Krafnick |
| 3 |
// |
| 4 |
// This program is free software; you can redistribute it and/or |
| 5 |
// modify it under the terms of the GNU General Public License |
| 6 |
// as published by the Free Software Foundation; either version 2 |
| 7 |
// of the License, or (at your option) any later version. |
| 8 |
// |
| 9 |
// This program is distributed in the hope that it will be useful, |
| 10 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
// GNU General Public License for more details. |
| 13 |
// |
| 14 |
// DESCRIPTION: |
| 15 |
// DSDA Wad Stats |
| 16 |
// |
| 17 |
|
| 18 |
#ifndef __DSDA_WAD_STATS__ |
| 19 |
#define __DSDA_WAD_STATS__ |
| 20 |
|
| 21 |
typedef struct { |
| 22 |
char lump[9]; |
| 23 |
int episode; |
| 24 |
int map; |
| 25 |
int best_skill; |
| 26 |
int best_time; |
| 27 |
int best_max_time; |
| 28 |
int best_nm_time; |
| 29 |
int total_exits; |
| 30 |
int total_kills; |
| 31 |
int best_kills; |
| 32 |
int best_items; |
| 33 |
int best_secrets; |
| 34 |
int max_kills; |
| 35 |
int max_items; |
| 36 |
int max_secrets; |
| 37 |
} map_stats_t; |
| 38 |
|
| 39 |
typedef struct { |
| 40 |
int total_kills; |
| 41 |
map_stats_t* maps; |
| 42 |
int maps_size; |
| 43 |
int map_count; |
| 44 |
} wad_stats_t; |
| 45 |
|
| 46 |
extern wad_stats_t wad_stats; |
| 47 |
|
| 48 |
void dsda_WadStatsEnterMap(void); |
| 49 |
void dsda_WadStatsExitMap(int missed_monsters); |
| 50 |
void dsda_WadStatsKill(void); |
| 51 |
void dsda_SaveWadStats(void); |
| 52 |
void dsda_InitWadStats(void); |
| 53 |
|
| 54 |
#endif |