Freeciv-3.2
|
#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 "ruleset.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_2 [] |
Apply some automatic defaults to already loaded rulesets.
Returns TRUE iff everything ok.
Definition at line 1576 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 1673 of file rssanity.c.
Referenced by settings_ruleset().
Sanity check callback for iterating effects cache.
Definition at line 535 of file rssanity.c.
Referenced by sanity_check_ruleset_data().
Does nation have tech initially?
Definition at line 77 of file rssanity.c.
Referenced by sanity_check_ruleset_data().
|
static |
Sanity check barbarian unit types
Definition at line 628 of file rssanity.c.
Referenced by sanity_check_ruleset_data().
|
static |
Sanity check buildings
Definition at line 779 of file rssanity.c.
Referenced by sanity_check_ruleset_data().
|
static |
Sanity check common unit types
Definition at line 700 of file rssanity.c.
Referenced by sanity_check_ruleset_data().
|
static |
Check that boolean effect types have sensible effects.
Definition at line 826 of file rssanity.c.
Referenced by sanity_check_ruleset_data().
|
static |
Is non-rule data in ruleset sane?
Definition at line 59 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 169 of file rssanity.c.
Referenced by sanity_check_req_set().
|
static |
Helper function for sanity_check_req_vec()
Definition at line 256 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 493 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 878 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 142 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 115 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 106 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_2[] |
Definition at line 50 of file rssanity.c.
Referenced by effect_list_sanity_cb(), and sanity_check_ruleset_data().