|
UFO: Alien Invasion
|
Singleplayer campaign game type code. More...
#include "../../cl_shared.h"#include "../cl_game.h"#include "cp_cgame_callbacks.h"#include "cl_game_campaign.h"
Go to the source code of this file.
Functions | |
| void | GEO_Draw (geoscapeData_t *data) |
| Draw the geoscape. | |
| void | GEO_DrawMarkers (const uiNode_t *node) |
| Draws all ufos, aircraft, bases and so on to the geoscape map (2D and 3D). | |
| bool | GEO_Click (const uiNode_t *node, int x, int y, const vec2_t pos) |
| Click on the map/geoscape. | |
| CGAME_HARD_LINKED_FUNCTIONS linkedList_t * | LIST_Add (linkedList_t **listDest, void const *data, size_t length) |
| void | FS_CloseFile (qFILE *f) |
| void | LIST_Sort (linkedList_t **list, linkedListSort_t sorter, const void *userData) |
| linkedList_t * | LIST_CopyStructure (linkedList_t *src) |
| void * | _Mem_Alloc (size_t size, bool zeroFill, memPool_t *pool, const int tagNum, const char *fileName, const int fileLine) |
| int | Com_GetMapDefNumber (void) |
| mapDef_t * | Com_GetMapDefByIDX (int index) |
| const cgame_export_t * | GetCGameAPI (const cgame_import_t *import) |
Singleplayer campaign game type code.
Definition in file cl_game_campaign.cpp.
| void * _Mem_Alloc | ( | size_t | size, |
| bool | zeroFill, | ||
| memPool_t * | pool, | ||
| const int | tagNum, | ||
| const char * | fileName, | ||
| const int | fileLine ) |
Definition at line 56 of file cl_game_campaign.cpp.
References cgi.
Referenced by GAME_GetImportData(), and SV_TagAlloc().
Definition at line 64 of file cl_game_campaign.cpp.
Referenced by GAME_GetCurrentSelectedMap(), and UI_MapInfoGetNext().
Definition at line 60 of file cl_game_campaign.cpp.
References cgi.
Definition at line 43 of file cl_game_campaign.cpp.
Referenced by CIN_OGM_CloseCinematic(), CIN_ROQ_CloseCinematic(), CIN_ROQ_OpenCinematic(), Com_Error(), Com_Quit(), FS_FileExists(), GAME_GetImportData(), Key_WriteBindings(), and cgame_import_t::void().
Click on the map/geoscape.
| [in] | node | UI Node of the geoscape map |
| [in] | x,y | Mouse click coordinates |
| [in] | pos | Geoscape (longitude, latitude) coordinate of the click |
Definition at line 107 of file cp_geoscape.cpp.
References AIR_AircraftHasEnoughFuel(), AIR_Foreach, AIR_IsAircraftOnGeoscape(), AIR_TRANSIT, aircraft_t::aircraftTarget, B_GetCount(), B_GetNext(), ccs, cgi, CP_GameTimeStop(), GEO_CalcLine(), GEO_GetColor(), GEO_GetSelectedAircraft, GEO_IsPositionSelected(), GEO_ResetAction(), base_t::idx, INS_Foreach, MA_NEWBASE, MA_NEWINSTALLATION, MapIsWater, MAPTYPE_TERRAIN, MAX_BASES, MIS_Foreach, MIS_GetIdx(), MIS_GetName(), base_t::name, aircraft_t::point, aircraft_t::pos, base_t::pos, aircraft_t::route, STAGE_NOT_ACTIVE, aircraft_t::status, aircraft_t::time, UFO_GetGeoscapeIDX, UFO_GetName(), UFO_GetNextOnGeoscape(), and Vector2Copy.
Referenced by GetCGameAPI().
|
extern |
Draw the geoscape.
| [in] | data | Geoscape status data structure |
Definition at line 1589 of file cp_geoscape.cpp.
References _, AIR_IsAircraftInBase(), ccs, cgi, Com_sprintf(), CP_IsRunning(), data, GEO_GetAircraftText(), GEO_GetMissionText(), GEO_GetSelectedAircraft, GEO_GetSelectedMission, GEO_GetSelectedUFO, GEO_GetUFOText(), GEO_IsNationOverlayActivated(), GEO_IsRadarOverlayActivated(), GEO_IsXVIOverlayActivated(), GEO_ResetAction(), geoscapeNode, cvar_t::integer, lengthof, MA_NEWBASE, MA_NEWINSTALLATION, MA_NONE, TEXT_STANDARD, and textStandard.
Referenced by GetCGameAPI().
Draws all ufos, aircraft, bases and so on to the geoscape map (2D and 3D).
| [in] | node | The menu node which will be used for drawing markers. |
Definition at line 1432 of file cp_geoscape.cpp.
References _, aircraftProjectile_t::aimedAircraft, AIR_Foreach, AIR_IsAircraftOnGeoscape(), aircraftProjectile_t::aircraftItem, ALIGN_UC, aircraftProjectile_t::angle, aircraftProjectile_t::attackerPos, aircraftProjectile_t::attackingAircraft, B_GetNext(), aircraftProjectile_t::beam, craftItem::beamColor, aircraftProjectile_t::bullets, ccs, cgi, uiNode_t::color, CP_IsXVIVisible(), objDef_t::craftitem, data, aircraft_t::direction, GEO_3DMapDrawLine(), GEO_AllMapToScreen(), GEO_AngleOfPath(), GEO_Draw3DMarkerIfVisible(), GEO_DrawAircraftHealthBar(), GEO_DrawBeam(), GEO_DrawBullets(), GEO_DrawMapOneBase(), GEO_DrawMapOneInstallation(), GEO_DrawMapOneMission(), GEO_DrawMapOnePhalanxAircraft(), GEO_IsUFOSelected, GEO_MapDrawEquidistantPoints(), GEO_MapDrawLine(), GEO_RenderImage(), aircraftProjectile_t::hasMoved, i, aircraftProjectile_t::idleTarget, INS_Foreach, LinearInterpolation, MIS_Foreach, aircraft_t::model, objDef_t::model, NAT_Foreach, NAT_GetCurrentMonthInfo(), aircraftProjectile_t::numInterpolationPoints, mapline_t::numPoints, mapline_t::point, aircraft_t::pos, aircraftProjectile_t::pos, aircraftProjectile_t::projectedPos, Q_strcat(), aircraft_t::route, RS_IsResearched_ptr(), SELECT_CIRCLE_RADIUS, aircraft_t::tech, TEXT_XVI, UFO_GetNextOnGeoscape(), UI_MAPEXTRADATACONST, VectorCopy, nationInfo_t::xviInfection, and yellow.
Referenced by GetCGameAPI().
| const cgame_export_t * GetCGameAPI | ( | const cgame_import_t * | import | ) |
Definition at line 69 of file cl_game_campaign.cpp.
References cgi, GAME_CP_CharacterCvars(), GAME_CP_DrawBaseLayout(), GAME_CP_DrawBaseLayoutTooltip(), GAME_CP_Drop(), GAME_CP_Frame(), GAME_CP_GetEquipmentDefinition(), GAME_CP_GetItemModel(), GAME_CP_GetSelectedChr(), GAME_CP_GetTeamDef(), GAME_CP_InitializeBattlescape(), GAME_CP_InitMissionBriefing(), GAME_CP_InitStartup(), GAME_CP_ItemIsUseable(), GAME_CP_Results(), GAME_CP_Shutdown(), GAME_CP_Spawn(), GAME_CP_TeamIsKnown(), GEO_Click(), GEO_Draw(), GEO_DrawMarkers(), cgame_export_t::GetEquipmentDefinition(), cgame_export_t::GetModelForItem(), cgame_export_t::GetSelectedChr(), cgame_export_t::GetTeamDef(), cgame_export_t::menu, cgame_export_t::name, and OBJZERO.
Referenced by GAME_GetCGameAPI().
| CGAME_HARD_LINKED_FUNCTIONS linkedList_t * LIST_Add | ( | linkedList_t ** | listDest, |
| void const * | data, | ||
| size_t | length ) |
Definition at line 39 of file cl_game_campaign.cpp.
References cgi, data, and length.
Referenced by AB_BuildBase(), AB_LoadXML(), AIR_Add(), CHAR_ParseData(), CITY_Parse(), CL_DisplayHomebasePopup(), CL_ParseNations(), Com_ParseActorModels(), Com_ParseActorNames(), Com_ParseBodyTemplate(), Com_ParseFireDefinition(), Com_ParseItem(), CP_CreateNewMission(), E_CreateEmployee(), E_LoadXML(), GAME_GetImportData(), HUD_PopupFiremodeReservation(), INS_Build(), INS_LoadXML(), MIS_LoadXML(), TEST_F(), TR_LoadXML(), TR_TransferStart(), UI_AddLineChartLine(), US_LoadXML(), and US_StoreUFO().
| linkedList_t * LIST_CopyStructure | ( | linkedList_t * | src | ) |
Definition at line 52 of file cl_game_campaign.cpp.
References cgi.
Referenced by GAME_GetImportData(), and TEST_F().
| void LIST_Sort | ( | linkedList_t ** | list, |
| linkedListSort_t | sorter, | ||
| const void * | userData ) |
Definition at line 48 of file cl_game_campaign.cpp.
References cgi.
Referenced by GAME_GetImportData(), and TEST_F().