Freeciv-3.3
Loading...
Searching...
No Matches
Functions | Variables
rallypointdlg.c File Reference
#include <gtk/gtk.h>
#include "fcintl.h"
#include "city.h"
#include "game.h"
#include "tile.h"
#include "client_main.h"
#include "goto.h"
#include "gui_main.h"
#include "gui_stuff.h"
#include "rallypointdlg.h"

Go to the source code of this file.

Functions

static bool rally_dialog_open (void)
 
static void rally_response_callback (GtkWidget *dlg, gint arg)
 
void rally_dialog_popup (void)
 
enum rally_phase rally_placement_phase (void)
 
bool rally_set_tile (struct tile *ptile)
 

Variables

bool rally_dialog = FALSE
 
static GtkWidgetinstruction_label = NULL
 
static GtkWidgetpersistent
 
static int rally_city_id = -1
 

Function Documentation

◆ rally_dialog_open()

static bool rally_dialog_open ( void  )
static

Is rally point dialog currently open?

Definition at line 47 of file rallypointdlg.c.

◆ rally_dialog_popup()

void rally_dialog_popup ( void  )

Open rally point placement dialog

Definition at line 66 of file rallypointdlg.c.

◆ rally_placement_phase()

enum rally_phase rally_placement_phase ( void  )

Which rally point placement phace we are at the moment.

Definition at line 117 of file rallypointdlg.c.

◆ rally_response_callback()

static void rally_response_callback ( GtkWidget dlg,
gint  arg 
)
static

Handle rally point dialog closing.

Definition at line 55 of file rallypointdlg.c.

◆ rally_set_tile()

bool rally_set_tile ( struct tile ptile)

Set city or tile for the infra placement. Returns whether the click was considered to be one for rally dialog.

Definition at line 134 of file rallypointdlg.c.

Variable Documentation

◆ instruction_label

GtkWidget* instruction_label = NULL
static

Definition at line 39 of file rallypointdlg.c.

◆ persistent

GtkWidget* persistent
static

Definition at line 40 of file rallypointdlg.c.

◆ rally_city_id

int rally_city_id = -1
static

Definition at line 42 of file rallypointdlg.c.

◆ rally_dialog

bool rally_dialog = FALSE

Definition at line 38 of file rallypointdlg.c.