Stop help talking about units' ability to attack relative to non-native
[freeciv.git] / server / techtools.h
blobe7d59829decf3162b707c1fe05ea189b51a169fd
1 /**********************************************************************
2 Freeciv - Copyright (C) 2005 The Freeciv Team
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ***********************************************************************/
13 #ifndef FC__TECHTOOLS_H
14 #define FC__TECHTOOLS_H
16 #include "player.h"
17 #include "tech.h"
19 void do_free_cost(struct player *pplayer, Tech_type_id tech);
20 void do_conquer_cost(struct player *pplayer, Tech_type_id tech);
21 void do_dipl_cost(struct player *pplayer, Tech_type_id tech);
23 void do_tech_parasite_effect(struct player *pplayer);
24 void script_tech_learned(struct player *plr, struct advance *tech,
25 const char *reason);
26 void found_new_tech(struct player *plr, Tech_type_id tech_found,
27 bool was_discovery, bool saving_bulbs);
28 bool update_bulbs(struct player *plr, int bulbs, bool check_tech);
29 void init_tech(struct player *plr, bool update);
30 void choose_tech(struct player *plr, Tech_type_id tech);
31 void choose_random_tech(struct player* plr);
32 void choose_tech_goal(struct player *plr, Tech_type_id tech);
33 Tech_type_id steal_a_tech(struct player *pplayer, struct player *target,
34 Tech_type_id preferred);
36 Tech_type_id give_random_free_tech(struct player *pplayer);
37 Tech_type_id give_immediate_free_tech(struct player *pplayer);
38 void give_global_initial_techs(struct player *pplayer);
39 void give_nation_initial_techs(struct player *pplayer);
40 Tech_type_id give_random_initial_tech(struct player *pplayer);
42 bool tech_transfer(struct player *plr_recv, struct player *plr_donor,
43 Tech_type_id tech);
45 Tech_type_id pick_random_tech(struct player* plr);
46 Tech_type_id pick_cheapest_tech(struct player* plr);
48 #endif /* FC__TECHTOOLS_H */