Freeciv-3.1
Loading...
Searching...
No Matches
Data Structures | Data Fields
research Struct Reference

#include <research.h>

Data Structures

struct  research_invention
 

Data Fields

int techs_researched
 
int future_tech
 
Tech_type_id researching
 
int bulbs_researched
 
Tech_type_id researching_saved
 
int bulbs_researching_saved
 
bool got_tech
 
bool got_tech_multi
 
struct research::research_invention inventions [A_ARRAY_SIZE]
 
Tech_type_id tech_goal
 
int num_known_tech_with_flag [TF_COUNT]
 
union { 
 
   struct { 
 
      int   researching_cost 
 
      int   total_bulbs_prod 
 
   }   client 
 
};  
 

Detailed Description

Definition at line 39 of file research.h.

Field Documentation

◆ [union]

union { ... } research

◆ bulbs_researched

int research::bulbs_researched

◆ bulbs_researching_saved

int research::bulbs_researching_saved

Definition at line 63 of file research.h.

Referenced by choose_tech(), sg_load_researches(), sg_load_researches(), and update_bulbs().

◆ [struct]

struct { ... } research::client

◆ future_tech

int research::future_tech

◆ got_tech

bool research::got_tech

◆ got_tech_multi

bool research::got_tech_multi

Definition at line 69 of file research.h.

Referenced by choose_tech(), end_phase(), found_new_tech(), and sg_load_researches().

◆ inventions

struct research::research_invention research::inventions[A_ARRAY_SIZE]

◆ num_known_tech_with_flag

int research::num_known_tech_with_flag[TF_COUNT]

Definition at line 90 of file research.h.

Referenced by num_known_tech_with_flag(), and research_update().

◆ researching

Tech_type_id research::researching

◆ researching_cost

int research::researching_cost

◆ researching_saved

Tech_type_id research::researching_saved

◆ tech_goal

Tech_type_id research::tech_goal

◆ techs_researched

int research::techs_researched

◆ total_bulbs_prod

int research::total_bulbs_prod

Definition at line 99 of file research.h.

Referenced by get_bulbs_per_turn(), and handle_research_info().