Freeciv-3.1
Loading...
Searching...
No Matches
techtools.h
Go to the documentation of this file.
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.
7
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
15
16#include "player.h"
17#include "tech.h"
18
19struct research;
20
21void research_apply_penalty(struct research *presearch, Tech_type_id tech,
22 int penalty_percent);
23void do_tech_parasite_effect(struct player *pplayer);
24
25void send_research_info(const struct research *presearch,
26 const struct conn_list *dest);
27
28void script_tech_learned(struct research *presearch,
29 struct player *originating_plr, struct advance *tech,
30 const char *reason);
31void found_new_tech(struct research *presearch, Tech_type_id tech_found,
32 bool was_discovery, bool saving_bulbs);
33void update_bulbs(struct player *pplayer, int bulbs, bool check_tech);
34void init_tech(struct research *presearch, bool update);
35void choose_tech(struct research *presearch, Tech_type_id tech);
36void choose_random_tech(struct research *presearch);
37void choose_tech_goal(struct research *presearch, Tech_type_id tech);
38Tech_type_id steal_a_tech(struct player *pplayer, struct player *target,
39 Tech_type_id preferred);
40
41Tech_type_id pick_free_tech(struct research *presearch);
42void give_immediate_free_tech(struct research *presearch, Tech_type_id tech);
43void give_initial_techs(struct research *presearch, int num_random_techs);
44
45bool tech_transfer(struct player *plr_recv, struct player *plr_donor,
46 Tech_type_id tech);
47
48#endif /* FC__TECHTOOLS_H */
int Tech_type_id
Definition fc_types.h:347
void found_new_tech(struct research *presearch, Tech_type_id tech_found, bool was_discovery, bool saving_bulbs)
Definition techtools.c:327
void choose_tech_goal(struct research *presearch, Tech_type_id tech)
Definition techtools.c:1051
void research_apply_penalty(struct research *presearch, Tech_type_id tech, int penalty_percent)
Definition techtools.c:67
void choose_tech(struct research *presearch, Tech_type_id tech)
Definition techtools.c:983
void do_tech_parasite_effect(struct player *pplayer)
Definition techtools.c:143
Tech_type_id steal_a_tech(struct player *pplayer, struct player *target, Tech_type_id preferred)
Definition techtools.c:1208
void init_tech(struct research *presearch, bool update)
Definition techtools.c:1070
Tech_type_id pick_free_tech(struct research *presearch)
Definition techtools.c:1361
void choose_random_tech(struct research *presearch)
Definition techtools.c:968
void give_immediate_free_tech(struct research *presearch, Tech_type_id tech)
Definition techtools.c:1380
void send_research_info(const struct research *presearch, const struct conn_list *dest)
Definition techtools.c:273
void update_bulbs(struct player *pplayer, int bulbs, bool check_tech)
Definition techtools.c:643
void script_tech_learned(struct research *presearch, struct player *originating_plr, struct advance *tech, const char *reason)
Definition techtools.c:84
void give_initial_techs(struct research *presearch, int num_random_techs)
Definition techtools.c:1162
bool tech_transfer(struct player *plr_recv, struct player *plr_donor, Tech_type_id tech)
Definition techtools.c:1411