Freeciv-3.3
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/* common */
17#include "government.h"
18#include "player.h"
19#include "tech.h"
20
21struct research;
22
24 struct {
25 bool *govs;
27};
28
30 int penalty_percent);
31void do_tech_parasite_effects(struct player *pplayer);
32
33void send_research_info(const struct research *presearch,
34 const struct conn_list *dest);
35
37 struct player *originating_plr, struct advance *tech,
38 const char *reason);
40 bool was_discovery, bool saving_bulbs);
41void update_bulbs(struct player *pplayer, int bulbs, bool check_tech,
42 bool free_bulbs);
43void init_tech(struct research *presearch, bool update);
44void choose_tech(struct research *presearch, Tech_type_id tech);
47Tech_type_id steal_a_tech(struct player *pplayer, struct player *target,
49
53
54bool tech_transfer(struct player *plr_recv, struct player *plr_donor,
55 Tech_type_id tech);
56
60void notify_new_government_options(struct player *pplayer, struct cur_govs_data *data,
61 const char *reason);
62
63#endif /* FC__TECHTOOLS_H */
char * incite_cost
Definition comments.c:76
int Tech_type_id
Definition fc_types.h:236
bool * govs
Definition techtools.h:25
struct cur_govs_data::@127 * players
void found_new_tech(struct research *presearch, Tech_type_id tech_found, bool was_discovery, bool saving_bulbs)
Definition techtools.c:347
void free_current_governments_data(struct cur_govs_data *data)
Definition techtools.c:1538
void choose_tech_goal(struct research *presearch, Tech_type_id tech)
Definition techtools.c:1075
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:1005
Tech_type_id steal_a_tech(struct player *pplayer, struct player *target, Tech_type_id preferred)
Definition techtools.c:1234
void init_tech(struct research *presearch, bool update)
Definition techtools.c:1094
void notify_new_government_options(struct player *pplayer, struct cur_govs_data *data, const char *reason)
Definition techtools.c:1552
Tech_type_id pick_free_tech(struct research *presearch)
Definition techtools.c:1388
void choose_random_tech(struct research *presearch)
Definition techtools.c:990
void give_immediate_free_tech(struct research *presearch, Tech_type_id tech)
Definition techtools.c:1407
struct cur_govs_data * create_current_governments_data(struct research *presearch)
Definition techtools.c:1490
void send_research_info(const struct research *presearch, const struct conn_list *dest)
Definition techtools.c:293
struct cur_govs_data * create_current_governments_data_all(void)
Definition techtools.c:1518
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:1188
bool tech_transfer(struct player *plr_recv, struct player *plr_donor, Tech_type_id tech)
Definition techtools.c:1438
void do_tech_parasite_effects(struct player *pplayer)
Definition techtools.c:143
void update_bulbs(struct player *pplayer, int bulbs, bool check_tech, bool free_bulbs)
Definition techtools.c:654