Spellforce-Spell-framework
|
Header file for defining AI-related battle functions for managing spellcasting, NPC behavior, and target actions in the game. More...
Go to the source code of this file.
Data Structures | |
struct | ushort_list_node |
Represents a node in a list of unsigned short values. More... | |
struct | uint_list_node |
struct | AutoClass60_data |
Stores data related to a specific entity in the AI system. More... | |
struct | AutoClass60 |
Holds a list of entities with associated data and an entity count. More... | |
struct | CGdAIBattleData |
The main structure for handling AI battle data. More... | |
struct | SF_CGdBattleDevelopment |
High-level structure managing AI battle development. More... | |
struct | AiFunctions |
Group of functions related to AI manipulation. More... | |
Typedefs | |
typedef SF_SGtFigureAction *(__thiscall * | getTargetAction_ptr) (SF_CGdFigure *figure, SF_SGtFigureAction *action, uint16_t figure_id) |
Retrieves the target action for a specific figure. | |
typedef SF_SGtFigureAction *(__thiscall * | getFigureAction_ptr) (SF_CGdFigure *figure, SF_SGtFigureAction *action, uint16_t figure_id, uint8_t action_index) |
typedef void(__thiscall * | setAICurrentActionRanking_ptr) (SF_CGdBattleDevelopment *_this, int rank) |
Sets the ranking of the current action for AI decision-making. | |
typedef int(__thiscall * | getAICurrentActionRanking_ptr) (SF_CGdBattleDevelopment *_this) |
typedef bool(__thiscall * | canFigureDoAction_ptr) (SF_CGdBattleDevelopment *_this, SF_SGtFigureAction *action) |
typedef void(__thiscall * | getActionStats_ptr) (SF_CGdBattleDevelopment *_this, uint16_t *minRange, uint16_t *maxRange, SF_CGdResourceSpell *spellData) |
typedef bool(__thiscall * | isAIVectorEmpty_ptr) (void *_this) |
typedef uint16_t **(__thiscall * | getAIVectorFirstElement_ptr) (void *_this, uint16_t **pvalue) |
typedef uint16_t **(__thiscall * | getAIVectorGetCurrent_ptr) (void *_this, uint16_t **value) |
typedef int(__thiscall * | getAIVectorLength_ptr) (void *_this) |
typedef uint16_t(__thiscall * | getCastType_ptr) (void *resource, uint16_t spellID) |
typedef void *(__thiscall * | AC60AddOrGetEntity_ptr) (void *_autoclass60, uint16_t entity_index) |
typedef SF_Coord *(__thiscall * | getPositionToCastAlly_ptr) (SF_CGdBattleDevelopment *_this, SF_Coord *param_1, void *std_vector_uint16_t) |
typedef SF_Coord *(__thiscall * | getPositionToCastEnemy_ptr) (SF_CGdBattleDevelopment *_this, SF_Coord *param_1, void *std_vector_uint16_t) |
typedef bool(__thiscall * | isUnknownWorldFeature_ptr) (SF_CGdWorldToolBox *, uint16_t figure_index, SF_Coord *param2, SF_Coord *param3, uint32_t param4, SF_Coord *param5, uint16_t param6) |
Header file for defining AI-related battle functions for managing spellcasting, NPC behavior, and target actions in the game.
This file provides the necessary data structures and function declarations used by the AI to interact with the game's entities, actions, and battle mechanics. Functions include getting and setting AI actions, managing AI figures, and handling spell casting behaviors.
Definition in file sf_ai_functions.h.
typedef void *(__thiscall * AC60AddOrGetEntity_ptr) (void *_autoclass60, uint16_t entity_index) |
Definition at line 223 of file sf_ai_functions.h.
typedef bool(__thiscall * canFigureDoAction_ptr) (SF_CGdBattleDevelopment *_this, SF_SGtFigureAction *action) |
Definition at line 209 of file sf_ai_functions.h.
typedef void(__thiscall * getActionStats_ptr) (SF_CGdBattleDevelopment *_this, uint16_t *minRange, uint16_t *maxRange, SF_CGdResourceSpell *spellData) |
Definition at line 212 of file sf_ai_functions.h.
typedef int(__thiscall * getAICurrentActionRanking_ptr) (SF_CGdBattleDevelopment *_this) |
Definition at line 206 of file sf_ai_functions.h.
typedef uint16_t **(__thiscall * getAIVectorFirstElement_ptr) (void *_this, uint16_t **pvalue) |
Definition at line 217 of file sf_ai_functions.h.
typedef uint16_t **(__thiscall * getAIVectorGetCurrent_ptr) (void *_this, uint16_t **value) |
Definition at line 219 of file sf_ai_functions.h.
typedef int(__thiscall * getAIVectorLength_ptr) (void *_this) |
Definition at line 220 of file sf_ai_functions.h.
typedef uint16_t(__thiscall * getCastType_ptr) (void *resource, uint16_t spellID) |
Definition at line 221 of file sf_ai_functions.h.
typedef SF_SGtFigureAction *(__thiscall * getFigureAction_ptr) (SF_CGdFigure *figure, SF_SGtFigureAction *action, uint16_t figure_id, uint8_t action_index) |
Definition at line 190 of file sf_ai_functions.h.
typedef SF_Coord *(__thiscall * getPositionToCastAlly_ptr) (SF_CGdBattleDevelopment *_this, SF_Coord *param_1, void *std_vector_uint16_t) |
Definition at line 226 of file sf_ai_functions.h.
typedef SF_Coord *(__thiscall * getPositionToCastEnemy_ptr) (SF_CGdBattleDevelopment *_this, SF_Coord *param_1, void *std_vector_uint16_t) |
Definition at line 229 of file sf_ai_functions.h.
typedef SF_SGtFigureAction *(__thiscall * getTargetAction_ptr) (SF_CGdFigure *figure, SF_SGtFigureAction *action, uint16_t figure_id) |
Retrieves the target action for a specific figure.
This function determines the action a figure should perform based on the target it is currently focused on. The figure's action is retrieved from the action list and returned.
figure | Pointer to the figure that will perform the action. |
action | Pointer to an action structure where the action details will be stored. |
figure_id | ID of the figure whose action is being queried. |
Definition at line 186 of file sf_ai_functions.h.
typedef bool(__thiscall * isAIVectorEmpty_ptr) (void *_this) |
Definition at line 215 of file sf_ai_functions.h.
typedef bool(__thiscall * isUnknownWorldFeature_ptr) (SF_CGdWorldToolBox *, uint16_t figure_index, SF_Coord *param2, SF_Coord *param3, uint32_t param4, SF_Coord *param5, uint16_t param6) |
Definition at line 233 of file sf_ai_functions.h.
typedef void(__thiscall * setAICurrentActionRanking_ptr) (SF_CGdBattleDevelopment *_this, int rank) |
Sets the ranking of the current action for AI decision-making.
This function assigns a ranking value to the AI's current action, which influences the AI's decision-making process for which action to perform next based on its priorities and the battle situation.
_this | Pointer to the AI battle development structure. |
rank | The ranking value to assign to the current action. Higher values indicate higher priority. |
Definition at line 203 of file sf_ai_functions.h.