|
Freeciv-3.4
|
#include "requirements.h"Go to the source code of this file.
| bool can_see_techs_of_target | ( | const struct player * | pow_player, |
| const struct player * | target_player | ||
| ) |
Can pow_player see the techs of target player?
Definition at line 885 of file metaknowledge.c.
Referenced by actres_possible(), choose_tech_to_steal(), is_req_knowable(), and tech_can_be_stolen().
| enum fc_tristate mke_eval_req | ( | const struct player * | pov_player, |
| const struct req_context * | context, | ||
| const struct req_context * | other_context, | ||
| const struct requirement * | req, | ||
| const enum req_problem_type | prob_type | ||
| ) |
Evaluate a single requirement given pov_player's knowledge.
context and other_context may be nullptr. This is equivalent to passing empty contexts.
Note: Assumed to use pov_player's data.
Definition at line 832 of file metaknowledge.c.
Referenced by mke_eval_reqs().
| enum fc_tristate mke_eval_reqs | ( | const struct player * | pov_player, |
| const struct req_context * | context, | ||
| const struct req_context * | other_context, | ||
| const struct requirement_vector * | reqs, | ||
| const enum req_problem_type | prob_type | ||
| ) |
Evaluate a requirement vector given pov_player's knowledge.
context and other_context may be nullptr. This is equivalent to passing empty contexts.
Note: Assumed to use pov_player's data.
Definition at line 859 of file metaknowledge.c.
Referenced by action_enabled_local(), action_maybe_possible_actor_unit(), and is_effect_val_known().