2017-02-27 16:27:48 +02:00
|
|
|
/*
|
2019-08-03 20:43:48 +03:00
|
|
|
* This software is licensed under the terms of the MIT License.
|
2017-02-27 16:27:48 +02:00
|
|
|
* See COPYING for further information.
|
|
|
|
* ---
|
2019-01-23 22:10:43 +02:00
|
|
|
* Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>.
|
2019-07-03 21:00:56 +03:00
|
|
|
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
|
2017-02-27 16:27:48 +02:00
|
|
|
*/
|
|
|
|
|
2019-01-23 22:10:43 +02:00
|
|
|
#ifndef IGUARD_difficulty_h
|
|
|
|
#define IGUARD_difficulty_h
|
|
|
|
|
2017-11-25 21:45:11 +02:00
|
|
|
#include "taisei.h"
|
2017-02-27 16:27:48 +02:00
|
|
|
|
|
|
|
#include "color.h"
|
|
|
|
|
|
|
|
typedef enum {
|
2018-01-12 20:26:07 +02:00
|
|
|
D_Any = 0,
|
|
|
|
D_Easy,
|
|
|
|
D_Normal,
|
|
|
|
D_Hard,
|
|
|
|
D_Lunatic,
|
|
|
|
D_Extra // reserved for later
|
2017-02-27 16:27:48 +02:00
|
|
|
} Difficulty;
|
|
|
|
|
|
|
|
#define NUM_SELECTABLE_DIFFICULTIES D_Lunatic
|
|
|
|
|
2018-04-12 17:08:48 +03:00
|
|
|
const char* difficulty_name(Difficulty diff)
|
2018-07-23 20:07:59 +03:00
|
|
|
attr_pure attr_returns_nonnull;
|
2018-04-12 17:08:48 +03:00
|
|
|
|
|
|
|
const char* difficulty_sprite_name(Difficulty diff)
|
2018-07-23 20:07:59 +03:00
|
|
|
attr_pure attr_returns_nonnull;
|
2018-04-12 17:08:48 +03:00
|
|
|
|
2018-07-23 20:07:59 +03:00
|
|
|
const Color* difficulty_color(Difficulty diff)
|
|
|
|
attr_pure attr_returns_nonnull;
|
2018-04-12 17:08:48 +03:00
|
|
|
|
2017-03-11 05:41:57 +02:00
|
|
|
void difficulty_preload(void);
|
2019-01-23 22:10:43 +02:00
|
|
|
|
2019-07-25 03:31:02 +03:00
|
|
|
double difficulty_value(double easy, double normal, double hard, double lunatic)
|
|
|
|
attr_pure;
|
|
|
|
|
2019-01-23 22:10:43 +02:00
|
|
|
#endif // IGUARD_difficulty_h
|