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