Share stuff between the different cgame implementations. More...
#include "../common/common.h"
#include <libintl.h>
#include <locale.h>
#include "../common/common.h"
Go to the source code of this file.
Data Structures | |
struct | chr_list_s |
struct | mapDef_s |
Defines | |
#define | TEXT_DOMAIN "ufoai" |
#define | _(String) gettext(String) |
#define | gettext_noop(String) String |
#define | N_(String) gettext_noop (String) |
#define | CONTAINER(e, containerID) ((e)->i.c[(containerID)]) |
#define | ARMOUR(e) (CONTAINER(e, csi.idArmour)) |
#define | RIGHT(e) (CONTAINER(e, csi.idRight)) |
#define | LEFT(e) (CONTAINER(e, csi.idLeft)) |
#define | FLOOR(e) (CONTAINER(e, csi.idFloor)) |
#define | HEADGEAR(e) (CONTAINER(e, csi.idHeadgear)) |
#define | EXTENSION(e) (CONTAINER(e, csi.idExtension)) |
#define | HOLSTER(e) (CONTAINER(e, csi.idHolster)) |
#define | INVDEF(containerID) (&csi.ids[(containerID)]) |
Typedefs | |
typedef struct chr_list_s | chrList_t |
typedef struct mapDef_s | mapDef_t |
Functions | |
mapDef_t * | Com_GetMapDefinitionByID (const char *mapDefID) |
mapDef_t * | Com_GetMapDefByIDX (int index) |
Share stuff between the different cgame implementations.
Definition in file cl_shared.h.
#define _ | ( | String | ) | gettext(String) |
Definition at line 37 of file cl_shared.h.
Referenced by AC_AlienClick(), AC_UpdateMenu(), ACTOR_InitStartup(), AII_UpdateOneInstallationDelay(), AII_WeightToName(), AIM_AircraftEquipMenuUpdate(), AIM_AircraftItemtypeName(), AIM_AircraftStart_f(), AIM_UpdateAircraftItemList(), AIM_UpdateItemDescription(), AIR_AircraftSelect(), AIR_AircraftStatusToName(), AIR_CheckMoveIntoNewHomebase(), AIR_GetAircraftString(), AIR_LoadAircraftXML(), AIR_NewAircraft(), AIR_Refuel(), AIR_SendAircraftPursuingUFO(), AIR_SendAircraftToMission(), AIRFIGHT_ActionsAfterAirfight(), AIRFIGHT_ExecuteActions(), AL_AddAliens(), B_BaseInit_f(), B_BuildBase_f(), B_BuildingAddToList(), B_BuildingOpenAfterClick(), B_BuildingStatus(), B_CheckBuildingStatusForMenu_f(), B_Destroy_AntimaterStorage_f(), B_DrawBuilding(), B_InitCallbacks(), B_ManageAntimatter(), B_MarkBuildingDestroy(), B_SellOrAddItems(), B_SetBaseTitle_f(), B_SetBuildingByClick(), B_UpdateBaseData(), BaseSummary_Init(), BDEF_AddSlotToSlotList(), BDEF_BaseDefenceMenuUpdate_f(), BDEF_UpdateAircraftItemList(), BS_AddToList(), BS_BuyAircraft_f(), BS_BuyItem_f(), BS_CheckAndDoBuyItem(), BS_MarketAircraftDescription(), BS_SellAircraft_f(), CL_ActorAppear(), CL_ActorCheckAction(), CL_ActorDie(), CL_ActorGetSkillString(), CL_ActorReload(), CL_ActorRevitalised(), CL_AddTargetingBox(), CL_AircraftSizeToName(), CL_AircraftStatToName(), CL_AutoMissionAlienCollect(), CL_BookmarkAdd_f(), CL_CampaignRunAircraft(), CL_CanMultiplayerStart(), CL_Connect_f(), CL_ConnectionlessPacket(), CL_DisplayHomebasePopup(), CL_DisplayPopupAircraft(), CL_DisplayPopupInterceptMission(), CL_DisplayPopupInterceptUFO(), CL_DoEndRound(), CL_EventAddMail_f(), CL_GameAutoGo(), CL_InitLocal(), CL_NationStatsUpdate_f(), CL_NewLanguage(), CL_ParseServerInfoMessage(), CL_ParseServerMessage(), CL_ParseTeamInfoMessage(), CL_PopupInterceptClick_f(), CL_ResearchType_f(), CL_SelectTeam_Init_f(), CL_SendCommand(), CL_ServerEventsInit(), CL_StatsUpdate_f(), CL_TeamDefInitMenu(), CL_TeamNum_f(), CL_UpdateActorAircraftVar(), CL_UpdateCharacterStats(), CL_UpdateCredits(), CL_UpdateTime(), CL_ViewLoadMedia(), CL_WeaponSkillToName(), Con_Init(), CP_BaseAttackMissionDestroyBase(), CP_BaseAttackStartMission(), CP_CheckLostCondition(), CP_EndGame_f(), CP_HarvestMissionGo(), CP_InitMissionResults(), CP_MissionAddToGeoscape(), CP_MissionEndActions(), CP_MissionGetMessage(), CP_MissionToTypeString(), CP_NationHandleBudget(), CP_ReconMissionGroundGo(), CP_SpawnAlienBaseMission(), CP_SpawnCrashSiteMission(), CP_SpawnRescueMission(), CP_TerrorMissionGo(), CP_ToDifficultyName(), Date_GetMonthName(), E_EmployeeDelete_f(), E_EmployeeHire_f(), E_GetEmployeeString(), E_HireEmployee(), G_ActionCheck(), G_ActionCheckForCurrentTeam(), G_ActorInvMove(), G_ActorSetInRescueZone(), G_CheckFlood(), G_CheckForceEndRound(), G_ClientShoot(), G_ClientStateChange(), G_Damage(), G_MissionTouch(), G_MoraleBehaviour(), G_MoralePanic(), G_MoraleRage(), G_ReactionFireCanBeEnabled(), G_ShootGrenade(), GAME_CP_CampaignListClick_f(), GAME_CP_CharacterCvars(), GAME_CP_GetCampaigns_f(), GAME_MP_EndRoundAnnounce(), GAME_MP_MapInfo(), GAME_MP_Results(), GAME_MP_StartServer_f(), GAME_SK_Results(), HOS_UpdateMenu(), HUD_CheckReload(), HUD_CheckShooting(), HUD_DisplayFiremodeEntry(), HUD_FireWeapon_f(), HUD_InitCallbacks(), HUD_InitStartup(), HUD_PopupFiremodeReservation(), HUD_RefreshButtons(), HUD_UpdateActor(), HUD_UpdateActorCvar(), HUD_UpdateActorFireMode(), HUD_UpdateActorMove(), HUD_UpdateAllActors(), HUD_WeaponCanBeReloaded(), IN_Init(), IN_JoystickInitMenu(), INS_BuildInstallation_f(), INS_DestroyInstallation(), INS_DestroyInstallation_f(), INS_ParseInstallations(), INS_SetInstallationTitle(), INS_UpdateInstallationData(), INV_InitCallbacks(), INV_ItemDescription(), Irc_Logic_ReadMessages(), Irc_Proto_ProcessServerMsg(), MAP_DrawMap(), MAP_DrawMapMarkers(), MAP_DrawMapOneMission(), MAP_GetAircraftText(), MAP_GetMissionText(), MAP_GetShortMissionText(), MAP_GetUFOText(), MAP_MapClick(), MP_SaveTeamMultiplayer_f(), MS_TimestampedText(), NAT_GetHappinessString(), NAT_SetHappiness(), PR_AircraftInfo(), PR_DisassemblingFrame(), PR_DisassemblyInfo(), PR_ItemProductionInfo(), PR_ProductionFrame(), PR_ProductionIncrease_f(), PR_ProductionInfo(), PR_QueueNew(), PR_QueueNext(), PR_UpdateProductionList(), RS_AssignScientist(), RS_InitGUI(), RS_MarkCollected(), RS_MarkOneResearchable(), RS_ParseTechnologies(), RS_ResearchFinish(), RS_ResearchRun(), RS_ResearchStart_f(), RS_ResearchStop_f(), RS_ShowPedia_f(), RS_UpdateInfo(), SAV_GameContinue_f(), SAV_GameLoad(), SAV_GameLoad_f(), SAV_GameQuickLoad_f(), SAV_GameQuickSave_f(), SAV_GameSave(), SAV_GameSave_f(), SAV_Init(), SAV_QuickSave(), SCR_DrawDownloading(), SCR_DrawLoading(), SEQ_Render2D(), TR_CargoList(), TR_CheckAircraft(), TR_CheckAlien(), TR_CheckEmployee(), TR_CheckItem(), TR_EmptyTransferCargo(), TR_TransferAlienAfterMissionStart(), TR_TransferBaseSelect(), TR_TransferEnd(), TR_TransferListSelect_f(), TR_TransferSelect(), TR_TransferStart_f(), TUT_GetTutorials_f(), UFO_AircraftToIDOnGeoscape(), UFO_CampaignCheckEvents(), UFO_MissionResultToString(), UFO_SearchAircraftTarget(), UFO_TypeToName(), UI_BaseInventoryNodeDrawItems(), UI_BaseInventoryNodeGetItem(), UI_BaseMapNodeDrawTooltip(), UI_ButtonNodeDraw(), UI_CheckCvar(), UI_DrawFree(), UI_ExecuteSetAction(), UI_GetItemTooltip(), UI_GetReferenceString(), UI_InitWindows(), UI_KeyBindingNodeDraw(), UI_KeyBindingNodeKeyPressed(), UI_OptionListNodeDraw(), UI_OptionNodeRemoveHigherOption(), UI_OptionTreeNodeDraw(), UI_RegisterFont(), UI_SelectBoxNodeDraw(), UI_SelectBoxNodeDrawOverWindow(), UI_TabNodeDraw(), UI_TabNodeDrawTooltip(), UI_TabNodeTabAtPosition(), UI_TextNodeDraw(), UI_TextNodeGenerateLineSplit(), UI_TextUpdateCache(), UI_Tooltip(), UI_Translate_f(), UI_WindowNodeLoaded(), UP_AircraftDescription(), UP_AircraftItemDescription(), UP_Article(), UP_BuildingDescription(), UP_ChangeDisplay(), UP_DisplayTechTree(), UP_GenerateSummary(), UP_OpenMail_f(), UP_SetMailHeader(), UP_UGVDescription(), UR_CompareByName(), UR_DialogFillNations(), UR_DialogInitStore_f(), UR_DialogSelectSellNation_f(), UR_DialogStartSell_f(), UR_DialogStartStore_f(), and UR_ProcessActive().
#define ARMOUR | ( | e | ) | (CONTAINER(e, csi.idArmour)) |
Definition at line 43 of file cl_shared.h.
Referenced by AII_CollectingItems().
#define CONTAINER | ( | e, | |||
containerID | ) | ((e)->i.c[(containerID)]) |
Definition at line 42 of file cl_shared.h.
Referenced by AI_SearchBestTarget(), AI_TryToReloadWeapon(), AII_CarriedItems(), AIR_GetStorageRoom(), AIR_MoveEmployeeInventoryIntoStorage(), AIR_TransferItemsCarriedByCharacterToBase(), CL_ActorEquipmentSelect_f(), CL_CleanupAircraftCrew(), CL_UpdateEmployeeList(), E_RemoveInventoryFromStorage(), G_ActorReload(), G_ClientCanReload(), G_ClientGetWeaponFromInventory(), G_Damage(), G_InventoryDropToFloorCheck(), G_InventoryRemoveItemByID(), G_InventoryToFloor(), G_MissionTouch(), G_SendInventory(), and HUD_WeaponCanBeReloaded().
#define EXTENSION | ( | e | ) | (CONTAINER(e, csi.idExtension)) |
Definition at line 48 of file cl_shared.h.
#define FLOOR | ( | e | ) | (CONTAINER(e, csi.idFloor)) |
Definition at line 46 of file cl_shared.h.
Referenced by AII_CollectingItems(), CL_ActorDie(), CL_ActorDoMove(), CL_ActorRevitalised(), CL_ActorStateChange(), CL_EntPerish(), G_ActorDieOrStun(), G_ActorInvMove(), G_ClientMove(), G_GetFloorItems(), G_InventoryToFloor(), G_MissionThink(), LE_DoEndPathMove(), and LE_PlaceItem().
#define gettext_noop | ( | String | ) | String |
Definition at line 38 of file cl_shared.h.
#define HEADGEAR | ( | e | ) | (CONTAINER(e, csi.idHeadgear)) |
Definition at line 47 of file cl_shared.h.
Referenced by CL_ActorUseHeadgear_f(), G_PrepareShot(), HUD_RefreshButtons(), and HUD_UpdateActorFireMode().
#define HOLSTER | ( | e | ) | (CONTAINER(e, csi.idHolster)) |
Definition at line 49 of file cl_shared.h.
Referenced by CL_SwapSkills().
#define INVDEF | ( | containerID | ) | (&csi.ids[(containerID)]) |
Definition at line 51 of file cl_shared.h.
Referenced by AI_TryToReloadWeapon(), AII_CarriedItems(), AIL_reload(), AIR_GetStorageRoom(), AIR_MoveEmployeeInventoryIntoStorage(), AIR_TransferItemsCarriedByCharacterToBase(), CL_ActorGetContainerForReload(), CL_CleanTempInventory(), CL_CleanupAircraftCrew(), CL_EntPerish(), CL_InvAdd(), CL_InvAmmo(), CL_InvDel(), CL_InvReload(), CL_LoadInventoryXML(), CL_SaveInventoryXML(), CL_UpdateEmployeeList(), E_RemoveInventoryFromStorage(), G_ActorReload(), G_AddItemToFloor(), G_ClientAction(), G_ClientGetWeaponFromInventory(), G_ClientShoot(), G_InventoryDropToFloorCheck(), G_InventoryRemoveItemByID(), G_InventoryToFloor(), G_MissionTouch(), G_MoralePanic(), G_ReadItem(), G_SendInventory(), G_SpawnItemOnFloor(), LE_Cleanup(), UI_ContainerNodeAutoPlace(), UI_ContainerNodeUpdateEquipment(), and UI_DrawFree().
#define LEFT | ( | e | ) | (CONTAINER(e, csi.idLeft)) |
Definition at line 45 of file cl_shared.h.
Referenced by AI_ActorThink(), AI_GetItemForShootType(), AI_HideNeeded(), AIL_roundsleft(), CL_ActorCvars(), CL_ActorGetMuzzle(), G_ActorHasReactionFireEnabledWeapon(), G_AppearPerishEvent(), G_ClientShoot(), G_MoralePanic(), G_PrepareShot(), HUD_CheckShooting(), HUD_GetLeftHandWeapon(), HUD_RefreshButtons(), HUD_UpdateActor(), HUD_UpdateActorCvar(), HUD_UpdateAllActors(), and HUD_WeaponWithReaction().
#define N_ | ( | String | ) | gettext_noop (String) |
Definition at line 39 of file cl_shared.h.
#define RIGHT | ( | e | ) | (CONTAINER(e, csi.idRight)) |
Definition at line 44 of file cl_shared.h.
Referenced by AI_ActorThink(), AI_GetItemForShootType(), AI_HideNeeded(), AIL_roundsleft(), CL_ActorCvars(), CL_ActorGetMuzzle(), CL_CleanupAircraftCrew(), CL_SwapSkills(), G_ActorHasReactionFireEnabledWeapon(), G_ActorReload(), G_AppearPerishEvent(), G_ClientCanReload(), G_MoralePanic(), G_PrepareShot(), G_ReactionFirePreShot(), G_ReactionFireSearchTarget(), G_ReactionFireTryToShoot(), HUD_GetLeftHandWeapon(), HUD_RefreshButtons(), HUD_ReloadRight_f(), HUD_UpdateActor(), HUD_UpdateActorCvar(), HUD_UpdateActorFireMode(), HUD_UpdateAllActors(), and HUD_WeaponWithReaction().
#define TEXT_DOMAIN "ufoai" |
Definition at line 35 of file cl_shared.h.
Referenced by CL_Init().
typedef struct chr_list_s chrList_t |
mapDef_t* Com_GetMapDefByIDX | ( | int | index | ) |
Definition at line 829 of file cl_game.c.
References cls, and client_static_s::mds.
Referenced by CL_ParseMapDefinition(), CL_ResetSinglePlayerData(), Com_GetMapDefinitionByID(), CP_ChooseMap(), CP_MapIsSelectable(), CP_SaveMapDefStatXML(), GAME_CP_MapInfo(), GAME_MP_ChangeGametype_f(), GAME_MP_MapInfo(), GAME_MP_StartServer_f(), GAME_SK_MapInfo(), GAME_SK_Start_f(), NAT_ScriptSanityCheck(), UI_MapInfoGetNext(), and UI_SelectMap_f().
mapDef_t* Com_GetMapDefinitionByID | ( | const char * | mapDefID | ) |
Definition at line 813 of file cl_game.c.
References cls, Com_DPrintf(), Com_GetMapDefByIDX(), DEBUG_CLIENT, i, mapDef_s::id, and client_static_s::numMDs.
Referenced by CP_BaseAttackGoToBase(), CP_ChooseMap(), CP_LoadMapDefStatXML(), CP_LoadMissionsXML(), and CP_SpawnAlienBaseMission().