1 #ifndef __AI_INTERPRET_H 2 #define __AI_INTERPRET_H 10 #define AI_FUNCTION_OBJECT "Think" 11 #define AI_VAR_G_STR "Variables" 12 #define AI_TYPE_STR "AI_Type" 13 #define AI_TYPE_PRESET_STR "preset" 14 #define AI_TYPE_VARIABLE_STR "variable" 15 #define AI_TYPE_RECURSIVE_STR "AI_Recursive" 16 #define AI_VAR_GRAVITY_STR "gravity" 18 #define AI_VAR_STR "variables" 23 #define AI_CHECK_STR "condition" 26 #define AI_BASE_JUMP -5 27 #define AI_BASE_SPEED 1 28 #define AI_BASE_THINK_FRAMES 1 29 #define AI_BASE_DAMAGE 5 124 ai_function_t *
ParseAI(object_t *obj,
char *g_str,
char **variables);
void SetAI_Var(ai_function_t *function, char *data_str, ai_variables_t var_type)
ai_variables_t StrToVariableType(const char *str)
void SetAI_Check(ai_function_t *function, char **variables_str, char *data_str, ai_conditions_t condition)
ai_function_t * ParseAI(object_t *obj, char *g_str, char **variables)
ai_function_t * ParsePresetAI(object_t *obj, char *g_str)
ai_actions_t StrToAI_Action(const char *str)
void SetAI_Action(ai_function_t *function, object_t *obj, jsmntok_t *tok, char *g_str, ai_actions_t action_type)
ai_conditions_t StrToAI_Condition(const char *str)
ai_function_t * gPresetAIs
ai_type_t StrToAI_Type(const char *str)
ai_function_t * gVariableAIs