UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cl_shared.h File Reference

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

#include "../common/common.h"
#include <libintl.h>
#include <locale.h>

Go to the source code of this file.

Data Structures

struct  geoscapeData_s
 

Macros

#define TEXT_DOMAIN   "ufoai"
 
#define _(String)   gettext(String)
 
#define gettext_noop(String)   String
 
#define N_(String)   gettext_noop (String)
 
#define INVDEF(containerID)   (&csi.ids[(containerID)])
 
#define XVI_WIDTH   512
 
#define XVI_HEIGHT   256
 
#define RADAR_WIDTH   512
 
#define RADAR_HEIGHT   256
 
#define MapDef_ForeachSingleplayer(var)   MapDef_ForeachCondition(var, (var)->singleplayer)
 
#define MapDef_ForeachSingleplayerCampaign(var)   MapDef_ForeachCondition(var, (var)->singleplayer && (var)->campaign)
 

Typedefs

typedef struct geoscapeData_s geoscapeData_t
 

Enumerations

enum  connstate_t {
  ca_uninitialized, ca_disconnected, ca_connecting, ca_connected,
  ca_active
}
 

Functions

mapDef_tCom_GetMapDefinitionByID (const char *mapDefID)
 

Variables

memPool_tcl_genericPool
 

Detailed Description

Share stuff between the different cgame implementations.

Definition in file cl_shared.h.

Macro Definition Documentation

#define _ (   String)    gettext(String)

Definition at line 43 of file cl_shared.h.

