taisei/src/difficulty.h
2020-03-04 21:52:53 +02:00

41 lines
914 B
C

/*
* 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>.
*/
#ifndef IGUARD_difficulty_h
#define IGUARD_difficulty_h
#include "taisei.h"
#include "color.h"
typedef enum {
D_Any = 0,
D_Easy,
D_Normal,
D_Hard,
D_Lunatic,
D_Extra // reserved for later
} Difficulty;
#define NUM_SELECTABLE_DIFFICULTIES D_Lunatic
const char* difficulty_name(Difficulty diff)
attr_pure attr_returns_nonnull;
const char* difficulty_sprite_name(Difficulty diff)
attr_pure attr_returns_nonnull;
const Color* difficulty_color(Difficulty diff)
attr_pure attr_returns_nonnull;
void difficulty_preload(void);
double difficulty_value(double easy, double normal, double hard, double lunatic)
attr_pure;
#endif // IGUARD_difficulty_h