36typedef struct cgame_export_s {
84typedef struct cgameType_s {
99typedef struct cgame_import_s {
356 void (
IMPORT* SetNextUniqueCharacterNumber) (
int ucn);
357 int (
IMPORT* GetNextUniqueCharacterNumber) (
void);
bool BEP_Evaluate(const char *expr, BEPEvaluteCallback_t varFuncParam, const void *userdata)
int(* BEPEvaluteCallback_t)(const char *var, const void *userdata)
const cgame_export_t *(* cgame_api_t)(const cgame_import_t *)
const cgame_export_t * GetCGameAPI(const cgame_import_t *import)
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...
bool GAME_IsTeamEmpty(void)
static void R_DrawImageCentered(int x, int y, const char *name)
void GAME_SwitchCurrentSelectedMap(int step)
void GAME_AppendTeamMember(int memberIndex, const char *teamDefID, const equipDef_t *ed)
size_t GAME_GetCharacterArraySize(void)
int GAME_GetChrMaxLoad(const character_t *chr)
Returns the max weight the given character can carry.
static void CL_QueryMasterServer(const char *action, http_callback_t callback)
void GAME_SetServerInfo(const char *server, const char *serverport)
int GAME_GetCurrentTeam(void)
void GAME_ReloadMode(void)
void LIST_Sort(linkedList_t **list, linkedListSort_t sorter, const void *userData)
void FS_CloseFile(qFILE *f)
bool GAME_SaveCharacter(xmlNode_t *p, const character_t *chr)
saves a character to a given xml node
bool GAME_LoadDefaultTeam(bool force)
void GAME_AutoTeam(const char *equipmentDefinitionID, int teamMembers)
bool GAME_LoadCharacter(xmlNode_t *p, character_t *chr)
Loads a character from a given xml node.
void HUD_InitUI(const char *optionWindowName)
Display the user interface.
void HUD_DisplayMessage(const char *text)
Displays a message on the hud.
itemFilterTypes_t INV_GetFilterTypeID(const char *filterTypeID)
Searches for a filter type name (as used in console functions) and returns the matching itemFilterTyp...
bool INV_ItemMatchesFilter(const objDef_t *obj, const itemFilterTypes_t filterType)
Checks if the given object/item matched the given filter type.
Header file for inventory handling and Equipment menu.
void INV_ItemDescription(const objDef_t *od)
Prints the description for items (weapons, armour, ...).
int CL_GetClientState(void)
void CL_Drop(void)
Ensures the right menu cvars are set after error drop or map change.
void CL_SetClientState(connstate_t state)
Sets the client state.
void CL_Disconnect(void)
Sets the cls.state to ca_disconnected and informs the server.
int CL_Milliseconds(void)
int CL_GetPlayerNum(void)
void R_LoadImage(const char *name, byte **pic, int *width, int *height)
Generic image-data loading fucntion.
void R_Color(const vec4_t rgba)
Change the color to given value.
void CL_UpdateCharacterValues(const character_t *chr)
void CL_GenerateCharacter(character_t *chr, const char *teamDefName)
Generates the skills and inventory for a character and for a 2x2 unit.
inventory definition with all its containers
item instance data, with linked list capability
void Cmd_ExecuteString(const char *text,...)
A complete command line has been parsed, so try to execute it.
void Cmd_AddParamCompleteFunction(const char *cmdName, int(*function)(const char *partial, const char **match))
void Cmd_TableAddList(const cmdList_t *cmdList)
void Cmd_RemoveCommand(const char *cmdName)
Removes a command from script interface.
void Cbuf_Execute(void)
Pulls off terminated lines of text from the command buffer and sends them through Cmd_ExecuteString...
bool Cmd_GenericCompleteFunction(char const *candidate, char const *partial, char const **match)
int Cmd_Argc(void)
Return the number of arguments of the current command. "command parameter" will result in a argc of 2...
void Cmd_AddCommand(const char *cmdName, xcommand_t function, const char *desc)
Add a new command to the script interface.
void Cbuf_AddText(const char *format,...)
Adds command text at the end of the buffer.
void Cmd_TableRemoveList(const cmdList_t *cmdList)
void Com_DPrintf(int level, const char *fmt,...)
A Com_Printf that only shows up if the "developer" cvar is set.
int Com_ServerState(void)
Check whether we are the server or have a singleplayer tactical mission.
void Com_Error(int code, const char *fmt,...)
void Com_SetGameType(void)
void Com_Printf(const char *const fmt,...)
void SV_ShutdownWhenEmpty(void)
Will eventually shutdown the server once all clients have disconnected.
void SV_Shutdown(const char *finalmsg, bool reconnect)
Called when each game quits, before Sys_Quit or Sys_Error.
void Cvar_SetValue(const char *varName, float value)
Expands value to a string and calls Cvar_Set.
bool Cvar_Delete(const char *varName)
Function to remove the cvar and free the space.
int Cvar_GetInteger(const char *varName)
Returns the int value of a cvar.
float Cvar_GetValue(const char *varName)
Returns the float value of a cvar.
void FS_RemoveFile(const char *osPath)
int FS_CheckFile(const char *fmt,...)
Just returns the filelength and -1 if the file wasn't found.
int FS_LoadFile(const char *path, byte **buffer)
Filenames are relative to the quake search path.
void FS_FreeFile(void *buffer)
int FS_WriteFile(const void *buffer, size_t len, const char *filename)
int FS_Read(void *buffer, int len, qFILE *f)
int FS_OpenFile(const char *filename, qFILE *file, filemode_t mode)
Finds and opens the file in the search path.
int FS_BuildFileList(const char *fileList)
Build a filelist.
void Sys_Error(const char *error,...)
void(* http_callback_t)(const char *response, void *userdata)
typedef long(ZCALLBACK *tell_file_func) OF((voidpf opaque
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque
void LIST_AddStringSorted(linkedList_t **listDest, const char *data)
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 LIST_Delete(linkedList_t **list)
bool LIST_RemoveEntry(linkedList_t **list, linkedList_t *entry)
Removes one entry from the linked list.
int LIST_Count(const linkedList_t *list)
void LIST_AddPointer(linkedList_t **listDest, void *data)
Adds just a pointer to a new or to an already existing linked list.
bool LIST_Remove(linkedList_t **list, const void *data)
bool LIST_IsEmpty(const linkedList_t *list)
Checks whether the given list is empty.
void LIST_PrependString(linkedList_t **listDest, const char *data)
Adds a string as first entry to a linked list.
int(* linkedListSort_t)(linkedList_t *entry1, linkedList_t *entry2, const void *userData)
void NET_StreamSetCallback(struct net_stream *s, stream_callback_func *func)
void NET_SockaddrToStrings(struct datagram_socket *s, struct sockaddr *addr, char *node, size_t nodelen, char *service, size_t servicelen)
Convert sockaddr to string.
void NET_StreamSetData(struct net_stream *s, void *data)
void NET_DatagramBroadcast(struct datagram_socket *s, const char *buf, int len, int port)
void NET_StreamFree(struct net_stream *s)
Call NET_StreamFree to dump the whole thing right now.
void NET_DatagramSocketClose(struct datagram_socket *s)
void stream_onclose_func()
void datagram_callback_func(struct datagram_socket *s, const char *buf, int len, struct sockaddr *from)
void stream_callback_func(struct net_stream *s)
int NET_ReadString(dbuffer *buf, char *string, size_t length)
void NET_WriteShort(dbuffer *buf, int c)
int NET_ReadStringLine(dbuffer *buf, char *string, size_t length)
int NET_ReadLong(dbuffer *buf)
int NET_ReadByte(dbuffer *buf)
Reads a byte from the netchannel.
int NET_ReadShort(dbuffer *buf)
void NET_WriteByte(dbuffer *buf, byte c)
void NET_OOB_Printf(struct net_stream *s, const char *format,...)
Out of band print.
event_t
Possible event values.
void format(__printf__, 1, 2)))
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 R_DrawLine(int *verts, float thickness)
Draws one line with only one start and one end point.
void R_DrawLineStrip(int points, int *verts)
2 dimensional line strip
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.
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.
void R_DrawBloom(void)
handle post-processing bloom
QGL_EXTERN void(APIENTRY *qglActiveTexture)(GLenum texture)
QGL_EXTERN GLsizei const GLvoid * data
QGL_EXTERN GLuint GLsizei bufSize
void R_SoftenTexture(byte *in, int width, int height, int bpp)
Applies blurring to a texture.
void R_UploadAlpha(const image_t *image, const byte *alphaData)
bool R_ImageExists(const char *pname,...)
void S_SetSampleRepeatRate(int sampleRepeatRate)
Controls the repeat rate for the same sample.
void S_StartLocalSample(const char *s, float volume)
Plays a sample without spatialization.
bool Com_ParseBoolean(const char *token)
Parses a boolean from a string.
bool Com_ParseBlock(const char *name, const char **text, void *base, const value_t *values, memPool_t *mempool)
void Com_RegisterConstInt(const char *name, int value)
Register mappings between script strings and enum values for values of the type V_INT.
bool Com_ParseBlockToken(const char *name, const char **text, void *base, const value_t *values, memPool_t *mempool, const char *token)
bool Com_UnregisterConstList(const constListEntry_t constList[])
Unregisters a list of string aliases.
bool Com_UnregisterConstVariable(const char *name)
Removes a registered constant from the script mapping hash table.
short Com_GetHumanAircraftIdsNum(void)
short Com_GetDropShipIdsNum(void)
ufoType_t Com_UFOShortNameToID(const char *token)
Translate short name to UFO type.
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 Com_GetConstInt(const char *name, int *value)
Searches whether a given value was registered as a string to int mapping.
humanAircraftType_t Com_DropShipShortNameToID(const char *token)
Translate DropShip type to short name.
bool Com_ParseList(const char **text, linkedList_t **list)
void Com_RegisterConstList(const constListEntry_t constList[])
Registers a list of string aliases.
int Com_EParseValue(void *base, const char *token, valueTypes_t type, int ofs, size_t size)
align_t
We need this here for checking the boundaries from script values.
valueTypes_t
possible values for parsing functions
linkedList_t ** victoryConditionsMsgIDs
void(EXPORT *MapDraw)(geoscapeData_t *data)
const mapDef_t *EXPORT * MapInfo(int step)
void(EXPORT *StartBattlescape)(bool isTeamPlay)
character_t *EXPORT * GetSelectedChr(void)
bool(EXPORT *HandleServerCommand)(const char *command
int int int int int int padding
linkedList_t linkedList_t ** missionBriefingMsgIDs
int int int int int int const vec4_t bgcolor
const linkedList_t * team
void(EXPORT *DrawBaseLayoutTooltip)(int baseIdx
void(EXPORT *Shutdown)(void)
void(EXPORT *MapDrawMarkers)(const uiNode_t *node)
int int int int int int const vec4_t const vec4_t color
void(EXPORT *NotifyEvent)(event_t eventType)
void(EXPORT *UpdateCharacterValues)(const character_t *chr)
bool(EXPORT *Spawn)(linkedList_t **chrList)
void(EXPORT *AddChatMessage)(const char *message)
equipDef_t *EXPORT * GetEquipmentDefinition(void)
const char *EXPORT * GetTeamDef(void)
const char *EXPORT * GetModelForItem(const char *string)
int(EXPORT *GetChrMaxLoad)(const character_t *chr)
bool(EXPORT *IsTeamKnown)(const teamDef_t *teamDef)
bool(EXPORT *MapClick)(const uiNode_t *node
void(EXPORT *RunFrame)(float secondsSinceLastFrame)
bool(EXPORT *IsItemUseable)(const objDef_t *od)
int(IMPORT *CL_GetPlayerNum)(void)
const char const bool defaultval
void *IMPORT * Alloc(size_t size, bool zeroFill, memPool_t *pool, const int tagNum, const char *fileName, const int fileLine)
const char *IMPORT * Com_DropShipTypeToShortName(humanAircraftType_t type)
const char *IMPORT * Cvar_GetString(const char *varName)
const equipDef_t *IMPORT * GAME_ChangeEquip(const linkedList_t *equipmentList, changeEquipType_t changeType, const char *equipID)
struct sockaddr char * node
xmlNode_t *IMPORT * XML_GetNode(xmlNode_t *parent, const char *name)
void(IMPORT *R_Color)(const vec4_t rgba)
uiNode_t *IMPORT * UI_GetNodeByPath(const char *path)
size_t(IMPORT *GAME_GetCharacterArraySize)(void)
void(IMPORT *XML_AddLongValue)(xmlNode_t *parent
bool(IMPORT *LIST_RemoveEntry)(linkedList_t **list
void(IMPORT *S_StartLocalSample)(const char *s
void(IMPORT *S_SetSampleRepeatRate)(int sampleRepeatRate)
void(IMPORT *XML_AddFloatValue)(xmlNode_t *parent
stream_callback_func * func
float float float float float sh
void(IMPORT *FS_CloseFile)(qFILE *f)
void *IMPORT * LIST_GetRandom(linkedList_t *list)
linkedListSort_t const void * userData
void(IMPORT *XML_AddStringValue)(xmlNode_t *parent
void(IMPORT *UI_MessageResetStack)(void)
void(IMPORT *UI_SortOptions)(uiNode_t **first)
void(IMPORT *LIST_Delete)(linkedList_t **list)
uiNode_t *IMPORT * UI_InitOptionIteratorAtIndex(int index, uiNode_t *option, uiOptionIterator_t *iterator)
uiNode_t *IMPORT * UI_OptionIteratorNextOption(uiOptionIterator_t *iterator)
void(IMPORT *FreePool)(memPool_t *pool)
const mapDef_t *IMPORT * GAME_GetCurrentSelectedMap(void)
void(IMPORT *XML_AddIntValue)(xmlNode_t *parent
const char valueTypes_t int size_t size
const char const char const char const char const char const char const char const char * clickAction3
const char *IMPORT * Com_UFOTypeToShortName(ufoType_t type)
bool(IMPORT *XML_GetBool)(xmlNode_t *parent
int void(* item)(void *, const objDef_t *, int)
void(IMPORT *UI_ResetData)(int dataId)
bool(IMPORT *LIST_Remove)(linkedList_t **list
void(IMPORT *XML_AddBoolValue)(xmlNode_t *parent
void(IMPORT *R_DrawBloom)(void)
bool(IMPORT *GAME_IsTeamEmpty)(void)
const char *IMPORT * GetAbsoluteSavePath(char *buf, size_t bufSize)
const char *IMPORT * FS_NextFileFromFileList(const char *files)
void(IMPORT *R_DrawFill)(int x
const char void const value_t * values
linkedList_t *IMPORT * LIST_Add(linkedList_t **list, void const *data, size_t length)
float float float float float float th
void(IMPORT *UI_ExecuteConfunc)(const char *fmt
int(IMPORT *GAME_GetCurrentTeam)(void)
const char *IMPORT * CL_PlayerGetName(unsigned int player)
void(IMPORT *CL_Disconnect)(void)
void(* collect)(void *, const teamDef_t *, int, bool))
const char *IMPORT * UI_GetFontFromNode(const uiNode_t *const node)
void(IMPORT *FS_RemoveFile)(const char *osPath)
struct sockaddr char size_t nodelen
int void void void(* ownitems)(const Inventory *))
dbuffer *IMPORT * NET_ReadMsg(struct net_stream *s)
int(IMPORT *FS_BuildFileList)(const char *files)
void(IMPORT *XML_AddByteValue)(xmlNode_t *parent
void(IMPORT *GAME_SwitchCurrentSelectedMap)(int step)
bool(IMPORT *GAME_SaveCharacter)(xmlNode_t *p
uiNode_t *IMPORT * UI_PopupList(const char *title, const char *headline, linkedList_t *entries, const char *clickAction)
short(IMPORT *XML_GetShort)(xmlNode_t *parent
const equipDef_t const objDef_t * weapon
const char const char const char const char const char const char * clickText2
const itemFilterTypes_t filterType
const char valueTypes_t int ofs
struct sockaddr char size_t char * service
const ugv_t *IMPORT * Com_GetUGVByID(const char *ugvID)
void(IMPORT *NET_DatagramSocketClose)(struct datagram_socket *s)
void(IMPORT *LIST_AddString)(linkedList_t **list
struct sockaddr char size_t char size_t servicelen
float(IMPORT *XML_GetFloat)(xmlNode_t *parent
const char const char * value
Inventory ** ui_inventory
const char *IMPORT * INV_GetFilterType(itemFilterTypes_t id)
linkedList_t *IMPORT * LIST_GetPointer(linkedList_t *list, const void *data)
void *IMPORT * LIST_GetByIdx(linkedList_t *list, int index)
const char *IMPORT * CL_ActorGetSkillString(const int skill)
void(IMPORT *UI_PopWindow)(bool all)
const char const char * clickAction1
float float float float float float float float tl
const cgameType_t * cgameType
void(IMPORT *CL_Drop)(void)
void(IMPORT *UI_DrawFill)(int x
int(IMPORT *NET_ReadStringLine)(dbuffer *buf
const invDef_t * container
BEPEvaluteCallback_t const void * userdata
xcommand_t const char * desc
const char *IMPORT * Cmd_Argv(int n)
xmlNode_t *IMPORT * XML_GetPos3(xmlNode_t *parent, const char *name, vec3_t pos)
void(IMPORT *GAME_ReloadMode)(void)
const equipDef_t const objDef_t int maxWeight
const char valueTypes_t type
const char const char const char const char const char const char const char const char const char * clickText3
void(IMPORT *FS_FreeFile)(void *buffer)
struct net_stream *IMPORT * NET_Connect(const char *node, const char *service, stream_onclose_func *onclose)
const invDef_t Item * fItem
const char *IMPORT * Cvar_VariableStringOld(const char *varName)
void(IMPORT *HUD_DisplayMessage)(const char *text)
const char const char const char const char const char const char const char const char const char const char * tooltip3
const ugv_t *IMPORT * Com_GetUGVByIDSilent(const char *ugvID)
__attribute__((format(__printf__, 1, 2)))
xmlNode_t *IMPORT * XML_GetNextPos2(xmlNode_t *actual, xmlNode_t *parent, const char *name, vec2_t pos)
uiSprite_t *IMPORT * UI_GetSpriteByName(const char *name)
cvar_t *IMPORT * Cvar_ForceSet(const char *varName, const char *value)
xmlNode_t *IMPORT * XML_GetNextNode(xmlNode_t *current, xmlNode_t *parent, const char *name)
double(IMPORT *XML_GetDouble)(xmlNode_t *parent
int(IMPORT *CL_Milliseconds)(void)
uiNode_t *IMPORT * UI_GetOption(int dataId)
struct datagram_socket *IMPORT * NET_DatagramSocketNew(const char *node, const char *service, datagram_callback_func *func)
const char *IMPORT * NET_StreamPeerToName(struct net_stream *s, char *dst, int len, bool appendPort)
int(IMPORT *NET_ReadLong)(dbuffer *buf)
void(IMPORT *XML_AddShortValue)(xmlNode_t *parent
void(IMPORT *XML_AddDoubleValue)(xmlNode_t *parent
xmlNode_t *IMPORT * XML_AddNode(xmlNode_t *parent, const char *name)
const vec2_t const vec3_t rotate
const linkedList_t *IMPORT * LIST_ContainsString(const linkedList_t *list, const char *string)
float float float float float float float float const char * name
const linkedList_t * stringList
char *IMPORT * FS_NextScriptHeader(const char *files, const char **name, const char **text)
linkedList_t *IMPORT * LIST_CopyStructure(linkedList_t *src)
mapDef_t *IMPORT * Com_GetMapDefinitionByID(const char *mapDefID)
void(IMPORT *LIST_AddStringSorted)(linkedList_t **listDest
int int int const vec4_t color
const char const char const char const char * tooltip1
void(IMPORT *SV_ShutdownWhenEmpty)(void)
void(IMPORT *HUD_InitUI)(const char *optionWindowName)
cvar_t *IMPORT * Cvar_Set(const char *varName, const char *value,...) __attribute__((format(__printf__
int(IMPORT *LIST_Count)(const linkedList_t *list)
const char *IMPORT * Com_GetRandomMapAssemblyNameForCraft(const char *craftID)
size_t const char * filename
int void void(* ammo)(void *, const Item *)
const char *IMPORT * Com_UFOCrashedTypeToShortName(ufoType_t type)
const char uiNode_t *IMPORT * UI_AddOption(uiNode_t **tree, const char *name, const char *label, const char *value)
char *IMPORT * GAME_StrDup(const char *string)
int int int const vec4_t float int pattern
const vec2_t const vec3_t const vec2_t float float earthRadius
const char const int const int sec
const char *IMPORT * Com_EParse(const char **text, const char *errhead, const char *errinfo)
int(IMPORT *GAME_GetChrMaxLoad)(const character_t *chr)
bool(IMPORT *GAME_LoadDefaultTeam)(bool force)
ufoType_t(IMPORT *Com_UFOShortNameToID)(const char *token)
xmlNode_t *IMPORT * XML_GetNextPos3(xmlNode_t *actual, xmlNode_t *parent, const char *name, vec3_t pos)
int(IMPORT *UI_DrawTooltip)(const char *string
const equipDef_t *IMPORT * INV_GetEquipmentDefinitionByID(const char *name)
const teamDef_t *IMPORT * Com_GetTeamDefinitionByID(const char *team)
BEPEvaluteCallback_t varFuncParam
void(IMPORT *UI_MessageAddStack)(struct uiMessageListNodeMessage_s *)
bool(IMPORT *GAME_LoadCharacter)(xmlNode_t *p
const char *IMPORT * Cmd_Args(void)
void(IMPORT *CL_SetClientState)(connstate_t state)
void *IMPORT * NET_StreamGetData(struct net_stream *s)
int(IMPORT *CL_GetClientState)(void)
int(IMPORT *NET_ReadByte)(dbuffer *buf)
int int int const vec4_t float lineWidth
const char *IMPORT * Com_ValueToStr(const void *base, const valueTypes_t type, const int ofs)
void(IMPORT *R_DrawRect)(int x
const char const char const char const char const char * clickAction2
humanAircraftType_t(IMPORT *Com_DropShipShortNameToID)(const char *token)
xmlNode_t *IMPORT * XML_GetDate(xmlNode_t *parent, const char *name, int *day, int *sec)
memPool_t *IMPORT * CreatePool(const char *name)
void(IMPORT *NET_StreamSetData)(struct net_stream *s
char const char const ** match
char *IMPORT * PoolStrDup(const char *in, memPool_t *pool, const int tagNum)
const char *IMPORT * CL_Translate(const char *t)
int(IMPORT *NET_ReadString)(dbuffer *buf
float float float float h
int const char * windowName
const char void const value_t memPool_t * mempool
void(IMPORT *UI_TextScrollEnd)(const char *nodePath)
const char *IMPORT * XML_GetString(xmlNode_t *parent, const char *name)
void(IMPORT *Free)(void *ptr)
void(IMPORT *UI_PushWindow)(const char *name)
itemFilterTypes_t(IMPORT *INV_GetFilterTypeID)(const char *filterTypeID)
const char *IMPORT * Com_GetRandomMapAssemblyNameForCrashedCraft(const char *craftID)
struct uiMessageListNodeMessage_s *IMPORT * UI_MessageGetStack(void)
const char __attribute__((format(__printf__, 2, 3)))
const char const char const char const char const char const char const char * tooltip2
const char *IMPORT * GetRelativeSavePath(char *buf, size_t bufSize)
align_t int int const char * c
cvar_t *IMPORT * Cvar_Get(const char *varName, const char *value, int flags, const char *desc)
const char *IMPORT * UI_GetActiveWindowName(void)
float const char int skin
float float float float float float float sl
const char *IMPORT * Com_GetConstVariable(const char *space, int value)
xmlNode_t *IMPORT * XML_GetPos2(xmlNode_t *parent, const char *name, vec2_t pos)
xmlNode_t *IMPORT * XML_Parse(const char *buffer)
int(IMPORT *NET_ReadShort)(dbuffer *buf)
bool(IMPORT *LIST_IsEmpty)(const linkedList_t *list)
const char const char const char * clickText1
void(IMPORT *NET_StreamFree)(struct net_stream *s)
linkedList_t * equipmentList
Describes a character with all its attributes.
list of script aliases to register
The csi structure is the client-server-information structure which contains all the static data neede...
This is a cvar definition. Cvars can be user modified and used in our menus e.g.
inventory definition for our menus
Defines all attributes of objects used in the inventory.
Defines a type of UGV/Robot.
Atomic structure used to define most of the UI.
void UI_RegisterOption(int dataId, uiNode_t *option)
void UI_UpdateInvisOptions(uiNode_t *option, const linkedList_t *stringList)
Unhide those options that are stored in the linked list and hide the others.
void UI_ResetData(int dataId)
Reset a shared data. Type became NONE and value became nullptr.
void UI_SortOptions(uiNode_t **first)
Sort options by alphabet.
void UI_RegisterText(int dataId, const char *text)
share a text with a data id
void UI_RegisterLinkedListText(int dataId, linkedList_t *text)
share a linked list of text with a data id
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.
void UI_GetNodeAbsPos(const uiNode_t *node, vec2_t pos)
Returns the absolute position of a node.
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.
void UI_MessageResetStack(void)
void UI_MessageAddStack(struct uiMessageListNodeMessage_s *message)
void UI_TextScrollEnd(const char *nodePath)
Scroll to the bottom.
void UI_TextNodeSelectLine(uiNode_t *node, int num)
Change the selected line.
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)
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_DrawFill(int x, int y, int w, int h, const vec4_t color)
Fills a box of pixels with a single color.
uiNode_t * UI_PushWindow(const char *name, const char *parentName, linkedList_t *params)
Push a window onto the window stack.
void UI_PopWindow(bool all)
Pops a window from the window stack.
void UI_InitStack(const char *activeWindow, const char *mainWindow)
Init the stack to start with a window, and have an alternative window with ESC.
void XML_AddPos2(xmlNode_t *parent, const char *name, const vec2_t pos)
add a Pos2 data to the XML Tree
void XML_AddFloatValue(xmlNode_t *parent, const char *name, float value)
add a non-zero Float attribute to the XML Node
double XML_GetDouble(xmlNode_t *parent, const char *name, const double defaultval)
retrieve a Double attribute from an XML Node
float XML_GetFloat(xmlNode_t *parent, const char *name, const float defaultval)
retrieve a Float attribute from an XML Node
void XML_AddByte(xmlNode_t *parent, const char *name, byte value)
add a Byte attribute to the XML Node
bool XML_GetBool(xmlNode_t *parent, const char *name, const bool defaultval)
retrieve a Boolean attribute from an XML Node
void XML_AddString(xmlNode_t *parent, const char *name, const char *value)
add a String attribute to the XML Node
void XML_AddIntValue(xmlNode_t *parent, const char *name, int value)
add a non-zero Int attribute to the XML Node
long XML_GetLong(xmlNode_t *parent, const char *name, const long defaultval)
retrieve a Long attribute from an XML Node
void XML_AddStringValue(xmlNode_t *parent, const char *name, const char *value)
add a non-empty String attribute to the XML Node
void XML_AddShortValue(xmlNode_t *parent, const char *name, short value)
add a non-zero Short 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
void XML_AddFloat(xmlNode_t *parent, const char *name, float value)
add a Float attribute to the XML Node
short XML_GetShort(xmlNode_t *parent, const char *name, const short defaultval)
retrieve a Short attribute from an XML Node
void XML_AddDouble(xmlNode_t *parent, const char *name, double value)
add a Double attribute to the XML Node
void XML_AddByteValue(xmlNode_t *parent, const char *name, byte value)
add a non-zero Byte attribute to the XML Node
void XML_AddLongValue(xmlNode_t *parent, const char *name, long value)
add a non-zero Long attribute to the XML Node
void XML_AddDoubleValue(xmlNode_t *parent, const char *name, double value)
add a non-zero Double 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 XML_AddBool(xmlNode_t *parent, const char *name, bool value)
add a Boolean attribute to the XML Node
void XML_AddInt(xmlNode_t *parent, const char *name, int value)
add an Int attribute to the XML Node
void XML_AddShort(xmlNode_t *parent, const char *name, short value)
add a Short attribute to the XML Node
void XML_AddPos3(xmlNode_t *parent, const char *name, const vec3_t pos)
add a Pos3 data to the XML Tree
void XML_AddDate(xmlNode_t *parent, const char *name, const int day, const int sec)
add a date data to the XML Tree
void XML_AddBoolValue(xmlNode_t *parent, const char *name, bool value)
add a non-false Boolean attribute to the XML Node