Freeciv21
Develop your civilization from humble roots to a global empire
government Struct Reference

#include <government.h>

+ Collaboration diagram for government:

Public Member Functions

 government ()
 Allocate resources associated with the given government. More...
 
 ~government ()
 De-allocate resources associated with the given government. More...
 

Public Attributes

Government_type_id item_number
 
struct name_translation name
 
bool ruledit_disabled
 
char graphic_str [MAX_LEN_NAME]
 
char graphic_alt [MAX_LEN_NAME]
 
struct requirement_vector reqs
 
QHash< const struct nation_type *, struct ruler_title * > * ruler_titles
 
int changed_to_times
 
QVector< QString > * helptext
 
struct {
   struct government *   better
 
ai
 

Detailed Description

Definition at line 35 of file government.h.

Constructor & Destructor Documentation

◆ government()

government::government ( )

Allocate resources associated with the given government.

Definition at line 407 of file government.cpp.

Referenced by package_player_info().

◆ ~government()

government::~government ( )

De-allocate resources associated with the given government.

Definition at line 421 of file government.cpp.

Member Data Documentation

◆ 

struct { ... } government::ai

◆ better

struct government* government::better

Definition at line 48 of file government.h.

Referenced by have_better_government().

◆ changed_to_times

int government::changed_to_times

Definition at line 43 of file government.h.

Referenced by government(), government_change(), revolution_length(), and sg_load_ruledata().

◆ graphic_alt

char government::graphic_alt[MAX_LEN_NAME]

Definition at line 40 of file government.h.

Referenced by handle_ruleset_government(), and tileset_setup_government().

◆ graphic_str

char government::graphic_str[MAX_LEN_NAME]

Definition at line 39 of file government.h.

Referenced by handle_ruleset_government(), and tileset_setup_government().

◆ helptext

QVector<QString>* government::helptext

◆ item_number

Government_type_id government::item_number

Definition at line 36 of file government.h.

Referenced by government(), government_number(), and handle_ruleset_government().

◆ name

◆ reqs

struct requirement_vector government::reqs

◆ ruledit_disabled

bool government::ruledit_disabled

◆ ruler_titles

QHash<const struct nation_type *, struct ruler_title *>* government::ruler_titles