UFO: Alien Invasion
Loading...
Searching...
No Matches
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"
Include dependency graph for cp_research_callbacks.cpp:

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.
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_Stop_f (void)
 Removes all scientists from the selected research-list entry.
static void RS_GetDetails_f (void)
 Shows research image/model and title on the research screen.
static void RS_FillTechnologyList_f (void)
 Fills technology list on research UI.
static void RS_ShowActiveResearch_f (void)
 Show active research topics in Base sections.
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

◆ RS_Change_f()

void RS_Change_f ( void )
static

◆ RS_FillTechnologyList_f()

◆ RS_GetDetails_f()

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, technology_t::image, technology_t::mdl, technology_t::name, and RS_GetTechByID().

◆ RS_InitCallbacks()

void RS_InitCallbacks ( void )

Definition at line 254 of file cp_research_callbacks.cpp.

References cgi, and research_commands.

Referenced by CP_AddCampaignCallbackCommands().

◆ RS_Max_f()

◆ RS_ShowActiveResearch_f()

◆ RS_ShutdownCallbacks()

void RS_ShutdownCallbacks ( void )

Definition at line 259 of file cp_research_callbacks.cpp.

References cgi, and research_commands.

Referenced by CP_RemoveCampaignCallbackCommands().

◆ RS_Stop_f()

Variable Documentation

◆ research_commands

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.

Referenced by RS_InitCallbacks(), and RS_ShutdownCallbacks().