Spellforce-Spell-framework
Loading...
Searching...
No Matches
sf_building_functions.h File Reference
Include dependency graph for sf_building_functions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BuildingFunctions

Typedefs

typedef void(__thiscall * setBuildingXData_ptr) (SF_CGdBuildingToolbox *_this, uint16_t building_index, uint8_t key_type, uint32_t value)
typedef uint32_t(__thiscall * getBuildingXData_ptr) (SF_CGdBuildingToolbox *_this, uint16_t building_index, uint8_t key_type)
typedef void(__thiscall * attachTowerUnit_ptr) (SF_CGdBuildingToolbox *_this, uint16_t building_index, uint16_t unit_id)
typedef void(__thiscall * buildingDealDamage_ptr) (SF_CGdBuildingToolbox *_this, uint16_t figure_id, uint16_t building_id, uint16_t damage, uint32_t is_spell_damage)
typedef bool(__thiscall * buildingCheckAllied_ptr) (SF_CGdBuildingToolbox *_this, uint16_t figure_index, uint16_t building_index)
typedef bool(__thiscall * buildingCheckHostile_ptr) (SF_CGdBuildingToolbox *_this, uint16_t figure_index, uint16_t building_index)
typedef SF_Coord *(__thiscall * getBuildingClosestVertex_ptr) (SF_CGdBuildingToolbox *_this, SF_Coord *out_position, uint16_t building_index, uint16_t figure_index, uint32_t unknown)
typedef uint8_t(__thiscall * releaseWorkers_ptr) (SF_CGdBuilding *_this, uint16_t building_id, uint8_t count)
typedef void(__thiscall * freeAssignedWorker_ptr) (SF_CGdBuildingToolbox *_this, uint16_t figure_id)
typedef uint8_t(__thiscall * updateProduction_ptr) (SF_CGdPlayer *_this, uint16_t owner, uint8_t race, uint8_t production_type, uint8_t increase)
typedef bool(__thiscall * hasBuildingTag_ptr) (uint8_t building_type, BuildingTag tag)
typedef uint32_t(__thiscall * getBuildingTags_ptr) (uint8_t building_type)
typedef uint16_t(__thiscall * findClosestBuilding_ptr) (SF_CGdBuildingToolbox *_this, SF_Coord position, uint8_t type, uint16_t owner, uint32_t radius)
typedef void(__thiscall * addFigureToBuilding_ptr) (SF_CGdBuildingToolbox *_this, uint16_t building_id, uint16_t figure_id, bool updateFlag)
typedef bool(__thiscall * buildingIsScavenger_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef bool(__thiscall * buildingIsFisher_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef bool(__thiscall * buildingIsFoodstore_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef bool(__thiscall * buildingIsForge_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef bool(__thiscall * buildingIsGatherer_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef bool(__thiscall * buildingIsHQ_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef bool(__thiscall * buildingIsHunter_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef bool(__thiscall * buildingIsIronMine_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef bool(__thiscall * buildingIsMaceCarver_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef bool(__thiscall * buildingIsMoonsilverMine_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef bool(__thiscall * buildingIsQuarry_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef bool(__thiscall * buildingIsSawmill_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef bool(__thiscall * buildingIsSmelter_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef bool(__thiscall * buildingIsStonecutter_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef bool(__thiscall * buildingIsTemple_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef bool(__thiscall * buildingIsTower_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef bool(__thiscall * buildingIsWoodcutter_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef bool(__thiscall * buildingIsShrine_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef bool(__thiscall * buildingIsHabitable_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef bool(__thiscall * buildingIsHabitableSingle_ptr) (SF_CGdBuilding *_this, uint16_t building_index)
typedef uint8_t(__thiscall * getRacialFoodstore_ptr) (uint8_t race)
typedef uint8_t(__thiscall * getRacialSmelter_ptr) (uint8_t race)
typedef uint8_t(__thiscall * getRacialSawmill_ptr) (uint8_t race)
typedef uint8_t(__thiscall * getRacialStonecutter_ptr) (uint8_t race)
typedef uint8_t(__thiscall * getRacialWoodcutter_ptr) (uint8_t race)
typedef uint8_t(__thiscall * getRacialIronMine_ptr) (uint8_t race)
typedef uint8_t(__thiscall * getRacialQuarry_ptr) (uint8_t race)

Typedef Documentation

◆ addFigureToBuilding_ptr

typedef void(__thiscall * addFigureToBuilding_ptr) (SF_CGdBuildingToolbox *_this, uint16_t building_id, uint16_t figure_id, bool updateFlag)

Definition at line 25 of file sf_building_functions.h.

◆ attachTowerUnit_ptr

typedef void(__thiscall * attachTowerUnit_ptr) (SF_CGdBuildingToolbox *_this, uint16_t building_index, uint16_t unit_id)

Definition at line 7 of file sf_building_functions.h.

◆ buildingCheckAllied_ptr

typedef bool(__thiscall * buildingCheckAllied_ptr) (SF_CGdBuildingToolbox *_this, uint16_t figure_index, uint16_t building_index)

Definition at line 11 of file sf_building_functions.h.

◆ buildingCheckHostile_ptr

typedef bool(__thiscall * buildingCheckHostile_ptr) (SF_CGdBuildingToolbox *_this, uint16_t figure_index, uint16_t building_index)

Definition at line 13 of file sf_building_functions.h.

◆ buildingDealDamage_ptr

typedef void(__thiscall * buildingDealDamage_ptr) (SF_CGdBuildingToolbox *_this, uint16_t figure_id, uint16_t building_id, uint16_t damage, uint32_t is_spell_damage)

Definition at line 9 of file sf_building_functions.h.

◆ buildingIsFisher_ptr

typedef bool(__thiscall * buildingIsFisher_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 28 of file sf_building_functions.h.

◆ buildingIsFoodstore_ptr

typedef bool(__thiscall * buildingIsFoodstore_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 29 of file sf_building_functions.h.

◆ buildingIsForge_ptr

typedef bool(__thiscall * buildingIsForge_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 30 of file sf_building_functions.h.

◆ buildingIsGatherer_ptr

typedef bool(__thiscall * buildingIsGatherer_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 31 of file sf_building_functions.h.

◆ buildingIsHabitable_ptr

typedef bool(__thiscall * buildingIsHabitable_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 45 of file sf_building_functions.h.

◆ buildingIsHabitableSingle_ptr

typedef bool(__thiscall * buildingIsHabitableSingle_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 46 of file sf_building_functions.h.

◆ buildingIsHQ_ptr

typedef bool(__thiscall * buildingIsHQ_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 32 of file sf_building_functions.h.

◆ buildingIsHunter_ptr

typedef bool(__thiscall * buildingIsHunter_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 33 of file sf_building_functions.h.

◆ buildingIsIronMine_ptr

typedef bool(__thiscall * buildingIsIronMine_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 34 of file sf_building_functions.h.

◆ buildingIsMaceCarver_ptr

typedef bool(__thiscall * buildingIsMaceCarver_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 35 of file sf_building_functions.h.

◆ buildingIsMoonsilverMine_ptr

typedef bool(__thiscall * buildingIsMoonsilverMine_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 36 of file sf_building_functions.h.

◆ buildingIsQuarry_ptr

typedef bool(__thiscall * buildingIsQuarry_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 37 of file sf_building_functions.h.

◆ buildingIsSawmill_ptr

typedef bool(__thiscall * buildingIsSawmill_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 38 of file sf_building_functions.h.

◆ buildingIsScavenger_ptr

typedef bool(__thiscall * buildingIsScavenger_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 27 of file sf_building_functions.h.

◆ buildingIsShrine_ptr

typedef bool(__thiscall * buildingIsShrine_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 44 of file sf_building_functions.h.

◆ buildingIsSmelter_ptr

typedef bool(__thiscall * buildingIsSmelter_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 39 of file sf_building_functions.h.

◆ buildingIsStonecutter_ptr

typedef bool(__thiscall * buildingIsStonecutter_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 40 of file sf_building_functions.h.

◆ buildingIsTemple_ptr

typedef bool(__thiscall * buildingIsTemple_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 41 of file sf_building_functions.h.

◆ buildingIsTower_ptr

typedef bool(__thiscall * buildingIsTower_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 42 of file sf_building_functions.h.

◆ buildingIsWoodcutter_ptr

typedef bool(__thiscall * buildingIsWoodcutter_ptr) (SF_CGdBuilding *_this, uint16_t building_index)

Definition at line 43 of file sf_building_functions.h.

◆ findClosestBuilding_ptr

typedef uint16_t(__thiscall * findClosestBuilding_ptr) (SF_CGdBuildingToolbox *_this, SF_Coord position, uint8_t type, uint16_t owner, uint32_t radius)

Definition at line 23 of file sf_building_functions.h.

◆ freeAssignedWorker_ptr

typedef void(__thiscall * freeAssignedWorker_ptr) (SF_CGdBuildingToolbox *_this, uint16_t figure_id)

Definition at line 17 of file sf_building_functions.h.

◆ getBuildingClosestVertex_ptr

typedef SF_Coord *(__thiscall * getBuildingClosestVertex_ptr) (SF_CGdBuildingToolbox *_this, SF_Coord *out_position, uint16_t building_index, uint16_t figure_index, uint32_t unknown)

Definition at line 15 of file sf_building_functions.h.

◆ getBuildingTags_ptr

typedef uint32_t(__thiscall * getBuildingTags_ptr) (uint8_t building_type)

Definition at line 21 of file sf_building_functions.h.

◆ getBuildingXData_ptr

typedef uint32_t(__thiscall * getBuildingXData_ptr) (SF_CGdBuildingToolbox *_this, uint16_t building_index, uint8_t key_type)

Definition at line 6 of file sf_building_functions.h.

◆ getRacialFoodstore_ptr

typedef uint8_t(__thiscall * getRacialFoodstore_ptr) (uint8_t race)

Definition at line 48 of file sf_building_functions.h.

◆ getRacialIronMine_ptr

typedef uint8_t(__thiscall * getRacialIronMine_ptr) (uint8_t race)

Definition at line 53 of file sf_building_functions.h.

◆ getRacialQuarry_ptr

typedef uint8_t(__thiscall * getRacialQuarry_ptr) (uint8_t race)

Definition at line 54 of file sf_building_functions.h.

◆ getRacialSawmill_ptr

typedef uint8_t(__thiscall * getRacialSawmill_ptr) (uint8_t race)

Definition at line 50 of file sf_building_functions.h.

◆ getRacialSmelter_ptr

typedef uint8_t(__thiscall * getRacialSmelter_ptr) (uint8_t race)

Definition at line 49 of file sf_building_functions.h.

◆ getRacialStonecutter_ptr

typedef uint8_t(__thiscall * getRacialStonecutter_ptr) (uint8_t race)

Definition at line 51 of file sf_building_functions.h.

◆ getRacialWoodcutter_ptr

typedef uint8_t(__thiscall * getRacialWoodcutter_ptr) (uint8_t race)

Definition at line 52 of file sf_building_functions.h.

◆ hasBuildingTag_ptr

typedef bool(__thiscall * hasBuildingTag_ptr) (uint8_t building_type, BuildingTag tag)

Definition at line 20 of file sf_building_functions.h.

◆ releaseWorkers_ptr

typedef uint8_t(__thiscall * releaseWorkers_ptr) (SF_CGdBuilding *_this, uint16_t building_id, uint8_t count)

Definition at line 16 of file sf_building_functions.h.

◆ setBuildingXData_ptr

typedef void(__thiscall * setBuildingXData_ptr) (SF_CGdBuildingToolbox *_this, uint16_t building_index, uint8_t key_type, uint32_t value)

Definition at line 5 of file sf_building_functions.h.

◆ updateProduction_ptr

typedef uint8_t(__thiscall * updateProduction_ptr) (SF_CGdPlayer *_this, uint16_t owner, uint8_t race, uint8_t production_type, uint8_t increase)

Definition at line 19 of file sf_building_functions.h.