28 #include "../../common/xml.h" 29 #include "../../common/http.h" 31 #include "../cl_inventory.h" 32 #include "../../common/binaryexpressionparser.h" 34 struct cgame_import_s;
36 typedef struct cgame_export_s {
52 const char* (
EXPORT* GetModelForItem) (
const char*
string);
68 void (
EXPORT* RunFrame) (
float secondsSinceLastFrame);
69 void (
EXPORT* DrawBaseLayout) (
int baseIdx,
int x,
int y,
int totalMarge,
int w,
int h,
int padding,
const vec4_t bgcolor,
const vec4_t color);
70 void (
EXPORT* DrawBaseLayoutTooltip) (
int baseIdx,
int x,
int y);
72 void (
EXPORT* StartBattlescape) (
bool isTeamPlay);
74 const char* (
EXPORT* GetTeamDef) (
void);
76 void (
EXPORT* AddChatMessage) (
const char* message);
84 typedef struct cgameType_s {
99 typedef struct cgame_import_s {
136 const char* clickAction2,
const char* clickText2,
const char* tooltip2,
const char* clickAction3,
const char* clickText3,
const char*
tooltip3);
191 void* (
IMPORT* Alloc) (
size_t size,
bool zeroFill,
memPool_t* pool,
const int tagNum,
const char* fileName,
const int fileLine);
195 char* (
IMPORT* PoolStrDup) (
const char* in,
memPool_t* pool,
const int tagNum);
289 cvar_t* (
IMPORT*
Cvar_Get) (
const char* varName,
const char* value,
int flags,
const char* desc);
332 const
char* (
IMPORT*
Com_EParse) (const
char** text, const
char* errhead, const
char* errinfo);
341 short (
IMPORT* Com_GetUFOIdsNum) (
void);
356 void (
IMPORT* SetNextUniqueCharacterNumber) (
int ucn);
357 int (
IMPORT* GetNextUniqueCharacterNumber) (
void);
359 void (
IMPORT* CollectItems) (
void* target,
int won,
void (*item)(
void*, const
objDef_t*,
int),
void (*ammo) (
void* , const
Item* ),
void (*ownitems) (const
Inventory*));
374 void (
IMPORT* WEB_DownloadFromUser) (
int category, const
char*
filename,
int userId);
375 void (
IMPORT* WEB_ListForUser) (
int category,
int userId);
bool Com_ParseBlock(const char *name, const char **text, void *base, const value_t *values, memPool_t *mempool)
const linkedList_t * team
const char * Cmd_Argv(int arg)
Returns a given argument.
void Cmd_AddCommand(const char *cmdName, xcommand_t function, const char *desc)
Add a new command to the script interface.
xmlNode_t * XML_GetPos2(xmlNode_t *parent, const char *name, vec2_t pos)
retrieve the first Pos2 data from an XML Node
void CL_UpdateCharacterValues(const character_t *chr)
short XML_GetShort(xmlNode_t *parent, const char *name, const short defaultval)
retrieve a Short attribute from an XML Node
const char * FS_NextFileFromFileList(const char *files)
Returns the next file that is found in the virtual filesystem identified by the given file pattern...
void R_SoftenTexture(byte *in, int width, int height, int bpp)
Applies blurring to a texture.
bool Com_UnregisterConstVariable(const char *name)
Removes a registered constant from the script mapping hash table.
void Sys_Error(const char *error,...)
short Com_GetDropShipIdsNum(void)
void NET_SockaddrToStrings(struct datagram_socket *s, struct sockaddr *addr, char *node, size_t nodelen, char *service, size_t servicelen)
Convert sockaddr to string.
bool Com_GetConstIntFromNamespace(const char *space, const char *variable, int *value)
Searches whether a given value was registered as a string to int mapping.
bool GAME_SaveCharacter(xmlNode_t *p, const character_t *chr)
saves a character to a given xml node
int FS_CheckFile(const char *fmt,...)
Just returns the filelength and -1 if the file wasn't found.
struct sockaddr char size_t char size_t servicelen
itemFilterTypes_t INV_GetFilterTypeID(const char *filterTypeID)
Searches for a filter type name (as used in console functions) and returns the matching itemFilterTyp...
void Cmd_RemoveCommand(const char *cmdName)
Removes a command from script interface.
const char * Com_GetRandomMapAssemblyNameForCrashedCraft(const char *craftID)
QGL_EXTERN GLint GLenum type
Defines all attributes of objects used in the inventory.
bool INV_ItemMatchesFilter(const objDef_t *obj, const itemFilterTypes_t filterType)
Checks if the given object/item matched the given filter type.
void LIST_PrependString(linkedList_t **listDest, const char *data)
Adds a string as first entry to a linked list.
struct net_stream * NET_Connect(const char *node, const char *service, stream_onclose_func *onclose)
Try to connect to a given host on a given port.
void UI_RegisterLinkedListText(int dataId, linkedList_t *text)
share a linked list of text with a data id
void XML_AddStringValue(xmlNode_t *parent, const char *name, const char *value)
add a non-empty String attribute to the XML Node
valueTypes_t
possible values for parsing functions
void UI_MessageAddStack(struct uiMessageListNodeMessage_s *message)
int FS_OpenFile(const char *filename, qFILE *file, filemode_t mode)
Finds and opens the file in the search path.
void UI_RegisterText(int dataId, const char *text)
share a text with a data id
void R_DrawLineStrip(int points, int *verts)
2 dimensional line strip
bool CL_OnBattlescape(void)
Check whether we are in a tactical mission as server or as client. But this only means that we are ab...
void UI_SortOptions(uiNode_t **first)
Sort options by alphabet.
float XML_GetFloat(xmlNode_t *parent, const char *name, const float defaultval)
retrieve a Float attribute from an XML Node
struct datagram_socket * NET_DatagramSocketNew(const char *node, const char *service, datagram_callback_func *func)
Opens a datagram socket (UDP)
short humanAircraftType_t
void LIST_AddStringSorted(linkedList_t **listDest, const char *data)
void * LIST_GetByIdx(linkedList_t *list, int index)
Get an entry of a linked list by its index in the list.
uiNode_t * UI_GetNodeByPath(const char *path)
Return a node by a path name (names with dot separation) It is a simplification facade over UI_ReadNo...
void XML_AddDoubleValue(xmlNode_t *parent, const char *name, double value)
add a non-zero Double attribute to the XML Node
int XML_GetInt(xmlNode_t *parent, const char *name, const int defaultval)
retrieve an Int attribute from an XML Node
const char const short defaultval
double XML_GetDouble(xmlNode_t *parent, const char *name, const double defaultval)
retrieve a Double attribute from an XML Node
static void R_DrawImageCentered(int x, int y, const char *name)
void SV_ShutdownWhenEmpty(void)
Will eventually shutdown the server once all clients have disconnected.
void GAME_ReloadMode(void)
int(* BEPEvaluteCallback_t)(const char *var, const void *userdata)
const char * UI_GetActiveWindowName(void)
Returns the name of the current window.
void XML_AddDate(xmlNode_t *parent, const char *name, const int day, const int sec)
add a date data to the XML Tree
void Cbuf_AddText(const char *format,...)
Adds command text at the end of the buffer.
itemFilterTypes_t
A list of filter types in the market and production view.
void UI_UpdateInvisOptions(uiNode_t *option, const linkedList_t *stringList)
Unhide those options that are stored in the linked list and hide the others.
Describes a character with all its attributes.
void XML_AddPos3(xmlNode_t *parent, const char *name, const vec3_t pos)
add a Pos3 data to the XML Tree
void GAME_SetServerInfo(const char *server, const char *serverport)
void FS_RemoveFile(const char *osPath)
void XML_AddFloatValue(xmlNode_t *parent, const char *name, float value)
add a non-zero Float attribute to the XML Node
const char * CL_ActorGetSkillString(const int skill)
Return the skill string for the given skill level.
const char const int defaultval
QGL_EXTERN GLsizei const GLvoid * data
int FS_LoadFile(const char *path, byte **buffer)
Filenames are relative to the quake search path.
void NET_StreamFree(struct net_stream *s)
Call NET_StreamFree to dump the whole thing right now.
void UI_ContainerNodeUpdateEquipment(Inventory *inv, const equipDef_t *ed)
Fills the ground container of the ui_inventory with unused items from a given equipment definition...
int NET_ReadLong(dbuffer *buf)
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque
void Com_Printf(const char *const fmt,...)
uiNode_t * UI_GetOption(int dataId)
void GAME_AppendTeamMember(int memberIndex, const char *teamDefID, const equipDef_t *ed)
bool Cmd_GenericCompleteFunction(char const *candidate, char const *partial, char const **match)
const char * Com_DropShipTypeToShortName(humanAircraftType_t type)
Translate DropShip type to short name.
stream_onclose_func * onclose
int FS_BuildFileList(const char *fileList)
Build a filelist.
int GAME_GetCurrentTeam(void)
void LIST_Delete(linkedList_t **list)
void Com_RegisterConstList(const constListEntry_t constList[])
Registers a list of string aliases.
const equipDef_t * INV_GetEquipmentDefinitionByID(const char *name)
Gets equipment definition by id.
stream_callback_func * func
void(* http_callback_t)(const char *response, void *userdata)
void UI_InitStack(const char *activeWindow, const char *mainWindow)
Init the stack to start with a window, and have an alternative window with ESC.
const char * Com_GetRandomMapAssemblyNameForCraft(const char *craftID)
Returns the name of an aircraft or an ufo that is used in the ump files for the random map assembly...
const teamDef_t * Com_GetTeamDefinitionByID(const char *team)
Returns the teamDef pointer for the searched team id - or nullptr if not found in the teamDef array...
int GAME_GetChrMaxLoad(const character_t *chr)
Returns the max weight the given character can carry.
xmlNode_t * XML_GetPos3(xmlNode_t *parent, const char *name, vec3_t pos)
retrieve the first Pos3 data from an XML Node
void Cmd_TableRemoveList(const cmdList_t *cmdList)
void CL_Drop(void)
Ensures the right menu cvars are set after error drop or map change.
xmlNode_t * XML_GetNextPos3(xmlNode_t *actual, xmlNode_t *parent, const char *name, vec3_t pos)
retrieve the next Pos3 data from an XML Node
const ugv_t * Com_GetUGVByIDSilent(const char *ugvID)
Searches an UGV definition by a given script id and returns the pointer to the global data...
bool GAME_LoadCharacter(xmlNode_t *p, character_t *chr)
Loads a character from a given xml node.
int LIST_Count(const linkedList_t *list)
int Cvar_GetInteger(const char *varName)
Returns the int value of a cvar.
void XML_AddPos2(xmlNode_t *parent, const char *name, const vec2_t pos)
add a Pos2 data to the XML Tree
const char * XML_GetString(xmlNode_t *parent, const char *name)
retrieve a String attribute from an XML Node
void R_Color(const vec4_t rgba)
Change the color to given value.
void * NET_StreamGetData(struct net_stream *s)
bool BEP_Evaluate(const char *expr, BEPEvaluteCallback_t varFuncParam, const void *userdata)
void Com_Error(int code, const char *fmt,...)
void Cmd_ExecuteString(const char *text,...)
A complete command line has been parsed, so try to execute it.
xmlNode_t * XML_AddNode(xmlNode_t *parent, const char *name)
add a new node to the XML tree
void R_Draw3DMapMarkers(const vec2_t nodePos, const vec2_t nodeSize, const vec3_t rotate, const vec2_t pos, float direction, float earthRadius, const char *model, int skin)
Draw 3D Marker on the 3D geoscape.
void R_Draw2DMapMarkers(const vec2_t screenPos, float direction, const char *model, int skin)
Draw 3D Marker on the 2D geoscape.
uiNode_t * UI_OptionIteratorNextOption(uiOptionIterator_t *iterator)
Find the next element from the iterator Iterator skipCollapsed and skipInvisible attribute can contro...
item instance data, with linked list capability
struct uiMessageListNodeMessage_s * UI_MessageGetStack(void)
void NET_OOB_Printf(struct net_stream *s, const char *format,...)
Out of band print.
Inventory ** ui_inventory
inventory definition with all its containers
bool LIST_Remove(linkedList_t **list, const void *data)
void XML_AddInt(xmlNode_t *parent, const char *name, int value)
add an Int attribute to the XML Node
void XML_AddString(xmlNode_t *parent, const char *name, const char *value)
add a String attribute to the XML Node
align_t
We need this here for checking the boundaries from script values.
uiNode_t * UI_PushWindow(const char *name, const char *parentName, linkedList_t *params)
Push a window onto the window stack.
void stream_callback_func(struct net_stream *s)
void XML_AddFloat(xmlNode_t *parent, const char *name, float value)
add a Float attribute to the XML Node
const image_t * UI_DrawNormImageByName(bool flip, float x, float y, float w, float h, float sh, float th, float sl, float tl, const char *name)
Draws an image or parts of it.
void UI_ResetData(int dataId)
Reset a shared data. Type became NONE and value became nullptr.
cvar_t * Cvar_Get(const char *var_name, const char *var_value, int flags, const char *desc)
Init or return a cvar.
int NET_ReadString(dbuffer *buf, char *string, size_t length)
void LIST_AddString(linkedList_t **listDest, const char *data)
Adds an string to a new or to an already existing linked list. The string is copied here...
void GAME_SwitchCurrentSelectedMap(int step)
float Cvar_GetValue(const char *varName)
Returns the float value of a cvar.
QGL_EXTERN GLuint GLsizei GLsizei * length
void XML_AddBool(xmlNode_t *parent, const char *name, bool value)
add a Boolean attribute to the XML Node
void XML_AddLong(xmlNode_t *parent, const char *name, long value)
add a Long attribute to the XML Node
void LIST_Sort(linkedList_t **list, linkedListSort_t sorter, const void *userData)
void UI_MessageResetStack(void)
int Cmd_Argc(void)
Return the number of arguments of the current command. "command parameter" will result in a argc of 2...
float const char int skin
const char * Cvar_VariableStringOld(const char *varName)
Returns the old value of cvar as string before we changed it.
event_t
Possible event values.
const char const double defaultval
void stream_onclose_func()
void R_UploadAlpha(const image_t *image, const byte *alphaData)
const char * Com_ValueToStr(const void *base, const valueTypes_t type, const int ofs)
const char const int const int sec
int NET_ReadShort(dbuffer *buf)
const char * Com_EParse(const char **text, const char *errhead, const char *errinfo, char *target, size_t size)
Parsing function that prints an error message when there is no text in the buffer.
void UI_TextScrollEnd(const char *nodePath)
Scroll to the bottom.
void XML_AddShortValue(xmlNode_t *parent, const char *name, short value)
add a non-zero Short attribute to the XML Node
int FS_WriteFile(const void *buffer, size_t len, const char *filename)
typedef long(ZCALLBACK *tell_file_func) OF((voidpf opaque
void FS_CloseFile(qFILE *f)
const mapDef_t * GAME_GetCurrentSelectedMap(void)
const char * Com_UFOTypeToShortName(ufoType_t type)
Translate UFO type to short name.
void CL_GenerateCharacter(character_t *chr, const char *teamDefName)
Generates the skills and inventory for a character and for a 2x2 unit.
void Com_DPrintf(int level, const char *fmt,...)
A Com_Printf that only shows up if the "developer" cvar is set.
const linkedList_t * LIST_ContainsString(const linkedList_t *list, const char *string)
Searches for the first occurrence of a given string.
linkedList_t * LIST_CopyStructure(linkedList_t *src)
ufoType_t Com_UFOShortNameToID(const char *token)
Translate short name to UFO type.
const char const float defaultval
linkedListSort_t const void * userData
const char * CL_PlayerGetName(unsigned int player)
Get the player name.
void S_SetSampleRepeatRate(int sampleRepeatRate)
Controls the repeat rate for the same sample.
mapDef_t * Com_GetMapDefinitionByID(const char *mapDefID)
Atomic structure used to define most of the UI.
void datagram_callback_func(struct datagram_socket *s, const char *buf, int len, struct sockaddr *from)
inventory definition for our menus
bool LIST_RemoveEntry(linkedList_t **list, linkedList_t *entry)
Removes one entry from the linked list.
const char const bool defaultval
void Com_RegisterConstInt(const char *name, int value)
Register mappings between script strings and enum values for values of the type V_INT.
void XML_AddShort(xmlNode_t *parent, const char *name, short value)
add a Short attribute to the XML Node
uiNode_t * UI_InitOptionIteratorAtIndex(int index, uiNode_t *option, uiOptionIterator_t *iterator)
Init an option iterator at an index.
long XML_GetLong(xmlNode_t *parent, const char *name, const long defaultval)
retrieve a Long attribute from an XML Node
void UI_GetNodeAbsPos(const uiNode_t *node, vec2_t pos)
Returns the absolute position of a node.
bool Cvar_Delete(const char *varName)
Function to remove the cvar and free the space.
bool GAME_LoadDefaultTeam(bool force)
QGL_EXTERN void(APIENTRY *qglActiveTexture)(GLenum texture)
int const char * windowName
int(* linkedListSort_t)(linkedList_t *entry1, linkedList_t *entry2, const void *userData)
void S_StartLocalSample(const char *s, float volume)
Plays a sample without spatialization.
CGAME_HARD_LINKED_FUNCTIONS linkedList_t * LIST_Add(linkedList_t **listDest, void const *data, size_t length)
void R_DrawLine(int *verts, float thickness)
Draws one line with only one start and one end point.
const char const char * value
void R_LoadImage(const char *name, byte **pic, int *width, int *height)
Generic image-data loading fucntion.
const cgame_export_t * GetCGameAPI(const cgame_import_t *import)
const char * Com_GetConstVariable(const char *space, int value)
Searches the mapping variable for a given integer value and a namespace.
const char const vec3_t pos
void INV_ItemDescription(const objDef_t *od)
Prints the description for items (weapons, armour, ...)
const vec2_t const vec3_t const vec2_t float float const char int skin
int Com_EParseValue(void *base, const char *token, valueTypes_t type, int ofs, size_t size)
bool XML_GetBool(xmlNode_t *parent, const char *name, const bool defaultval)
retrieve a Boolean attribute from an XML Node
The csi structure is the client-server-information structure which contains all the static data neede...
void XML_AddBoolValue(xmlNode_t *parent, const char *name, bool value)
add a non-false Boolean attribute to the XML Node
void NET_StreamSetData(struct net_stream *s, void *data)
void XML_AddByte(xmlNode_t *parent, const char *name, byte value)
add a Byte attribute to the XML Node
int FS_Read(void *buffer, int len, qFILE *f)
bool Com_ParseList(const char **text, linkedList_t **list)
const char const long defaultval
size_t GAME_GetCharacterArraySize(void)
QGL_EXTERN GLuint GLchar GLuint * len
const char * CL_Translate(const char *t)
const char * UI_GetFontFromNode(const uiNode_t *const node)
Return the font for a specific node or default font.
xmlNode_t * XML_GetDate(xmlNode_t *parent, const char *name, int *day, int *sec)
retrieve the date data from an XML Node
void NET_DatagramBroadcast(struct datagram_socket *s, const char *buf, int len, int port)
void CL_SetClientState(connstate_t state)
Sets the client state.
void NET_DatagramSocketClose(struct datagram_socket *s)
linkedList_t ** victoryConditionsMsgIDs
xmlNode_t * XML_GetNextPos2(xmlNode_t *actual, xmlNode_t *parent, const char *name, vec2_t pos)
retrieve the next Pos2 data from an XML Node
void GAME_AutoTeam(const char *equipmentDefinitionID, int teamMembers)
bool GAME_IsTeamEmpty(void)
static void CL_QueryMasterServer(const char *action, http_callback_t callback)
char * FS_NextScriptHeader(const char *files, const char **name, const char **text)
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
void NET_WriteByte(dbuffer *buf, byte c)
void XML_AddDouble(xmlNode_t *parent, const char *name, double value)
add a Double attribute to the XML Node
void UI_RegisterOption(int dataId, uiNode_t *option)
void HUD_InitUI(const char *optionWindowName)
Display the user interface.
list of script aliases to register
linkedList_t * LIST_GetPointer(linkedList_t *list, const void *data)
Searches for the first occurrence of a given pointer.
void UI_PopWindow(bool all)
Pops a window from the window stack.
int CL_GetPlayerNum(void)
void Com_SetGameType(void)
xmlNode_t * XML_GetNode(xmlNode_t *parent, const char *name)
Get first Node of the XML tree by name.
void Cmd_AddParamCompleteFunction(const char *cmdName, int(*function)(const char *partial, const char **match))
void R_DrawRect(int x, int y, int w, int h, const vec4_t color, float lineWidth, int pattern)
Draws a rect to the screen. Also has support for stippled rendering of the rect.
uiNode_t * UI_AddOption(uiNode_t **tree, const char *name, const char *label, const char *value)
Append an option to an option list.
int UI_DrawString(const char *fontID, align_t align, int x, int y, int absX, int maxWidth, int lineHeight, const char *c, int boxHeight, int scrollPos, int *curLine, bool increaseLine, longlines_t method)
void UI_DrawRect(int x, int y, int w, int h, const vec4_t color, float lineWidth, int pattern)
void CL_Disconnect(void)
Sets the cls.state to ca_disconnected and informs the server.
dbuffer * NET_ReadMsg(struct net_stream *s)
Reads messages from the network channel and adds them to the dbuffer where you can use the NET_Read* ...
cvar_t * Cvar_ForceSet(const char *varName, const char *value)
Will set the variable even if NOSET or LATCH.
void R_DrawBloom(void)
handle post-processing bloom
const char const char const char const char const char const char const char const char const char const char * tooltip3
const char * NET_StreamPeerToName(struct net_stream *s, char *dst, int len, bool appendPort)
cvar_t * Cvar_Set(const char *varName, const char *value,...)
Sets a cvar value.
const char * Cvar_GetString(const char *varName)
Returns the value of cvar as string.
void R_DrawFill(int x, int y, int w, int h, const vec4_t color)
Fills a box of pixels with a single color.
void UI_DrawFill(int x, int y, int w, int h, const vec4_t color)
Fills a box of pixels with a single color.
const char const vec2_t pos
bool LIST_IsEmpty(const linkedList_t *list)
Checks whether the given list is empty.
void XML_AddIntValue(xmlNode_t *parent, const char *name, int value)
add a non-zero Int attribute to the XML Node
void NET_StreamSetCallback(struct net_stream *s, stream_callback_func *func)
void Cbuf_Execute(void)
Pulls off terminated lines of text from the command buffer and sends them through Cmd_ExecuteString...
datagram_callback_func * func
uiSprite_t * UI_GetSpriteByName(const char *name)
Return an sprite by is name.
static char * GAME_StrDup(const char *string)
const linkedList_t * stringList
const char * INV_GetFilterType(itemFilterTypes_t id)
const cgameType_t * cgameType
void Cvar_SetValue(const char *varName, float value)
Expands value to a string and calls Cvar_Set.
humanAircraftType_t Com_DropShipShortNameToID(const char *token)
Translate DropShip type to short name.
QGL_EXTERN GLuint GLsizei bufSize
linkedList_t * equipmentList
const equipDef_t * GAME_ChangeEquip(const linkedList_t *equipmentList, changeEquipType_t changeType, const char *equipID)
Changed the given cvar to the next/prev equipment definition.
This is a cvar definition. Cvars can be user modified and used in our menus e.g.
int Com_ServerState(void)
Check whether we are the server or have a singleplayer tactical mission.
void XML_AddByteValue(xmlNode_t *parent, const char *name, byte value)
add a non-zero Byte attribute to the XML Node
xmlNode_t * XML_GetNextNode(xmlNode_t *current, xmlNode_t *parent, const char *name)
Get next Node of the XML tree by name.
void * LIST_GetRandom(linkedList_t *list)
const char * Com_UFOCrashedTypeToShortName(ufoType_t type)
Translate UFO type to short name when UFO is crashed.
void UI_TextNodeSelectLine(uiNode_t *node, int num)
Change the selected line.
void NET_WriteShort(dbuffer *buf, int c)
int NET_ReadByte(dbuffer *buf)
Reads a byte from the netchannel.
const char * Cmd_Args(void)
Returns a single string containing argv(1) to argv(argc()-1)
void XML_AddLongValue(xmlNode_t *parent, const char *name, long value)
add a non-zero Long attribute to the XML Node
bool Com_ParseBlockToken(const char *name, const char **text, void *base, const value_t *values, memPool_t *mempool, const char *token)
Defines a type of UGV/Robot.
bool Com_GetConstInt(const char *name, int *value)
Searches whether a given value was registered as a string to int mapping.
int CL_GetClientState(void)
bool Com_UnregisterConstList(const constListEntry_t constList[])
Unregisters a list of string aliases.
void format(__printf__, 1, 2)))
int NET_ReadStringLine(dbuffer *buf, char *string, size_t length)
void LIST_AddPointer(linkedList_t **listDest, void *data)
Adds just a pointer to a new or to an already existing linked list.
bool R_ImageExists(const char *pname,...)
xmlNode_t * XML_Parse(const char *buffer)
void SV_Shutdown(const char *finalmsg, bool reconnect)
Called when each game quits, before Sys_Quit or Sys_Error.
const ugv_t * Com_GetUGVByID(const char *ugvID)
Searches an UGV definition by a given script id and returns the pointer to the global data...
void HUD_DisplayMessage(const char *text)
Displays a message on the hud.
short Com_GetHumanAircraftIdsNum(void)
int CL_Milliseconds(void)
void Cmd_TableAddList(const cmdList_t *cmdList)
void FS_FreeFile(void *buffer)
void UI_DisplayNotice(const char *text, int time, const char *windowName)
Displays a message over all windows.
void UI_ExecuteConfunc(const char *fmt,...)
Executes confunc - just to identify those confuncs in the code - in this frame.
bool Com_ParseBoolean(const char *token)
Parses a boolean from a string.
const cgame_export_t *(* cgame_api_t)(const cgame_import_t *)