2020-04-26 21:27:13 +02:00
|
|
|
/*
|
|
|
|
* This software is licensed under the terms of the MIT License.
|
|
|
|
* See COPYING for further information.
|
|
|
|
* ---
|
|
|
|
* Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>.
|
|
|
|
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
|
|
|
|
*/
|
|
|
|
|
2021-08-12 23:09:01 +02:00
|
|
|
#pragma once
|
2020-04-26 21:27:13 +02:00
|
|
|
#include "taisei.h"
|
|
|
|
|
|
|
|
typedef struct Stats Stats;
|
|
|
|
|
|
|
|
struct Stats {
|
|
|
|
struct {
|
|
|
|
int lives_used;
|
|
|
|
int bombs_used;
|
|
|
|
int continues_used;
|
|
|
|
} total, stage;
|
|
|
|
};
|
|
|
|
|
|
|
|
void stats_init(Stats *stats);
|
|
|
|
|
|
|
|
void stats_track_life_used(Stats *stats);
|
|
|
|
void stats_track_bomb_used(Stats *stats);
|
|
|
|
void stats_track_continue_used(Stats *stats);
|
|
|
|
|
|
|
|
void stats_stage_reset(Stats *stats);
|