|
UFO: Alien Invasion
|
#include "../../cl_shared.h"#include "../../ui/ui_dataids.h"#include "cp_campaign.h"#include "cp_geoscape.h"#include "cp_event_callbacks.h"#include "cp_missions.h"
Go to the source code of this file.
Functions | |
| static void | CP_AddTechAsResearchable_f (void) |
| static void | CP_AddItemAsCollected_f (void) |
| For things like craft_ufo_scout that are no real items this function will increase the collected counter by one. | |
| static void | CP_ChangeNationHappiness_f (void) |
| Changes nation happiness by given value. | |
| static void | CP_EndGame_f (void) |
| void | CP_CampaignTriggerFunctions (bool add) |
| Add/Remove temporary mission trigger functions. | |
Variables | |
| static const cmdList_t | cp_commands [] |
| mission trigger functions | |
For things like craft_ufo_scout that are no real items this function will increase the collected counter by one.
Definition at line 56 of file cp_event_callbacks.cpp.
References B_GetBaseByIDX(), cgi, DEBUG_CLIENT, id, objDef_t::id, objDef_t::idx, INVSH_GetItemByIDSilent(), equipDef_t::numItems, RS_GetTechForItem(), RS_MarkCollected(), and base_t::storage.
Definition at line 37 of file cp_event_callbacks.cpp.
References cgi, RS_GetTechByID(), and RS_MarkOneResearchable().
| void CP_CampaignTriggerFunctions | ( | bool | add | ) |
Add/Remove temporary mission trigger functions.
| [in] | add | If true, add the trigger functions, otherwise delete them |
Definition at line 147 of file cp_event_callbacks.cpp.
References cgi, cp_commands, cmdList_t::description, cmdList_t::function, and cmdList_t::name.
Referenced by CP_ExecuteMissionTrigger(), and CP_TriggerEvent().
Changes nation happiness by given value.
Definition at line 88 of file cp_event_callbacks.cpp.
References ccs, cgi, GEO_GetNation(), GEO_GetSelectedMission, nationInfo_t::happiness, NAT_GetCurrentMonthInfo(), NAT_SetHappiness(), and mission_t::pos.
Definition at line 118 of file cp_event_callbacks.cpp.
References _, cgi, CP_EndCampaign(), and TEXT_STANDARD.
|
static |
mission trigger functions
Definition at line 133 of file cp_event_callbacks.cpp.
Referenced by CP_CampaignTriggerFunctions().