Spellforce-Spell-framework
Loading...
Searching...
No Matches
sf_spell_functions.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include "./structures/sf_spell_structures.h"
Include dependency graph for sf_spell_functions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SF_CGdResourceSpell
struct  SF_CGdResourceSpellLine
struct  SpellFunctions
 Represents a collection of function pointers for managing spell-related operations. More...

Typedefs

typedef void(__thiscall * setXData_ptr) (SF_CGdSpell *_this, uint16_t spell_id, uint8_t xdatakey, uint32_t value)
typedef void(__thiscall * initializeSpellData_ptr) (SF_CGdSpell *_this, uint16_t spell_id, SpellDataKey key)
typedef void(__thiscall * setEffectDone_ptr) (SF_CGdSpell *_this, uint16_t spell_id, uint16_t param_2)
typedef uint32_t(__thiscall * addToXData_ptr) (SF_CGdSpell *_this, uint16_t spell_id, SpellDataKey key, uint32_t value)
typedef uint32_t(__thiscall * getChanceToResistSpell_ptr) (void *autoclass34, uint16_t source, uint16_t target, uint16_t spell_index)
typedef uint16_t(__thiscall * getRandom_ptr) (void *autoclass14, uint16_t max_value)
typedef void(__thiscall * addVisualEffect_ptr) (SF_CGdSpell *_this, uint16_t spell_id, CGdEffectType effect_id, void *unused, SF_CGdTargetData *target, uint32_t tick_start, uint16_t tick_count, void *corner_coords)
typedef void(__thiscall * figureAggro_ptr) (SF_CGdSpell *_this, uint16_t spell_id, uint16_t target_index)
typedef SF_CGdResourceSpell *(__thiscall * getResourceSpellData_ptr) (void *, SF_CGdResourceSpell *spellData, uint16_t index)
typedef uint32_t(__thiscall * getXData_ptr) (SF_CGdSpell *_this, uint16_t spell_id, SpellDataKey key)
typedef SF_Rectangle *(__thiscall * getTargetsRectangle_ptr) (SF_CGdSpell *_this, SF_Rectangle *output, uint16_t spell_id, uint16_t radius, SF_Coord *center_maybe)
typedef void(__thiscall * removeDLLNode_ptr) (SF_CGdSpell *_this, uint16_t param_1)
typedef void(__thiscall * spellClearFigureFlag_ptr) (SF_CGdSpell *_this, uint16_t spell_id, SpellFlagKey key)
typedef void(__thiscall * onSpellRemove_ptr) (SF_CGdSpell *_this, uint16_t spell_id)
typedef uint16_t(__thiscall * addSpell_ptr) (SF_CGdSpell *_this, uint16_t spell_id, uint16_t param2, SF_CGdTargetData *source, SF_CGdTargetData *target, uint16_t param5)
typedef uint16_t(__thiscall * getSpellLine_ptr) (SF_CGdSpell *_this, uint16_t spell_id)
typedef void(__thiscall * figClrChkSplBfrChkBattle_ptr) (SF_CGdSpell *_this, uint16_t spell_id, uint16_t figure_id)
typedef void(__thiscall * figTryClrCHkSPlBfrJob2_ptr) (SF_CGdSpell *_this, uint16_t spell_id)
typedef void(__thiscall * figTryUnfreeze_ptr) (SF_CGdSpell *_this, uint16_t spell_id, uint16_t figure_id)
typedef uint16_t(__thiscall * getSpellID_ptr) (SF_CGdSpell *_this, uint16_t spell_index)
typedef uint16_t(__thiscall * getSpellTags_ptr) (uint16_t spell_index)
typedef bool(__thiscall * hasSpellTag_ptr) (uint16_t spell_line_id, SpellTag tag)
typedef int(__thiscall * checkCanApply_ptr) (SF_CGdSpell *_this, uint16_t index)
typedef void(__thiscall * spellEffectCallback_ptr) (SF_CGdSpell *_this, uint16_t source_index, uint16_t spell_index, bool(*conditionPtr) (SF_CGdSpell *, uint16_t, uint16_t), void(*callbackPtr) (SF_CGdSpell *, uint16_t, uint16_t, uint16_t))
typedef uint16_t(__thiscall * getLeveledSpellID_ptr) (void *CGdResource, uint16_t source_spell_id, uint16_t spell_level)
typedef void(__thiscall * tryClearCheckSpellsBeforeJob_ptr) (SF_CGdSpell *_this, uint16_t spell_index, uint16_t figure_index)

Typedef Documentation

◆ addSpell_ptr

typedef uint16_t(__thiscall * addSpell_ptr) (SF_CGdSpell *_this, uint16_t spell_id, uint16_t param2, SF_CGdTargetData *source, SF_CGdTargetData *target, uint16_t param5)

Definition at line 68 of file sf_spell_functions.h.

◆ addToXData_ptr

typedef uint32_t(__thiscall * addToXData_ptr) (SF_CGdSpell *_this, uint16_t spell_id, SpellDataKey key, uint32_t value)

Definition at line 44 of file sf_spell_functions.h.

◆ addVisualEffect_ptr

typedef void(__thiscall * addVisualEffect_ptr) (SF_CGdSpell *_this, uint16_t spell_id, CGdEffectType effect_id, void *unused, SF_CGdTargetData *target, uint32_t tick_start, uint16_t tick_count, void *corner_coords)

Definition at line 52 of file sf_spell_functions.h.

◆ checkCanApply_ptr

typedef int(__thiscall * checkCanApply_ptr) (SF_CGdSpell *_this, uint16_t index)

