Freeciv21
Develop your civilization from humble roots to a global empire
governor Class Reference

#include <governor.h>

+ Collaboration diagram for governor:

Public Member Functions

 ~governor ()
 
bool hot ()
 
void freeze ()
 
void unfreeze ()
 
void add_city_changed (struct city *pcity)
 
void add_city_new (struct city *pcity)
 
void add_city_remove (struct city *pcity)
 

Static Public Member Functions

static governori ()
 
static void drop ()
 

Private Member Functions

 governor ()
 
void run ()
 

Private Attributes

std::set< int > scity_changed
 
std::set< int > scity_remove
 
int superhot
 

Static Private Attributes

static governorm_instance = nullptr
 

Detailed Description

Definition at line 17 of file governor.h.

Constructor & Destructor Documentation

◆ ~governor()

governor::~governor ( )
default

◆ governor()

governor::governor ( )
inlineprivate

Definition at line 34 of file governor.h.

Referenced by i().

Member Function Documentation

◆ add_city_changed()

void governor::add_city_changed ( struct city pcity)

◆ add_city_new()

void governor::add_city_new ( struct city pcity)

Definition at line 122 of file governor.cpp.

Referenced by handle_city_info(), and handle_city_short_info().

◆ add_city_remove()

void governor::add_city_remove ( struct city pcity)

Definition at line 128 of file governor.cpp.

Referenced by handle_city_remove().

◆ drop()

void governor::drop ( )
static

Definition at line 98 of file governor.cpp.

Referenced by client_game_free(), and client_game_reset().

◆ freeze()

void governor::freeze ( )
inline

Definition at line 23 of file governor.h.

Referenced by handle_freeze_client(), handle_processing_started(), and input_from_server().

◆ hot()

bool governor::hot ( )
inline

Definition at line 22 of file governor.h.

Referenced by can_end_turn().

◆ i()

◆ run()

void governor::run ( )
private

Definition at line 135 of file governor.cpp.

Referenced by add_city_changed(), add_city_new(), add_city_remove(), and unfreeze().

◆ unfreeze()

void governor::unfreeze ( )
inline

Definition at line 24 of file governor.h.

Referenced by handle_processing_finished(), handle_thaw_client(), and input_from_server().

Member Data Documentation

◆ m_instance

governor * governor::m_instance = nullptr
staticprivate

Definition at line 36 of file governor.h.

Referenced by i().

◆ scity_changed

std::set<int> governor::scity_changed
private

Definition at line 37 of file governor.h.

Referenced by add_city_changed(), add_city_new(), and run().

◆ scity_remove

std::set<int> governor::scity_remove
private

Definition at line 38 of file governor.h.

Referenced by add_city_remove(), and run().

◆ superhot

int governor::superhot
private

Definition at line 39 of file governor.h.

Referenced by freeze(), governor(), hot(), run(), and unfreeze().