UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cp_research_callbacks.cpp File Reference

Menu related functions for research. More...

#include "../../cl_shared.h"
#include "cp_campaign.h"
#include "cp_research_callbacks.h"
#include "cp_base.h"

Go to the source code of this file.

Functions

static void RS_Max_f (void)
 Assign as many scientists to the research project as possible. More...
 
static void RS_Change_f (void)
 Script function to add and remove a scientist to the technology entry in the research-list. More...
 
static void RS_Stop_f (void)
 Removes all scientists from the selected research-list entry. More...
 
static void RS_GetDetails_f (void)
 Shows research image/model and title on the research screen. More...
 
static void RS_FillTechnologyList_f (void)
 Fills technology list on research UI. More...
 
static void RS_ShowActiveResearch_f (void)
 Show active research topics in Base sections. More...
 
void RS_InitCallbacks (void)
 
void RS_ShutdownCallbacks (void)
 

Variables

static const cmdList_t research_commands []
 

Detailed Description

Menu related functions for research.

Definition in file cp_research_callbacks.cpp.

Function Documentation

static void RS_Change_f ( void  )
static
static void RS_GetDetails_f ( void  )
static

Shows research image/model and title on the research screen.

Definition at line 141 of file cp_research_callbacks.cpp.

References _, cgi, cgame_import_s::Cmd_Argv(), technology_s::image, technology_s::mdl, technology_s::name, and RS_GetTechByID().

void RS_InitCallbacks ( void  )

Definition at line 254 of file cp_research_callbacks.cpp.

References cgi.

Referenced by CP_AddCampaignCallbackCommands().

void RS_ShutdownCallbacks ( void  )

Definition at line 259 of file cp_research_callbacks.cpp.

References cgi.

Referenced by CP_RemoveCampaignCallbackCommands().

Variable Documentation

const cmdList_t research_commands[]
static
Initial value:
= {
{"ui_research_fill", RS_FillTechnologyList_f, "Fill research screen with list of researchable technologies"},
{"ui_research_getdetails", RS_GetDetails_f, "Show technology image/model in reseach screen"},
{"ui_research_stop", RS_Stop_f, "Stops the research"},
{"ui_research_change", RS_Change_f, "Change number of scientists working on the research"},
{"ui_research_max", RS_Max_f, "Allocates as many scientists on the research as possible"},
{"ui_research_show_active", RS_ShowActiveResearch_f, "Show the active research topics and their status"},
{nullptr, nullptr, nullptr}
}
static void RS_Stop_f(void)
Removes all scientists from the selected research-list entry.
static void RS_FillTechnologyList_f(void)
Fills technology list on research UI.
static void RS_Change_f(void)
Script function to add and remove a scientist to the technology entry in the research-list.
static void RS_ShowActiveResearch_f(void)
Show active research topics in Base sections.
static void RS_Max_f(void)
Assign as many scientists to the research project as possible.
static void RS_GetDetails_f(void)
Shows research image/model and title on the research screen.

Definition at line 244 of file cp_research_callbacks.cpp.