UFO: Alien Invasion
|
Menu related callback functions for the team menu. More...
#include "../../cl_shared.h"
#include "../../cl_team.h"
#include "../../cgame/cl_game_team.h"
#include "../../ui/ui_dataids.h"
#include "cp_campaign.h"
#include "cp_team.h"
#include "cp_team_callbacks.h"
#include "cp_hospital.h"
Go to the source code of this file.
Functions | |
static void | CP_TEAM_AssignSoldierByUCN_f (void) |
Adds or removes a soldier to/from an aircraft using his/her UCN as reference. More... | |
static void | CP_TEAM_SelectActorByUCN_f (void) |
Selects a soldier by his/her Unique Character Number on team UI. More... | |
static void | CP_TEAM_DeEquipActor_f (void) |
Removes every item from a soldier. More... | |
static void | CP_TEAM_FillEmployeeList_f (void) |
Fill the employee list for Soldier/Pilot assignment. More... | |
static void | CP_TEAM_FillEquipSoldierList_f (void) |
Fill the employee list for the in-base soldier equip screen and initialize the inventory. More... | |
static void | CP_TEAM_FillBDEFEmployeeList_f (void) |
Fill the employee list for Base defence mission. More... | |
static void | CP_TEAM_ChangeSkin_f (void) |
Change the skin of a soldier. More... | |
void | CP_TEAM_InitCallbacks (void) |
Function that registers team (UI) callbacks. More... | |
void | CP_TEAM_ShutdownCallbacks (void) |
Function that unregisters team (UI) callbacks. More... | |
Variables | |
static const cmdList_t | teamCallbacks [] |
Menu related callback functions for the team menu.
Definition in file cp_team_callbacks.cpp.
Adds or removes a soldier to/from an aircraft using his/her UCN as reference.
Definition at line 41 of file cp_team_callbacks.cpp.
References AIR_AddToAircraftTeam(), AIR_GetTeamSize(), AIR_IsEmployeeInAircraft(), AIR_RemoveEmployee(), AIR_SetPilot(), base_s::aircraftCurrent, B_GetCurrentSelectedBase(), cgi, cgame_import_s::Cmd_Argv(), CP_UpdateActorAircraftVar(), E_GetEmployeeFromChrUCN(), EMPL_SOLDIER, ERR_DROP, and Employee::isPilot().
Change the skin of a soldier.
Definition at line 348 of file cp_team_callbacks.cpp.
References character_s::bodySkin, cgi, cgame_import_s::chr, cgame_import_s::Cmd_Argv(), and E_GetEmployeeFromChrUCN().
Removes every item from a soldier.
Definition at line 115 of file cp_team_callbacks.cpp.
References B_GetCurrentSelectedBase(), base_s::bEquipment, cgi, Employee::chr, cgame_import_s::Cmd_Argv(), CP_CleanTempInventory(), CP_CleanupTeam(), E_GetEmployeeFromChrUCN(), ERR_DROP, character_s::inv, and base_s::storage.
Fill the employee list for Base defence mission.
Definition at line 312 of file cp_team_callbacks.cpp.
References _, AIR_GetTeamSize(), AIR_IsEmployeeInAircraft(), base_s::aircraftCurrent, B_GetCurrentSelectedBase(), cgi, CL_GetRankByIdx(), E_Foreach, EMPL_SOLDIER, aircraft_s::maxTeamSize, and rank_s::shortname.
Fill the employee list for Soldier/Pilot assignment.
Definition at line 180 of file cp_team_callbacks.cpp.
References _, AIR_AircraftGetFromIDX(), AIR_GetPilot(), AIR_GetTeamSize(), AIR_IsEmployeeInAircraft(), base_s::aircraftCurrent, B_GetCurrentSelectedBase(), cgi, cgame_import_s::Cmd_Argv(), E_Foreach, E_GetEmployeeType(), EMPL_PILOT, aircraft_s::homebase, HOS_NeedsHealing(), lengthof, MAX_EMPL, MAX_VAR, aircraft_s::maxTeamSize, and Q_strncpyz().
Fill the employee list for the in-base soldier equip screen and initialize the inventory.
Definition at line 248 of file cp_team_callbacks.cpp.
References aircraft_s::acTeam, AIR_AircraftGetFromIDX(), AIR_IsEmployeeInAircraft(), base_s::aircraftCurrent, B_GetCurrentSelectedBase(), base_s::bEquipment, cgi, cgame_import_s::Cmd_Argv(), count, CP_CleanTempInventory(), CP_CleanupTeam(), CP_SetEquipContainer(), E_Foreach, EMPL_SOLDIER, aircraft_s::homebase, HOS_NeedsHealing(), LIST_Foreach, aircraft_s::name, character_s::name, base_s::storage, and character_s::ucn.
Function that registers team (UI) callbacks.
Definition at line 383 of file cp_team_callbacks.cpp.
References cgi.
Referenced by CP_AddCampaignCallbackCommands().
Selects a soldier by his/her Unique Character Number on team UI.
Definition at line 80 of file cp_team_callbacks.cpp.
References B_GetCurrentSelectedBase(), cgi, Employee::chr, cgame_import_s::Cmd_Argv(), CP_SetEquipContainer(), E_GetEmployeeFromChrUCN(), and ERR_DROP.
Function that unregisters team (UI) callbacks.
Definition at line 391 of file cp_team_callbacks.cpp.
References cgi.
Referenced by CP_RemoveCampaignCallbackCommands().
|
static |
Definition at line 367 of file cp_team_callbacks.cpp.