Definition at line 80 of file sf_spell_functions.h.

◆ figClrChkSplBfrChkBattle_ptr

typedef void(__thiscall * figClrChkSplBfrChkBattle_ptr) (SF_CGdSpell *_this, uint16_t spell_id, uint16_t figure_id)

Definition at line 71 of file sf_spell_functions.h.

◆ figTryClrCHkSPlBfrJob2_ptr

typedef void(__thiscall * figTryClrCHkSPlBfrJob2_ptr) (SF_CGdSpell *_this, uint16_t spell_id)

Definition at line 73 of file sf_spell_functions.h.

◆ figTryUnfreeze_ptr

typedef void(__thiscall * figTryUnfreeze_ptr) (SF_CGdSpell *_this, uint16_t spell_id, uint16_t figure_id)

Definition at line 75 of file sf_spell_functions.h.

◆ figureAggro_ptr

typedef void(__thiscall * figureAggro_ptr) (SF_CGdSpell *_this, uint16_t spell_id, uint16_t target_index)

Definition at line 54 of file sf_spell_functions.h.

◆ getChanceToResistSpell_ptr

typedef uint32_t(__thiscall * getChanceToResistSpell_ptr) (void *autoclass34, uint16_t source, uint16_t target, uint16_t spell_index)

Definition at line 47 of file sf_spell_functions.h.

◆ getLeveledSpellID_ptr

typedef uint16_t(__thiscall * getLeveledSpellID_ptr) (void *CGdResource, uint16_t source_spell_id, uint16_t spell_level)

Definition at line 84 of file sf_spell_functions.h.

◆ getRandom_ptr

typedef uint16_t(__thiscall * getRandom_ptr) (void *autoclass14, uint16_t max_value)

Definition at line 48 of file sf_spell_functions.h.

◆ getResourceSpellData_ptr

typedef SF_CGdResourceSpell *(__thiscall * getResourceSpellData_ptr) (void *, SF_CGdResourceSpell *spellData, uint16_t index)

Definition at line 56 of file sf_spell_functions.h.

◆ getSpellID_ptr

typedef uint16_t(__thiscall * getSpellID_ptr) (SF_CGdSpell *_this, uint16_t spell_index)

Definition at line 77 of file sf_spell_functions.h.

◆ getSpellLine_ptr

typedef uint16_t(__thiscall * getSpellLine_ptr) (SF_CGdSpell *_this, uint16_t spell_id)

Definition at line 69 of file sf_spell_functions.h.

◆ getSpellTags_ptr

typedef uint16_t(__thiscall * getSpellTags_ptr) (uint16_t spell_index)

Definition at line 78 of file sf_spell_functions.h.

◆ getTargetsRectangle_ptr

typedef SF_Rectangle *(__thiscall * getTargetsRectangle_ptr) (SF_CGdSpell *_this, SF_Rectangle *output, uint16_t spell_id, uint16_t radius, SF_Coord *center_maybe)

Definition at line 61 of file sf_spell_functions.h.

◆ getXData_ptr

typedef uint32_t(__thiscall * getXData_ptr) (SF_CGdSpell *_this, uint16_t spell_id, SpellDataKey key)

Definition at line 58 of file sf_spell_functions.h.

◆ hasSpellTag_ptr

typedef bool(__thiscall * hasSpellTag_ptr) (uint16_t spell_line_id, SpellTag tag)

Definition at line 79 of file sf_spell_functions.h.

◆ initializeSpellData_ptr

typedef void(__thiscall * initializeSpellData_ptr) (SF_CGdSpell *_this, uint16_t spell_id, SpellDataKey key)

Definition at line 40 of file sf_spell_functions.h.

◆ onSpellRemove_ptr

typedef void(__thiscall * onSpellRemove_ptr) (SF_CGdSpell *_this, uint16_t spell_id)

Definition at line 65 of file sf_spell_functions.h.

◆ removeDLLNode_ptr

typedef void(__thiscall * removeDLLNode_ptr) (SF_CGdSpell *_this, uint16_t param_1)

Definition at line 62 of file sf_spell_functions.h.

◆ setEffectDone_ptr

typedef void(__thiscall * setEffectDone_ptr) (SF_CGdSpell *_this, uint16_t spell_id, uint16_t param_2)

Definition at line 42 of file sf_spell_functions.h.

◆ setXData_ptr

typedef void(__thiscall * setXData_ptr) (SF_CGdSpell *_this, uint16_t spell_id, uint8_t xdatakey, uint32_t value)

Definition at line 38 of file sf_spell_functions.h.

◆ spellClearFigureFlag_ptr

typedef void(__thiscall * spellClearFigureFlag_ptr) (SF_CGdSpell *_this, uint16_t spell_id, SpellFlagKey key)

Definition at line 64 of file sf_spell_functions.h.

◆ spellEffectCallback_ptr

typedef void(__thiscall * spellEffectCallback_ptr) (SF_CGdSpell *_this, uint16_t source_index, uint16_t spell_index, bool(*conditionPtr)(SF_CGdSpell *, uint16_t, uint16_t), void(*callbackPtr)(SF_CGdSpell *, uint16_t, uint16_t, uint16_t))

Definition at line 83 of file sf_spell_functions.h.

◆ tryClearCheckSpellsBeforeJob_ptr

typedef void(__thiscall * tryClearCheckSpellsBeforeJob_ptr) (SF_CGdSpell *_this, uint16_t spell_index, uint16_t figure_index)

Definition at line 85 of file sf_spell_functions.h.