Freeciv-3.2
|
#include "fc_types.h"
#include "game.h"
#include "player.h"
#include "unit.h"
#include "unitlist.h"
#include "unittype.h"
#include "client_main.h"
#include "control.h"
#include "unitselect_common.h"
Go to the source code of this file.
Functions | |
static void | usdlg_data_add_unit (struct usdata_hash *ushash, const struct tile *ptile, struct unit *punit) |
static bool | usdlg_check_unit_activity (const struct unit *punit, enum unit_activity act) |
static bool | usdlg_check_unit_location (const struct unit *punit, const struct tile *ptile, enum unit_select_location_mode loc) |
static struct usdata * | usdata_new (void) |
static void | usdata_destroy (struct usdata *data) |
struct usdata_hash * | usdlg_data_new (const struct tile *ptile) |
void | usdlg_data_destroy (struct usdata_hash *ushash) |
Destroy a unit selection struct.
Definition at line 72 of file unitselect_common.c.
Referenced by usdlg_data_destroy().
Create a unit selection data struct.
Definition at line 48 of file unitselect_common.c.
Referenced by usdlg_data_add_unit(), and usdlg_data_new().
Returns TRUE if the unit activity is equal to 'act'.
Definition at line 186 of file unitselect_common.c.
Referenced by usdlg_data_add_unit().
|
static |
Returns TRUE if the unit locations corresponds to 'loc'.
Definition at line 197 of file unitselect_common.c.
Referenced by usdlg_data_add_unit().
|
static |
Add a unit into the unit selection data hash.
Definition at line 149 of file unitselect_common.c.
Referenced by usdlg_data_new().
void usdlg_data_destroy | ( | struct usdata_hash * | ushash | ) |
Destroy a unit selection data set.
Definition at line 138 of file unitselect_common.c.
Referenced by usdlg_cmd_exec(), and usdlg_refresh().
struct usdata_hash * usdlg_data_new | ( | const struct tile * | ptile | ) |
Create a unit selection data set.
Definition at line 94 of file unitselect_common.c.
Referenced by usdlg_cmd_exec(), and usdlg_refresh().