00001 00005 /* 00006 Copyright (C) 2002-2010 UFO: Alien Invasion. 00007 00008 This program is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU General Public License 00010 as published by the Free Software Foundation; either version 2 00011 of the License, or (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 00017 See the GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with this program; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 00023 */ 00024 00025 #ifndef CLIENT_UI_UI_CONDITION_H 00026 #define CLIENT_UI_UI_CONDITION_H 00027 00028 #include "../../common/common.h" 00029 00030 /* prototype */ 00031 struct uiNode_s; 00032 struct uiAction_s; 00033 struct uiCallContext_s; 00034 00035 struct uiAction_s *UI_AllocStaticStringCondition(const char *description) __attribute__ ((warn_unused_result)); 00036 struct uiAction_s *UI_ParseExpression(const char **text) __attribute__ ((warn_unused_result)); 00037 00038 qboolean UI_GetBooleanFromExpression(struct uiAction_s *expression, const struct uiCallContext_s *context) __attribute__ ((warn_unused_result)); 00039 float UI_GetFloatFromExpression(struct uiAction_s *expression, const struct uiCallContext_s *context) __attribute__ ((warn_unused_result)); 00040 const char *UI_GetStringFromExpression(struct uiAction_s *expression, const struct uiCallContext_s *context) __attribute__ ((warn_unused_result)); 00041 struct uiNode_s* UI_GetNodeFromExpression(struct uiAction_s *expression, const struct uiCallContext_s *context, const struct value_s **property); 00042 00043 #endif