UFO: Alien Invasion
Loading...
Searching...
No Matches
ui_expression.cpp File Reference
#include "ui_expression.h"
#include "ui_main.h"
#include "ui_node.h"
#include "ui_internal.h"
#include "ui_parse.h"
#include "ui_actions.h"
#include "node/ui_node_abstractnode.h"
#include "../../shared/parse.h"
#include "../../shared/shared.h"
Include dependency graph for ui_expression.cpp:

Go to the source code of this file.

Macros

#define VALUE1   UI_GetBooleanFromExpression(expression->d.nonTerminal.left, context)
#define VALUE2   UI_GetBooleanFromExpression(expression->d.nonTerminal.right, context)

Functions

uiNode_tUI_GetNodeFromExpression (uiAction_t *expression, const uiCallContext_t *context, const value_t **property)
 Get a node and a property from an expression.
float UI_GetFloatFromExpression (uiAction_t *expression, const uiCallContext_t *context)
const char * UI_GetStringFromExpression (uiAction_t *expression, const uiCallContext_t *context)
bool UI_GetBooleanFromExpression (uiAction_t *expression, const uiCallContext_t *context)
 Check if an expression is true.
uiAction_tUI_AllocStaticStringCondition (const char *description)
 Allocate and initialize an expression according to a string.
static uiAction_tUI_ParseValueExpression (const char **text)
 Read a value from the stream and init an action with it.
uiAction_tUI_ParseExpression (const char **text)

Macro Definition Documentation

◆ VALUE1

#define VALUE1   UI_GetBooleanFromExpression(expression->d.nonTerminal.left, context)

◆ VALUE2

#define VALUE2   UI_GetBooleanFromExpression(expression->d.nonTerminal.right, context)

Function Documentation

◆ UI_AllocStaticStringCondition()

uiAction_t * UI_AllocStaticStringCondition ( const char * description)

Allocate and initialize an expression according to a string.

Parameters
[in]descriptionString describing a condition
Returns
The condition if everything is ok, nullptr otherwise

Definition at line 540 of file ui_expression.cpp.

References Com_Printf(), UI_ParseExpression(), and va().

Referenced by UI_ParseProperty().

◆ UI_GetBooleanFromExpression()

◆ UI_GetFloatFromExpression()

◆ UI_GetNodeFromExpression()

◆ UI_GetStringFromExpression()

const char * UI_GetStringFromExpression ( uiAction_t * expression,
const uiCallContext_t * context )

◆ UI_ParseExpression()

◆ UI_ParseValueExpression()

uiAction_t * UI_ParseValueExpression ( const char ** text)
static