cp_team_callbacks.c File Reference

Menu related callback functions for the team menu. More...

#include "../cl_shared.h"
#include "../cl_team.h"
#include "../ui/ui_main.h"
#include "../ui/node/ui_node_container.h"
#include "cp_campaign.h"
#include "cp_team.h"
#include "cp_team_callbacks.h"
Include dependency graph for cp_team_callbacks.c:

Go to the source code of this file.

Functions

static qboolean CL_UpdateEmployeeList (employeeType_t employeeType, char *nodeTag, int beginIndex, int drawableListSize)
static void CL_UpdateSoldierList_f (void)
 Init the teamlist checkboxes.
static void CL_UpdatePilotList_f (void)
 Init the teamlist checkboxes.
static void CL_UpdateEquipmentMenuParameters_f (void)
 Displays actor equipment and unused items in proper (filter) category.
static void CL_AssignPilot_f (void)
 Adds or removes a pilot to/from an aircraft.
static void CL_AssignSoldier_f (void)
 Adds or removes a soldier to/from an aircraft.
static void CL_ActorPilotSelect_f (void)
static void CL_ActorTeamSelect_f (void)
void CP_TEAM_InitCallbacks (void)
void CP_TEAM_ShutdownCallbacks (void)

Variables

linkedList_temployeeList
int employeesInCurrentList
static int soldierListSize = 0
static int soldierListPos = 0

Detailed Description

Menu related callback functions for the team menu.

Definition in file cp_team_callbacks.c.


Function Documentation

static void CL_ActorPilotSelect_f ( void   )  [static]
static void CL_ActorTeamSelect_f ( void   )  [static]
static void CL_AssignPilot_f ( void   )  [static]
static void CL_AssignSoldier_f ( void   )  [static]
static qboolean CL_UpdateEmployeeList ( employeeType_t  employeeType,
char *  nodeTag,
int  beginIndex,
int  drawableListSize 
) [static]
static void CL_UpdateEquipmentMenuParameters_f ( void   )  [static]

Displays actor equipment and unused items in proper (filter) category.

Note:
This function is called everytime the equipment screen for the team pops up.
Todo:
Do we allow EMPL_ROBOTs to be equipable? Or is simple buying of ammo enough (similar to original UFO/XCOM)? In the first case the EMPL_SOLDIER stuff below needs to be changed.

Todo:
Skip EMPL_ROBOT (i.e. ugvs) for now .

Definition at line 194 of file cp_team_callbacks.c.

References AIR_GetNextFromBase(), AIR_GetTeamSize(), base_s::aircraftCurrent, B_GetCurrentSelectedBase(), base_s::bEquipment, chr_list_s::chr, chrDisplayList, CL_CleanTempInventory(), CL_CleanupAircraftCrew(), CL_UpdateActorAircraftVar(), Cvar_ForceSet(), EMPL_SOLDIER, aircraft_s::homebase, character_s::i, MAX_ACTIVETEAM, qfalse, base_s::storage, UI_ContainerNodeUpdateEquipment(), UI_ExecuteConfunc(), ui_inventory, and UI_PopWindow().

Referenced by CP_TEAM_InitCallbacks().

static void CL_UpdatePilotList_f ( void   )  [static]

Init the teamlist checkboxes.

See also:
CL_UpdateActorAircraftVar
Todo:
Make this function use a temporary list with all list-able employees instead of using ccs.employees[][] directly. See also CL_Select_f->SELECT_MODE_TEAM

Definition at line 171 of file cp_team_callbacks.c.

References CL_UpdateEmployeeList(), Cmd_Argc(), Cmd_Argv(), Com_Printf(), EMPL_PILOT, qfalse, and UI_PopWindow().

Referenced by CP_TEAM_InitCallbacks().

static void CL_UpdateSoldierList_f ( void   )  [static]

Init the teamlist checkboxes.

See also:
CL_UpdateActorAircraftVar
Todo:
Make this function use a temporary list with all list-able employees instead of using ccs.employees[][] directly. See also CL_Select_f->SELECT_MODE_TEAM

Definition at line 147 of file cp_team_callbacks.c.

References CL_UpdateEmployeeList(), Cmd_Argc(), Cmd_Argv(), Com_Printf(), EMPL_SOLDIER, qfalse, and UI_PopWindow().

Referenced by CP_TEAM_InitCallbacks().

void CP_TEAM_InitCallbacks ( void   ) 
void CP_TEAM_ShutdownCallbacks ( void   ) 

Definition at line 459 of file cp_team_callbacks.c.

References Cmd_RemoveCommand().

Referenced by CP_RemoveCampaignCallbackCommands().


Variable Documentation

< ui_inventory

Definition at line 35 of file cp_team_callbacks.c.

See also:
E_GetEmployeeByMenuIndex

Definition at line 36 of file cp_team_callbacks.c.

int soldierListPos = 0 [static]
int soldierListSize = 0 [static]

Generated by  doxygen 1.6.2