Freeciv-3.3
|
#include "astring.h"
#include "deprecations.h"
#include "achievements.h"
#include "actions.h"
#include "effects.h"
#include "game.h"
#include "government.h"
#include "map.h"
#include "movement.h"
#include "nation.h"
#include "player.h"
#include "specialist.h"
#include "tech.h"
#include "ruleload.h"
#include "settings.h"
#include "rssanity.h"
Go to the source code of this file.
Data Structures | |
struct | els_data |
Variables | |
enum effect_type | req_base_effects [] |
enum effect_type | req_base_effects_3_3 [] |
Apply some automatic defaults to already loaded rulesets.
Returns TRUE iff everything ok.
Definition at line 1616 of file rssanity.c.
Referenced by load_rulesetdir(), rscompat_postprocess(), and tab_misc::save_now().
Set and lock settings that must have certain value.
Definition at line 1713 of file rssanity.c.
Referenced by settings_ruleset().
Sanity check callback for iterating effects cache.
Definition at line 540 of file rssanity.c.
Referenced by sanity_check_ruleset_data().
Does nation have tech initially?
Definition at line 78 of file rssanity.c.
Referenced by sanity_check_ruleset_data().
|
static |
Sanity check barbarian unit types
Definition at line 633 of file rssanity.c.
Referenced by sanity_check_ruleset_data().
|
static |
Sanity check buildings
Definition at line 784 of file rssanity.c.
Referenced by sanity_check_ruleset_data().
|
static |
Sanity check common unit types
Definition at line 705 of file rssanity.c.
Referenced by sanity_check_ruleset_data().
|
static |
Check that boolean effect types have sensible effects.
Definition at line 851 of file rssanity.c.
Referenced by sanity_check_ruleset_data().
|
static |
Is non-rule data in ruleset sane?
Definition at line 60 of file rssanity.c.
Referenced by sanity_check_ruleset_data().
|
static |
Sanity checks on a requirement in isolation. This will generally be things that could only not be checked at ruleset load time because they would have referenced things not yet loaded from the ruleset.
Definition at line 170 of file rssanity.c.
Referenced by sanity_check_req_set().
|
static |
Helper function for sanity_check_req_vec()
Definition at line 257 of file rssanity.c.
Referenced by sanity_check_req_vec().
|
static |
Sanity check requirement vector, including whether it's free of conflicting requirements. 'conjunctive' should be TRUE if the vector is an AND vector (all requirements must be active), FALSE if it's a disjunctive (OR) vector. max_tiles is number of tiles that can provide requirement. Value -1 disables checking based on number of tiles.
Returns TRUE iff everything ok.
TODO: This is based on current hardcoded range limitations.
Definition at line 498 of file rssanity.c.
Referenced by effect_list_sanity_cb(), and sanity_check_ruleset_data().
bool sanity_check_ruleset_data | ( | struct rscompat_info * | compat | ) |
Some more sanity checking once all rulesets are loaded. These check for some cross-referencing which was impossible to do while only one party was loaded in load_ruleset_xxx()
Returns TRUE iff everything ok.
Definition at line 903 of file rssanity.c.
Referenced by load_rulesetdir(), tab_misc::sanity_check(), and tab_misc::save_now().
Returns TRUE iff the given server setting and value combination is allowed to appear in ServerSetting requirements.
Definition at line 143 of file rssanity.c.
Referenced by universal_kind_values().
Returns TRUE iff the specified server setting is a game rule and therefore may appear in a requirement.
Definition at line 116 of file rssanity.c.
Referenced by sanity_check_req_individual(), and sanity_check_server_setting_value_in_req().
Returns TRUE iff the given server setting is visible enough to be allowed to appear in ServerSetting requirements.
Definition at line 107 of file rssanity.c.
Referenced by sanity_check_req_individual(), and sanity_check_server_setting_value_in_req().
enum effect_type req_base_effects[] |
Definition at line 43 of file rssanity.c.
Referenced by effect_list_sanity_cb(), and sanity_check_ruleset_data().
enum effect_type req_base_effects_3_3[] |
Definition at line 51 of file rssanity.c.
Referenced by effect_list_sanity_cb(), and sanity_check_ruleset_data().