Referenced by AC_Init_f(), AII_UpdateOneInstallationDelay(), AII_WeightToName(), AIM_AircraftEquipMenuUpdate(), AIM_AircraftItemtypeName(), AIM_AircraftStart_f(), AIM_UpdateAircraftItemList(), AIM_UpdateItemDescription(), AIR_AircraftFillList_f(), AIR_AircraftSelect(), AIR_AircraftStatusToName(), AIR_CampaignRun(), AIR_ChangeAircraftName_f(), AIR_CheckMoveIntoNewHomebase(), AIR_GeoSelectAircraft_f(), AIR_LoadAircraftXML(), AIR_Move(), AIR_NewAircraft(), AIR_Refuel(), AIR_SendAircraftPursuingUFO(), AIR_SendAircraftToMission(), AIRFIGHT_ActionsAfterAirfight(), AIRFIGHT_ExecuteActions(), AL_AddAliens(), AM_AlienCollect(), AM_DisplayResults(), AM_Go_f(), B_BaseInit_f(), B_BuildBase_f(), B_BuildBuilding_f(), B_BuildingDestroy_f(), B_BuildingOpenAfterClick_f(), B_Destroy_AntimaterStorage_f(), B_FillMap_f(), B_InitCallbacks(), B_ListBuildings_f(), B_SellOrAddItems(), B_SetBaseTitle_f(), B_UpdateBuildingConstructions(), BDEF_AddSlotToSlotList(), BDEF_BaseDefenceMenuUpdate_f(), BDEF_SetAutoFire(), BDEF_UpdateAircraftItemList(), BS_Buy_f(), BS_FillMarket_f(), BS_MarketAircraftDescription(), CAP_CheckOverflow(), CHAR_UpdateStats(), CL_ActorAppear(), CL_ActorCheckAction(), CL_ActorDie(), CL_ActorGetSkillString(), CL_ActorInvMove(), CL_ActorReactionFireAddTarget(), CL_ActorReload(), CL_ActorRevitalised(), CL_ActorStateChange(), CL_ActorWound(), CL_AddTargetingBox(), CL_CanMultiplayerStart(), CL_ConnectionlessPacket(), CL_DisplayHomebasePopup(), CL_DisplayPopupInterceptMission(), CL_DisplayPopupInterceptUFO(), CL_DoEndRound(), CL_EventAddMail(), CL_NewLanguage(), CL_NextRound_f(), CL_ParseMessageID(), CL_ParseServerMessage(), CL_PopupInterceptClick_f(), CL_RContextCvarChange(), CL_RImagesCvarChange(), CL_Translate(), CL_ViewLoadMedia(), CL_WeaponSkillToName(), CLMN_AddBindings(), CLMN_AddUIBindings(), CP_BaseAttackMissionDestroyBase(), CP_BaseAttackPrepareBattle(), CP_BaseAttackStartMission(), CP_CheckLostCondition(), CP_CreateBattleParameters(), CP_EndGame_f(), CP_MissionAddToGeoscape(), CP_MissionEndActions(), CP_MissionGetMessage(), CP_SpawnUFOCarrier_f(), CP_TEAM_FillBDEFEmployeeList_f(), CP_TEAM_FillEmployeeList_f(), CP_ToDifficultyName(), CP_UFOCarrierMissionUpdate(), CP_UpdateActorAircraftVar(), CP_UpdateCredits(), CP_UpdateTime(), Date_GetMonthName(), uiButtonNode::draw(), E_EmployeeDelete_f(), E_EmployeeHire_f(), E_HireEmployee(), G_ActionCheck(), G_ActionCheckForCurrentTeam(), G_ActorInvMove(), G_CheckFlood(), G_CheckForceEndRound(), G_ClientShoot(), G_ClientStateChange(), G_MissionReset(), G_MissionTouch(), G_ReactionFireCanBeEnabled(), G_ShootGrenade(), GAME_CP_CampaignDescription_f(), GAME_CP_CharacterCvars(), GAME_CP_InitMissionBriefing(), GAME_MP_BookmarkAdd_f(), GAME_MP_Connect_f(), GAME_MP_EndRoundAnnounce(), GAME_MP_InitUI_f(), GAME_MP_MapInfo(), GAME_MP_ParseServerInfoMessage(), GAME_MP_ParseTeamInfoMessage(), GAME_MP_Results(), GAME_MP_SelectTeam_Init_f(), GAME_MP_SetTeamNum(), GAME_MP_StartServer_f(), GAME_SaveTeam_f(), GAME_SK_InitMissionBriefing(), GAME_SK_Results(), GAME_StartBattlescape(), GEO_Draw(), GEO_DrawMapOneMission(), GEO_DrawMarkers(), GEO_GetAircraftText(), GEO_GetMissionText(), GEO_GetUFOText(), GEO_UpdateGeoscapeDock(), HOS_EntryWoundData(), HOS_GetRank(), HUD_ActorWoundData_f(), HUD_CheckReload(), HUD_CheckShooting(), HUD_DisplayFiremodeEntry(), HUD_FireWeapon_f(), HUD_GetPenaltyString(), HUD_PopupFiremodeReservation(), HUD_ReloadLeft_f(), HUD_ReloadRight_f(), HUD_ToggleCrouchReservation_f(), HUD_ToggleReaction_f(), HUD_UpdateActor(), HUD_UpdateActorCvar(), HUD_UpdateActorFireMode(), HUD_UpdateActorLoad_f(), HUD_UpdateActorMove(), HUD_UpdateActorStats(), HUD_UpdateButtons(), HUD_WeaponCanBeReloaded(), IN_JoystickInitMenu(), INS_BuildInstallation_f(), INS_DestroyInstallation(), INS_DestroyInstallation_f(), INS_FillTypes_f(), INS_FillUFOYardData_f(), INS_SetInstallationTitle(), INS_UpdateInstallationData(), INV_ItemDescription(), INV_MoveItem(), INV_UpdateActorLoad_f(), Irc_Logic_ReadMessages(), Irc_Proto_ProcessServerMsg(), MIS_GetName(), MIS_InitResultScreen(), MS_LoadXML(), MS_TimestampedText(), NAT_GetHappinessString(), NAT_HandleBudget(), NAT_ListStats_f(), NAT_SetHappiness(), PR_AircraftInfo(), PR_CheckFrame(), PR_DisassemblyInfo(), PR_FinishDisassembly(), PR_FinishProduction(), PR_GetName(), PR_ItemProductionInfo(), PR_ProductionIncrease_f(), PR_ProductionInfo(), PR_QueueNext(), PR_RequirementsInfo(), PR_UpdateProductionList(), RS_AssignScientist(), RS_CheckRequirements(), RS_FillTechnologyList_f(), RS_GetDetails_f(), RS_MarkCollected(), RS_MarkOneResearchable(), RS_ParseTechnologies(), RS_ResearchFinish(), RS_ResearchRun(), SAV_GameContinue_f(), SAV_GameLoad(), SAV_GameLoad_f(), SAV_GameQuickLoad_f(), SAV_GameQuickSave_f(), SAV_GameSave(), SAV_GameSave_f(), SAV_GameSaveAllowed(), SCR_DrawDownloading(), STAT_GetExpenses_f(), STATS_Update_f(), Think_NextMapTrigger(), Touch_NextMapTrigger(), TR_CargoList(), TR_DestinationCapacityList_f(), TR_EmptyTransferCargo(), TR_FillAliens(), TR_FillEmployees(), TR_FillItems(), TR_List_f(), TR_TransferEnd(), TR_TransferStart_f(), TUT_GetTutorials_f(), UFO_CampaignCheckEvents(), UFO_GetName(), UFO_SearchAircraftTarget(), UFO_TypeToName(), UI_BaseInventoryNodeDrawItems(), UI_BaseInventoryNodeGetItem(), UI_DrawFree(), UI_GetItemTooltip(), UI_RegisterFont(), UI_Tooltip(), UI_Window_SetCloseButton(), UI_Window_SetDragButton(), UP_AircraftDescription(), UP_AircraftItemDescription(), UP_AircraftStatToName(), UP_Article(), UP_BuildingDescription(), UP_ChangeDisplay(), UP_DisplayTechTree(), UP_GenerateSummary(), UP_OpenMail_f(), UP_SetMailHeader(), UP_UGVDescription(), UR_DialogInitSell_f(), UR_DialogStartSell_f(), UR_DialogStartStore_f(), UR_ProcessActive(), US_DestroyStoredUFO_f(), US_FillUFOTransfer_f(), and US_TransferUFO().

#define gettext_noop (   String)    String

Definition at line 44 of file cl_shared.h.

#define MapDef_ForeachSingleplayer (   var)    MapDef_ForeachCondition(var, (var)->singleplayer)

Definition at line 82 of file cl_shared.h.

#define MapDef_ForeachSingleplayerCampaign (   var)    MapDef_ForeachCondition(var, (var)->singleplayer && (var)->campaign)
#define N_ (   String)    gettext_noop (String)
#define RADAR_HEIGHT   256
#define TEXT_DOMAIN   "ufoai"

Definition at line 42 of file cl_shared.h.

Referenced by CL_Init().

Typedef Documentation

Enumeration Type Documentation

Enumerator
ca_uninitialized 
ca_disconnected 

not talking to a server

ca_connecting 

sending request packets to the server

ca_connected 

netchan_t established, waiting for svc_serverdata

ca_active 

game views should be displayed

Definition at line 74 of file cl_shared.h.

Function Documentation

mapDef_t* Com_GetMapDefinitionByID ( const char *  mapDefID)

Definition at line 3620 of file scripts.cpp.

Referenced by GAME_GetImportData(), and TEST_F().

Variable Documentation