Freeciv21
Develop your civilization from humble roots to a global empire
difficulty.h
Go to the documentation of this file.
1 /*__ ___ ***************************************
2 / \ / \ Copyright (c) 1996-2020 Freeciv21 and Freeciv
3 \_ \ / __/ contributors. This file is part of Freeciv21.
4  _\ \ / /__ Freeciv21 is free software: you can redistribute it
5  \___ \____/ __/ and/or modify it under the terms of the GNU General
6  \_ _/ Public License as published by the Free Software
7  | @ @ \_ Foundation, either version 3 of the License,
8  | or (at your option) any later version.
9  _/ /\ You should have received a copy of the GNU
10  /o) (o/\ \_ General Public License along with Freeciv21.
11  \_____/ / If not, see https://www.gnu.org/licenses/.
12  \____/ ********************************************************/
13 #pragma once
14 
15 void set_ai_level_directer(struct player *pplayer, enum ai_level level);
16 
17 char *ai_level_help(const char *cmdname);
18 
19 bool ai_fuzzy(const struct player *pplayer, bool normal_decision);
char * ai_level_help(const char *cmdname)
Helper function for skill level command help.
Definition: difficulty.cpp:225
void set_ai_level_directer(struct player *pplayer, enum ai_level level)
Set an AI level and related quantities, with no feedback.
Definition: difficulty.cpp:36
bool ai_fuzzy(const struct player *pplayer, bool normal_decision)
Return the value normal_decision (a boolean), except if the AI is fuzzy, then sometimes flip the valu...
Definition: difficulty.cpp:318
struct setting_list * level[OLEVELS_NUM]
Definition: settings.cpp:167
Definition: player.h:231