UFO: Alien Invasion
|
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 [] |
Menu related functions for research.
Definition in file cp_research_callbacks.cpp.
Script function to add and remove a scientist to the technology entry in the research-list.
Definition at line 75 of file cp_research_callbacks.cpp.
References B_GetCurrentSelectedBase(), technology_s::base, CAP_GetFreeCapacity(), CAP_GetMax, CAP_LABSPACE, cgi, cgame_import_s::Cmd_Argv(), E_CountHired(), E_CountUnassigned(), EMPL_SCIENTIST, technology_s::id, RS_AssignScientist(), RS_GetTechByID(), RS_RemoveScientist(), and technology_s::scientists.
Fills technology list on research UI.
Definition at line 158 of file cp_research_callbacks.cpp.
References _, B_GetCurrentSelectedBase(), technology_s::base, CAP_GetFreeCapacity(), CAP_GetMax, CAP_LABSPACE, ccs, cgi, E_CountHired(), E_CountUnassigned(), EMPL_SCIENTIST, i, technology_s::id, base_s::idx, base_s::name, technology_s::name, ccs_s::numTechnologies, technology_s::overallTime, RS_FINISH, RS_GetTechByIDX(), RS_MarkResearchable(), RS_RequirementsMet(), technology_s::scientists, technology_s::statusCollected, technology_s::statusResearch, technology_s::statusResearchable, and technology_s::time.
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().
Definition at line 254 of file cp_research_callbacks.cpp.
References cgi.
Referenced by CP_AddCampaignCallbackCommands().
Assign as many scientists to the research project as possible.
Definition at line 34 of file cp_research_callbacks.cpp.
References B_GetCurrentSelectedBase(), technology_s::base, CAP_GetFreeCapacity(), CAP_GetMax, CAP_LABSPACE, cgi, cgame_import_s::Cmd_Argv(), E_CountHired(), E_CountUnassigned(), E_GetUnassignedEmployee(), EMPL_SCIENTIST, technology_s::id, Employee::isAssigned(), RS_AssignScientist(), RS_GetTechByID(), and technology_s::scientists.
Show active research topics in Base sections.
Definition at line 214 of file cp_research_callbacks.cpp.
References B_GetFoundedBaseByIDX(), technology_s::base, ccs, cgi, cgame_import_s::Cmd_Argv(), i, technology_s::id, technology_s::name, ccs_s::numTechnologies, technology_s::overallTime, RS_GetTechByIDX(), RS_ResearchAllowed(), RS_RUNNING, technology_s::scientists, technology_s::statusResearch, and technology_s::time.
Definition at line 259 of file cp_research_callbacks.cpp.
References cgi.
Referenced by CP_RemoveCampaignCallbackCommands().
Removes all scientists from the selected research-list entry.
Definition at line 110 of file cp_research_callbacks.cpp.
References B_GetCurrentSelectedBase(), technology_s::base, CAP_GetFreeCapacity(), CAP_GetMax, CAP_LABSPACE, cgi, cgame_import_s::Cmd_Argv(), E_CountHired(), E_CountUnassigned(), EMPL_SCIENTIST, technology_s::id, RS_GetTechByID(), RS_StopResearch(), and technology_s::scientists.
|
static |
Definition at line 244 of file cp_research_callbacks.cpp.