|
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. | |
| static void | CP_TEAM_SelectActorByUCN_f (void) |
| Selects a soldier by his/her Unique Character Number on team UI. | |
| static void | CP_TEAM_DeEquipActor_f (void) |
| Removes every item from a soldier. | |
| static void | CP_TEAM_FillEmployeeList_f (void) |
| Fill the employee list for Soldier/Pilot assignment. | |
| static void | CP_TEAM_FillEquipSoldierList_f (void) |
| Fill the employee list for the in-base soldier equip screen and initialize the inventory. | |
| static void | CP_TEAM_FillBDEFEmployeeList_f (void) |
| Fill the employee list for Base defence mission. | |
| static void | CP_TEAM_ChangeSkin_f (void) |
| Change the skin of a soldier. | |
| void | CP_TEAM_InitCallbacks (void) |
| Function that registers team (UI) callbacks. | |
| void | CP_TEAM_ShutdownCallbacks (void) |
| Function that unregisters team (UI) callbacks. | |
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_t::aircraftCurrent, B_GetCurrentSelectedBase(), cgi, 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_t::bodySkin, cgi, Employee::chr, E_GetEmployeeFromChrUCN(), and Employee::isSoldier().
Removes every item from a soldier.
Definition at line 115 of file cp_team_callbacks.cpp.
References B_GetCurrentSelectedBase(), base_t::bEquipment, cgi, Employee::chr, CP_CleanTempInventory(), CP_CleanupTeam(), E_GetEmployeeFromChrUCN(), ERR_DROP, character_t::inv, and base_t::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_t::aircraftCurrent, B_GetCurrentSelectedBase(), cgi, CL_GetRankByIdx(), E_Foreach, EMPL_SOLDIER, aircraft_t::maxTeamSize, and rank_t::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_t::aircraftCurrent, B_GetCurrentSelectedBase(), cgi, E_Foreach, E_GetEmployeeType(), EMPL_PILOT, aircraft_t::homebase, HOS_NeedsHealing(), lengthof, MAX_EMPL, MAX_VAR, aircraft_t::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_t::acTeam, AIR_AircraftGetFromIDX(), AIR_IsEmployeeInAircraft(), base_t::aircraftCurrent, B_GetCurrentSelectedBase(), base_t::bEquipment, cgi, count, CP_CleanTempInventory(), CP_CleanupTeam(), CP_SetEquipContainer(), E_Foreach, EMPL_SOLDIER, aircraft_t::homebase, HOS_NeedsHealing(), LIST_Foreach, aircraft_t::name, character_t::name, base_t::storage, and character_t::ucn.
Function that registers team (UI) callbacks.
Definition at line 383 of file cp_team_callbacks.cpp.
References cgi, and teamCallbacks.
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, 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, and teamCallbacks.
Referenced by CP_RemoveCampaignCallbackCommands().
|
static |
Definition at line 367 of file cp_team_callbacks.cpp.
Referenced by CP_TEAM_InitCallbacks(), and CP_TEAM_ShutdownCallbacks().