Freeciv21
Develop your civilization from humble roots to a global empire
metaknowledge.h
Go to the documentation of this file.
1 /***********************************************************************
2 _ ._ Copyright (c) 1996-2021 Freeciv21 and Freeciv contributors.
3  \ | This file is part of Freeciv21. Freeciv21 is free software: you
4  \_| can redistribute it and/or modify it under the terms of the
5  .' '. GNU General Public License as published by the Free
6  :O O: Software Foundation, either version 3 of the License,
7  '/ \' or (at your option) any later version. You should have
8  :X: received a copy of the GNU General Public License along with
9  :X: Freeciv21. If not, see https://www.gnu.org/licenses/.
10 ***********************************************************************/
11 
12 #pragma once
13 
14 // common
15 #include "requirements.h"
16 
18  const struct player *pow_player, const struct player *target_player,
19  const struct player *other_player, const struct city *target_city,
20  const struct impr_type *target_building, const struct tile *target_tile,
21  const struct unit *target_unit, const struct output_type *target_output,
22  const struct specialist *target_specialist,
23  const struct requirement *req, const enum req_problem_type prob_type);
24 
26  const struct player *pow_player, const struct player *target_player,
27  const struct player *other_player, const struct city *target_city,
28  const struct impr_type *target_building, const struct tile *target_tile,
29  const struct unit *target_unit, const struct output_type *target_output,
30  const struct specialist *target_specialist,
31  const struct requirement_vector *reqs,
32  const enum req_problem_type prob_type);
33 
34 bool can_see_techs_of_target(const struct player *pow_player,
35  const struct player *target_player);
struct @19::@20 reqs
req_problem_type
Definition: fc_types.h:566
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?
enum fc_tristate mke_eval_reqs(const struct player *pow_player, const struct player *target_player, const struct player *other_player, const struct city *target_city, const struct impr_type *target_building, const struct tile *target_tile, const struct unit *target_unit, const struct output_type *target_output, const struct specialist *target_specialist, const struct requirement_vector *reqs, const enum req_problem_type prob_type)
Evaluate a requirement vector given pow_player's knowledge.
enum fc_tristate mke_eval_req(const struct player *pow_player, const struct player *target_player, const struct player *other_player, const struct city *target_city, const struct impr_type *target_building, const struct tile *target_tile, const struct unit *target_unit, const struct output_type *target_output, const struct specialist *target_specialist, const struct requirement *req, const enum req_problem_type prob_type)
Evaluate a single requirement given pow_player's knowledge.
fc_tristate
Definition: shared.h:42
Definition: city.h:291
Definition: player.h:231
Definition: tile.h:42
Definition: unit.h:134