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