cl_shared.h File Reference

Share stuff between the different cgame implementations. More...

#include "../common/common.h"
#include <libintl.h>
#include <locale.h>
#include "../common/common.h"
Include dependency graph for cl_shared.h:
This graph shows which files directly or indirectly include this file:

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_tCom_GetMapDefinitionByID (const char *mapDefID)
mapDef_tCom_GetMapDefByIDX (int index)

Detailed Description

Share stuff between the different cgame implementations.

Definition in file cl_shared.h.


Define Documentation

#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 (  )     (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)])
#define EXTENSION (  )     (CONTAINER(e, csi.idExtension))

Definition at line 48 of file cl_shared.h.

#define FLOOR (  )     (CONTAINER(e, csi.idFloor))
#define gettext_noop ( String   )     String

Definition at line 38 of file cl_shared.h.

#define HEADGEAR (  )     (CONTAINER(e, csi.idHeadgear))
#define HOLSTER (  )     (CONTAINER(e, csi.idHolster))

Definition at line 49 of file cl_shared.h.

Referenced by CL_SwapSkills().

#define INVDEF ( containerID   )     (&csi.ids[(containerID)])
#define LEFT (  )     (CONTAINER(e, csi.idLeft))
#define N_ ( String   )     gettext_noop (String)

Definition at line 39 of file cl_shared.h.

#define RIGHT (  )     (CONTAINER(e, csi.idRight))
#define TEXT_DOMAIN   "ufoai"

Definition at line 35 of file cl_shared.h.

Referenced by CL_Init().


Typedef Documentation

typedef struct chr_list_s chrList_t
typedef struct mapDef_s mapDef_t

Function Documentation

mapDef_t* Com_GetMapDefByIDX ( int  index  ) 
mapDef_t* Com_GetMapDefinitionByID ( const char *  mapDefID  ) 

Generated by  doxygen 1.6.2