Spellforce-Spell-framework
Loading...
Searching...
No Matches

Hooks and Functions related to AI functionality. More...

Collaboration diagram for AI Hooks:

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_AOE2_hook (SF_CGdBattleDevelopment *_this, SF_Coord *cast_pos, uint16_t spell_line, SF_CGdResourceSpell *spell_data)
uint32_t __thiscall ai_AOE_hook (SF_CGdBattleDevelopment *_this, SF_Coord cast_pos, uint16_t spell_line, SF_CGdResourceSpell *spell_data)

Detailed Description

Hooks and Functions related to AI functionality.

The main function that hooks into spellforce is rank_support_spell_hook.

Function Documentation

◆ ai_AOE2_hook()

uint32_t __thiscall ai_AOE2_hook ( SF_CGdBattleDevelopment * _this,
SF_Coord * cast_pos,
uint16_t spell_line,
SF_CGdResourceSpell * spell_data )

Definition at line 135 of file sf_ai_hook.c.

Here is the call graph for this function:

◆ ai_AOE_hook()

uint32_t __thiscall ai_AOE_hook ( SF_CGdBattleDevelopment * _this,
SF_Coord cast_pos,
uint16_t spell_line,
SF_CGdResourceSpell * spell_data )

Definition at line 143 of file sf_ai_hook.c.

Here is the call graph for this function:

◆ avoidance_penalty_hook()

uint32_t __thiscall avoidance_penalty_hook ( SF_CGdBattleDevelopment * _this,
uint16_t figure_index )

Definition at line 107 of file sf_ai_hook.c.

Here is the call graph for this function:

◆ clearAction()

void clearAction ( SF_SGtFigureAction * _this)

Definition at line 21 of file sf_ai_hook.c.

◆ GetEuclideanDistanceFromRing()

uint32_t GetEuclideanDistanceFromRing ( int x1,
int y1,
int x2,
int y2,
int inner_radius,
int outer_radius )

Definition at line 44 of file sf_ai_hook.c.

◆ getSector()

uint16_t __thiscall getSector ( SF_CGdWorld * _this,
SF_Coord * position )

Definition at line 38 of file sf_ai_hook.c.

◆ isSpellAction()

bool isSpellAction ( SF_SGtFigureAction * _this)

Definition at line 29 of file sf_ai_hook.c.

◆ rank_offensive_spell_hook()

uint32_t __thiscall rank_offensive_spell_hook ( SF_CGdBattleDevelopment * _this,
uint16_t target_index,
uint16_t spell_line,
SF_CGdResourceSpell * spell_data )

Definition at line 86 of file sf_ai_hook.c.

Here is the call graph for this function:

◆ rank_support_spell_hook()

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 69 of file sf_ai_hook.c.

Here is the call graph for this function:

◆ signum()

uint32_t signum ( uint32_t param_1)

Definition at line 61 of file sf_ai_hook.c.