Freeciv-3.1
Loading...
Searching...
No Matches
Functions
clientutils.h File Reference
#include "fc_types.h"

Go to the source code of this file.

Functions

int turns_to_activity_done (const struct tile *ptile, Activity_type_id act, const struct extra_type *tgt, const struct unit *pnewunit)
 
const char * concat_tile_activity_text (struct tile *ptile)
 

Function Documentation

◆ concat_tile_activity_text()

const char * concat_tile_activity_text ( struct tile ptile)

Creates the activity progress text for the given tile.

Definition at line 236 of file clientutils.c.

Referenced by popup_info_text().

◆ turns_to_activity_done()

int turns_to_activity_done ( const struct tile ptile,
Activity_type_id  act,
const struct extra_type tgt,
const struct unit pmodunit 
)

How many turns until the activity 'act' on target 'tgt' at 'ptile' would be complete, taking into account existing units and possible contribution from 'pmodunit' if it were also to help with the activity ('pmodunit' may be NULL to just account for current activities).

Definition at line 203 of file clientutils.c.

Referenced by real_menus_update().