Spellforce-Spell-framework
|
Hooks and Functions related to AI functionality. More...
Functions | |
void | clearAction (SF_SGtFigureAction *_this) |
bool | isSpellAction (SF_SGtFigureAction *_this) |
uint16_t __thiscall | getSector (SF_CGdWorld *_this, SF_Coord *position) |
uint32_t | GetEuclideanDistanceFromRing (int x1, int y1, int x2, int y2, int inner_radius, int outer_radius) |
uint32_t | signum (uint32_t param_1) |
uint32_t __thiscall | rank_support_spell_hook (SF_CGdBattleDevelopment *_this, uint16_t target_index, uint16_t spell_line, SF_CGdResourceSpell *spell_data) |
Injects into the ranking system for a single target AI spell. | |
uint32_t __thiscall | rank_offensive_spell_hook (SF_CGdBattleDevelopment *_this, uint16_t target_index, uint16_t spell_line, SF_CGdResourceSpell *spell_data) |
uint32_t __thiscall | avoidance_penalty_hook (SF_CGdBattleDevelopment *_this, uint16_t figure_index) |
uint32_t __thiscall | ai_AOE_hook (SF_CGdBattleDevelopment *_this, SF_Coord cast_pos, uint16_t spell_line, SF_CGdResourceSpell *spell_data) |
Hooks and Functions related to AI functionality.
The main function that hooks into spellforce is rank_support_spell_hook.
uint32_t __thiscall ai_AOE_hook | ( | SF_CGdBattleDevelopment * | _this, |
SF_Coord | cast_pos, | ||
uint16_t | spell_line, | ||
SF_CGdResourceSpell * | spell_data ) |
uint32_t __thiscall avoidance_penalty_hook | ( | SF_CGdBattleDevelopment * | _this, |
uint16_t | figure_index ) |
void clearAction | ( | SF_SGtFigureAction * | _this | ) |
Definition at line 21 of file sf_ai_hook.c.
uint32_t GetEuclideanDistanceFromRing | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | inner_radius, | ||
int | outer_radius ) |
Definition at line 46 of file sf_ai_hook.c.
uint16_t __thiscall getSector | ( | SF_CGdWorld * | _this, |
SF_Coord * | position ) |
Definition at line 40 of file sf_ai_hook.c.
bool isSpellAction | ( | SF_SGtFigureAction * | _this | ) |
Definition at line 31 of file sf_ai_hook.c.
uint32_t __thiscall rank_offensive_spell_hook | ( | SF_CGdBattleDevelopment * | _this, |
uint16_t | target_index, | ||
uint16_t | spell_line, | ||
SF_CGdResourceSpell * | spell_data ) |
uint32_t __thiscall rank_support_spell_hook | ( | SF_CGdBattleDevelopment * | _this, |
uint16_t | target_index, | ||
uint16_t | spell_line, | ||
SF_CGdResourceSpell * | spell_data ) |
Injects into the ranking system for a single target AI spell.
Definition at line 71 of file sf_ai_hook.c.
uint32_t signum | ( | uint32_t | param_1 | ) |
Definition at line 63 of file sf_ai_hook.c.