Spellforce-Spell-framework
Loading...
Searching...
No Matches
sf_wrappers.h File Reference
#include "../../api/sfsf.h"
#include "../../asi/sf_asi.h"
Include dependency graph for sf_wrappers.h:

Go to the source code of this file.

Macros

#define LOG_PRINTF_FMT(fmt_idx, arg_idx)

Typedefs

typedef SF_String *(__thiscall * SF_String_ctor_ptr) (SF_String *, const char *)
typedef void(__thiscall * SF_String_dtor_ptr) (SF_String *)
typedef bool(__thiscall * has_spell_effect_ptr) (SF_CGdFigureToolbox *_this, uint16_t param_1, uint16_t param_2)
typedef uint16_t(__thiscall * get_phys_damage_reduction_ptr) (void *AutoClass34, uint16_t source_index, uint16_t target_index, uint16_t unkn)

Functions

void log_message (const char *filename, const char *message,...)
void initialize_wrapper_data_hooks ()
uint16_t __thiscall getCurrentStat (SF_CGdFigure *_this, uint16_t target, StatisticDataKey key)
uint16_t __thiscall getMaxStat (SF_CGdFigure *_this, uint16_t target, StatisticDataKey key)
uint32_t __thiscall getDistance (SF_Coord *pointA, SF_Coord *pointB)
bool __thiscall isSiegeUnit (SF_CGdFigure *_this, uint16_t figure_index)
bool __thiscall hasAuraActive (SF_CGdFigureToolbox *_this, uint16_t figure_id)
bool __thiscall isActionMelee (SF_SGtFigureAction *_this)
bool __thiscall hasSpellTag (uint16_t spell_id, SpellTag tag)
void __thiscall setupFigureIterator (CGdFigureIterator *iterator, SF_CGdSpell *spell)
void __thiscall disposeFigureIterator (CGdFigureIterator *iterator)
bool __thiscall hasBuildingTag (uint8_t building_type, BuildingTag tag)
uint32_t __thiscall getBuildingXData (SF_CGdBuildingToolbox *_this, uint16_t building_index, uint8_t key_type)
bool __thiscall buildingIsScavenger (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall buildingIsFisher (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall buildingIsFoodstore (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall buildingIsForge (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall buildingIsGatherer (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall buildingIsHQ (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall buildingIsHunter (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall buildingIsIronMine (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall buildingIsMaceCarver (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall buildingIsMoonsilverMine (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall buildingIsQuarry (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall buildingIsSawmill (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall buildingIsSmelter (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall buildingIsStonecutter (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall buildingIsTemple (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall buildingIsTower (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall buildingIsWoodcutter (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall buildingIsShrine (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall buildingIsHabitable (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall buildingIsHabitableSingle (SF_CGdBuilding *_this, uint16_t building_index)
bool __thiscall XDataExists (SF_CGdEffect *_this, uint16_t effect_index, SpellDataKey data)
void __thiscall tryClearCheckSpellsBeforeJob (SF_CGdSpell *_this, uint16_t spell_index, uint16_t figure_index)
void __thiscall spellEffectCallback (SF_CGdSpell *_this, uint16_t source_index, uint16_t spell_index, bool(*condition)(SF_CGdSpell *_this, uint16_t spell_index, uint16_t walked_index), void(*callback)(SF_CGdSpell *_this, uint16_t source_index, uint16_t walked_index, uint16_t spell_index))
void __thiscall addBonusMultToStatistic (SF_CGdFigure *figure, StatisticDataKey key, uint16_t target, int8_t value)
void __thiscall spellClearFigureFlag (SF_CGdSpell *spell, uint16_t spell_index, SpellFlagKey key)
uint16_t __thiscall sf_get_spell_id (SF_CGdSpell *_this, uint16_t spell_index)
SFLogsetup_logger ()
uint16_t __thiscall getPhysDamageReduction (SF_CGdFigureToolbox *_this, uint16_t source_index, uint16_t target_index, uint16_t action_id)
void log_warning (const char *format,...)
 Logs a warning at DEBUG_INFO, i.e. always shown.
void log_warning_level (DebugLevel level, const char *format,...)
 Logs a warning that is only shown once the log level reaches level.
void log_info (const char *format,...)
void log_error (const char *format,...)
void log_debug (DebugLevel level, const char *format,...)
const char * debug_level_to_string (DebugLevel level)

Variables

FUN_0069eaf0_ptr FUN_0069eaf0
fidfree_ptr fidFree
SF_String_ctor_ptr g_create_sf_string
SF_String_dtor_ptr g_destroy_sf_string
has_spell_effect_ptr has_spell_effect
get_phys_damage_reduction_ptr g_get_reduced_damage
DebugLevel global_debug_level

Macro Definition Documentation

◆ LOG_PRINTF_FMT

#define LOG_PRINTF_FMT ( fmt_idx,
arg_idx )

Definition at line 7 of file sf_wrappers.h.

Typedef Documentation

◆ get_phys_damage_reduction_ptr

typedef uint16_t(__thiscall * get_phys_damage_reduction_ptr) (void *AutoClass34, uint16_t source_index, uint16_t target_index, uint16_t unkn)

Definition at line 95 of file sf_wrappers.h.

◆ has_spell_effect_ptr

typedef bool(__thiscall * has_spell_effect_ptr) (SF_CGdFigureToolbox *_this, uint16_t param_1, uint16_t param_2)

Definition at line 15 of file sf_wrappers.h.

◆ SF_String_ctor_ptr

typedef SF_String *(__thiscall * SF_String_ctor_ptr) (SF_String *, const char *)

Definition at line 13 of file sf_wrappers.h.

◆ SF_String_dtor_ptr

typedef void(__thiscall * SF_String_dtor_ptr) (SF_String *)

Definition at line 14 of file sf_wrappers.h.

Function Documentation

◆ spellEffectCallback()

void __thiscall spellEffectCallback ( SF_CGdSpell * _this,
uint16_t source_index,
uint16_t spell_index,
bool(* condition )(SF_CGdSpell *_this, uint16_t spell_index, uint16_t walked_index),
void(* callback )(SF_CGdSpell *_this, uint16_t source_index, uint16_t walked_index, uint16_t spell_index) )
extern

Variable Documentation

◆ g_get_reduced_damage

get_phys_damage_reduction_ptr g_get_reduced_damage
extern

Definition at line 70 of file sf_onhit_hook.c.

◆ global_debug_level

DebugLevel global_debug_level
extern

Definition at line 18 of file sfsf.cpp.