Horizon Official Technical Documentation
Horizon::Zone::CombatComponent Class Reference

#include <CombatComponent.hpp>

+ Inheritance diagram for Horizon::Zone::CombatComponent:
+ Collaboration diagram for Horizon::Zone::CombatComponent:

Public Member Functions

 CombatComponent ()
 
 CombatComponent (std::shared_ptr< GameLogicProcess > container)
 
 ~CombatComponent ()
 
void sync_definitions (std::shared_ptr< sol::state > state)
 
void sync_data_types (std::shared_ptr< sol::state > state)
 
void sync_functions (std::shared_ptr< sol::state > state)
 
- Public Member Functions inherited from Horizon::Zone::LUAComponent
 LUAComponent ()
 
 LUAComponent (std::shared_ptr< GameLogicProcess > container)
 
 ~LUAComponent ()
 
virtual void sync_definitions (std::shared_ptr< sol::state > state)=0
 
virtual void sync_data_types (std::shared_ptr< sol::state > state)=0
 
virtual void sync_functions (std::shared_ptr< sol::state > state)=0
 
std::shared_ptr< GameLogicProcessget_container ()
 

Constructor & Destructor Documentation

◆ CombatComponent() [1/2]

Horizon::Zone::CombatComponent::CombatComponent ( )
inline
42{ }

◆ CombatComponent() [2/2]

Horizon::Zone::CombatComponent::CombatComponent ( std::shared_ptr< GameLogicProcess container)
inline
43: LUAComponent(container) { }
LUAComponent()
Definition: LUAComponent.hpp:42

◆ ~CombatComponent()

Horizon::Zone::CombatComponent::~CombatComponent ( )
inline
44{ }

Member Function Documentation

◆ sync_data_types()

void CombatComponent::sync_data_types ( std::shared_ptr< sol::state >  state)
virtual

Implements Horizon::Zone::LUAComponent.

112{
113 sol::usertype<CombatRegistry::StatusOperation::StatusOperand::s_combat_status_operation_config> config_1 = state->new_usertype<CombatRegistry::StatusOperation::StatusOperand::s_combat_status_operation_config>("s_combat_status_operation_config");
120
121 sol::usertype<CombatRegistry::SkillExecutionOperation::SkillExecutionOperand::s_skill_execution_operation_config> config_2 = state->new_usertype<CombatRegistry::SkillExecutionOperation::SkillExecutionOperand::s_skill_execution_operation_config>("s_skill_execution_operation_config");
133
134 sol::usertype<CombatRegistry::SkillResultOperation::SkillResultOperand::s_skill_result_operation_config> config_3 = state->new_usertype<CombatRegistry::SkillResultOperation::SkillResultOperand::s_skill_result_operation_config>("s_skill_result_operation_config");
144
147 );
148
149 sol::usertype<combat_damage> config_4 = state->new_usertype<combat_damage>("combat_damage");
150 config_4["right_damage"] = &combat_damage::right_damage;
151 config_4["left_damage"] = &combat_damage::left_damage;
152 config_4["type"] = &combat_damage::type;
153 config_4["number_of_hits"] = &combat_damage::number_of_hits;
154 config_4["amotion"] = &combat_damage::amotion;
155 config_4["dmotion"] = &combat_damage::dmotion;
156 config_4["blewcount"] = &combat_damage::blewcount;
157 config_4["damage_type"] = &combat_damage::damage_type;
158 config_4["result"] = &combat_damage::result;
159 config_4["ele_type"] = &combat_damage::ele_type;
160 config_4["element_level"] = &combat_damage::element_level;
161 config_4["skill_id"] = &combat_damage::skill_id;
162 config_4["skill_lv"] = &combat_damage::skill_lv;
163 config_4["skill_cast_data"] = &combat_damage::skill_cast_data;
164
165 sol::usertype<combat_healing> config_5 = state->new_usertype<combat_healing>("combat_healing");
166 config_5["heal_amount"] = &combat_healing::heal_amount;
167 config_5["skill_id"] = &combat_healing::skill_id;
168 config_5["success"] = &combat_healing::success;
169 config_5["skill_lv"] = &combat_healing::skill_lv;
170 config_5["skill_cast_data"] = &combat_healing::skill_cast_data;
171
172 state->new_usertype<CombatRegistry::CombatOperationValue>("CombatOperationValue",
173 sol::constructors<CombatRegistry::CombatOperationValue()>()
174 );
175
176 state->new_usertype<CombatRegistry::CombatValueInteger>("CombatValueInteger",
177 sol::constructors<CombatRegistry::CombatValueInteger(int)>(),
179 );
180
181 state->new_usertype<CombatRegistry::CombatValueDamage>("CombatValueDamage",
182 sol::constructors<CombatRegistry::CombatValueDamage(combat_damage)>(),
184 );
185
186 state->new_usertype<CombatRegistry::CombatValueHealing>("CombatValueHealing",
187 sol::constructors<CombatRegistry::CombatValueHealing(combat_healing)>(),
189 );
190
191 state->new_usertype<CombatRegistry>("CombatRegistry",
192 "create_combat_stage", &CombatRegistry::create_combat_stage,
193 "queue_combat_stage", &CombatRegistry::queue_combat_stage
194 );
195
196 state->new_usertype<CombatRegistry::AttributeOperation::AttributeOperand>("AttributeOperand",
197 sol::constructors<CombatRegistry::AttributeOperation::AttributeOperand(std::shared_ptr<Horizon::Zone::Unit>, std::shared_ptr<Horizon::Zone::Unit>, std::shared_ptr<Horizon::Zone::Traits::Attribute>)>(),
199 );
200
201 state->new_usertype<CombatRegistry::AttributeOperation>("AttributeOperation",
202 sol::constructors<CombatRegistry::AttributeOperation(
210 );
211
212 state->new_usertype<CombatRegistry::StatusOperation::StatusOperand>("StatusOperand",
213 sol::constructors<CombatRegistry::StatusOperation::StatusOperand(std::shared_ptr<Horizon::Zone::Unit>, std::shared_ptr<Horizon::Zone::Unit>, CombatRegistry::StatusOperation::StatusOperand::s_combat_status_operation_config)>(),
215 );
216
217 state->new_usertype<CombatRegistry::StatusOperation>("StatusOperation",
218 sol::constructors<
220 >(),
224 );
225
226 state->new_usertype<CombatRegistry::SkillExecutionOperation::SkillExecutionOperand>("SkillExecutionOperand",
229 );
230
231 state->new_usertype<CombatRegistry::SkillExecutionOperation>("SkillExecutionOperation",
232 sol::constructors<CombatRegistry::SkillExecutionOperation(CombatRegistry::SkillExecutionOperation::SkillExecutionOperand *, CombatRegistry::SkillExecutionOperation::skill_execution_operation_type)>(),
237 );
238
239 state->new_usertype<CombatRegistry::SkillResultOperation::SkillResultOperand>("SkillResultOperand",
240 sol::constructors<CombatRegistry::SkillResultOperation::SkillResultOperand(std::shared_ptr<Horizon::Zone::Unit>, std::shared_ptr<Horizon::Zone::Unit>, CombatRegistry::SkillResultOperation::SkillResultOperand::s_skill_result_operation_config)>(),
242 );
243
244 state->new_usertype<CombatRegistry::SkillResultOperation>("SkillResultOperation",
245 sol::constructors<
248 >(),
253 );
254
255 state->new_usertype<CombatRegistry::MeleeExecutionOperation::MeleeExecutionOperand>("MeleeExecutionOperand",
258 );
259
260 state->new_usertype<CombatRegistry::MeleeExecutionOperation>("MeleeExecutionOperation",
261 sol::constructors<CombatRegistry::MeleeExecutionOperation(CombatRegistry::MeleeExecutionOperation::MeleeExecutionOperand *, CombatRegistry::MeleeExecutionOperation::melee_execution_operation_type)>(),
266 );
267
268 state->new_usertype<CombatRegistry::MeleeResultOperation::MeleeResultOperand>("MeleeResultOperand",
269 sol::constructors<CombatRegistry::MeleeResultOperation::MeleeResultOperand(std::shared_ptr<Horizon::Zone::Unit>, std::shared_ptr<Horizon::Zone::Unit>)>()
270 );
271
272 state->new_usertype<CombatRegistry::MeleeResultOperation>("MeleeResultOperation",
273 sol::constructors<
276 >(),
281 );
282
283 sol::usertype<CombatRegistry::CombatStage> registry = state->new_usertype<CombatRegistry::CombatStage>("CombatStage",
284 sol::constructors<CombatRegistry::CombatStage(int)>());
285 registry["get_priority"] = &CombatRegistry::CombatStage::get_priority;
286 registry["push_attribute_operation"] = &CombatRegistry::CombatStage::push_attribute_operation;
287 registry["push_status_add_operation"] = &CombatRegistry::CombatStage::push_status_add_operation;
288 registry["push_status_remove_operation"] = &CombatRegistry::CombatStage::push_status_remove_operation;
289 registry["push_skill_execution_operation"] = &CombatRegistry::CombatStage::push_skill_execution_operation;
290 registry["push_skill_result_damage_operation"] = &CombatRegistry::CombatStage::push_skill_result_damage_operation;
291 registry["push_skill_result_healing_operation"] = &CombatRegistry::CombatStage::push_skill_result_healing_operation;
292 registry["push_melee_execution_operation"] = &CombatRegistry::CombatStage::push_melee_execution_operation;
293 registry["push_melee_result_damage_operation"] = &CombatRegistry::CombatStage::push_melee_result_damage_operation;
294 registry["push_melee_result_healing_operation"] = &CombatRegistry::CombatStage::push_melee_result_healing_operation;
295}
std::shared_ptr< Traits::Attribute > get_attribute()
Definition: Combat.hpp:357
attribute_operation_type
Definition: Combat.hpp:341
int get_operation_sub_type() const
Definition: Combat.hpp:319
virtual CombatOperationValue * get_operation_value() const
Definition: Combat.hpp:320
virtual CombatOperand * get_operand() const
Definition: Combat.hpp:317
int get_operation_type() const
Definition: Combat.hpp:318
MeleeResultOperation * push_melee_result_healing_operation(std::shared_ptr< Unit > source, std::shared_ptr< Unit > target, combat_healing value_config)
Definition: Combat.cpp:374
StatusOperation * push_status_add_operation(std::shared_ptr< Unit > source, std::shared_ptr< Unit > target, CombatRegistry::StatusOperation::StatusOperand::s_combat_status_operation_config config)
Definition: Combat.cpp:315
SkillResultOperation * push_skill_result_healing_operation(std::shared_ptr< Unit > source, std::shared_ptr< Unit > target, CombatRegistry::SkillResultOperation::SkillResultOperand::s_skill_result_operation_config config, combat_healing value_config)
Definition: Combat.cpp:348
SkillResultOperation * push_skill_result_damage_operation(std::shared_ptr< Unit > source, std::shared_ptr< Unit > target, CombatRegistry::SkillResultOperation::SkillResultOperand::s_skill_result_operation_config config, combat_damage value_config)
Definition: Combat.cpp:339
int get_priority()
Definition: Combat.hpp:616
MeleeResultOperation * push_melee_result_damage_operation(std::shared_ptr< Unit > source, std::shared_ptr< Unit > target, combat_damage value_config)
Definition: Combat.cpp:365
SkillExecutionOperation * push_skill_execution_operation(std::shared_ptr< Unit > source, std::shared_ptr< Unit > target, CombatRegistry::SkillExecutionOperation::SkillExecutionOperand::s_skill_execution_operation_config config, CombatRegistry::SkillExecutionOperation::skill_execution_operation_type operation_type)
Definition: Combat.cpp:331
AttributeOperation * push_attribute_operation(std::shared_ptr< Unit > source, std::shared_ptr< Unit > target, std::shared_ptr< Traits::Attribute > attribute, CombatRegistry::AttributeOperation::attribute_operation_type operation_type, int value)
Definition: Combat.cpp:306
MeleeExecutionOperation * push_melee_execution_operation(std::shared_ptr< Unit > source, std::shared_ptr< Unit > target, CombatRegistry::MeleeExecutionOperation::MeleeExecutionOperand::s_melee_execution_operation_config config, CombatRegistry::MeleeExecutionOperation::melee_execution_operation_type operation_type)
Definition: Combat.cpp:357
StatusOperation * push_status_remove_operation(std::shared_ptr< Unit > source, std::shared_ptr< Unit > target, CombatRegistry::StatusOperation::StatusOperand::s_combat_status_operation_config config)
Definition: Combat.cpp:323
combat_damage get_damage()
Definition: Combat.hpp:224
combat_healing get_healing()
Definition: Combat.hpp:239
int get_value()
Definition: Combat.hpp:211
s_melee_execution_operation_config get_config()
Definition: Combat.hpp:547
s_skill_execution_operation_config & get_config()
Definition: Combat.hpp:461
s_skill_result_operation_config get_config()
Definition: Combat.hpp:508
s_combat_status_operation_config get_config()
Definition: Combat.hpp:395
status_operation_type
Definition: Combat.hpp:378
Definition: Combat.hpp:172
CombatStage * create_combat_stage(int priority)
Definition: Combat.hpp:641
void queue_combat_stage(CombatStage *stage)
Definition: Combat.hpp:643
Definition: CombatDefinitions.hpp:106
int number_of_hits
Definition: CombatDefinitions.hpp:109
int8_t element_level
Definition: CombatDefinitions.hpp:115
combat_damage_type_mask damage_type
Definition: CombatDefinitions.hpp:112
element_type ele_type
Definition: CombatDefinitions.hpp:114
int64_t right_damage
Definition: CombatDefinitions.hpp:107
combat_damage_hit_type type
Definition: CombatDefinitions.hpp:108
int amotion
Definition: CombatDefinitions.hpp:110
int blewcount
Definition: CombatDefinitions.hpp:111
int dmotion
Definition: CombatDefinitions.hpp:110
combat_retaliate_type result
Definition: CombatDefinitions.hpp:113
int64_t left_damage
Definition: CombatDefinitions.hpp:107
Definition: CombatDefinitions.hpp:119
bool success
Definition: CombatDefinitions.hpp:121
int64_t heal_amount
Definition: CombatDefinitions.hpp:120
sol::table skill_cast_data
Definition: CombatDefinitions.hpp:103
int16_t skill_lv
Definition: CombatDefinitions.hpp:102
int16_t skill_id
Definition: CombatDefinitions.hpp:101

References Horizon::Zone::CombatRegistry::SkillResultOperation::SkillResultOperand::s_skill_result_operation_config::action_type, combat_damage::amotion, Horizon::Zone::CombatRegistry::SkillResultOperation::SkillResultOperand::s_skill_result_operation_config::attack_motion, combat_damage::blewcount, Horizon::Zone::CombatRegistry::SkillExecutionOperation::SkillExecutionOperand::s_skill_execution_operation_config::cast_end_function, Horizon::Zone::CombatRegistry::SkillExecutionOperation::SkillExecutionOperand::s_skill_execution_operation_config::cast_time, Horizon::Zone::CombatRegistry::SkillExecutionOperation::SkillExecutionOperand::s_skill_execution_operation_config::contents, Horizon::Zone::CombatRegistry::SkillResultOperation::SkillResultOperand::s_skill_result_operation_config::contents, Horizon::Zone::CombatRegistry::MeleeExecutionOperation::MeleeExecutionOperand::s_melee_execution_operation_config::continuous, Horizon::Zone::CombatRegistry::create_combat_stage(), combat_damage::damage_type, Horizon::Zone::CombatRegistry::SkillResultOperation::SkillResultOperand::s_skill_result_operation_config::delay_motion, combat_damage::dmotion, combat_damage::ele_type, Horizon::Zone::CombatRegistry::SkillExecutionOperation::SkillExecutionOperand::s_skill_execution_operation_config::element, combat_damage::element_level, Horizon::Zone::CombatRegistry::AttributeOperation::AttributeOperand::get_attribute(), Horizon::Zone::CombatRegistry::StatusOperation::StatusOperand::get_config(), Horizon::Zone::CombatRegistry::SkillExecutionOperation::SkillExecutionOperand::get_config(), Horizon::Zone::CombatRegistry::SkillResultOperation::SkillResultOperand::get_config(), Horizon::Zone::CombatRegistry::MeleeExecutionOperation::MeleeExecutionOperand::get_config(), Horizon::Zone::CombatRegistry::CombatValueDamage::get_damage(), Horizon::Zone::CombatRegistry::CombatValueHealing::get_healing(), Horizon::Zone::CombatRegistry::CombatOperation::get_operand(), Horizon::Zone::CombatRegistry::CombatOperation::get_operation_sub_type(), Horizon::Zone::CombatRegistry::CombatOperation::get_operation_type(), Horizon::Zone::CombatRegistry::CombatOperation::get_operation_value(), Horizon::Zone::CombatRegistry::CombatStage::get_priority(), Horizon::Zone::CombatRegistry::CombatValueInteger::get_value(), combat_healing::heal_amount, combat_damage::left_damage, combat_damage::number_of_hits, Horizon::Zone::CombatRegistry::SkillExecutionOperation::SkillExecutionOperand::s_skill_execution_operation_config::pos_x, Horizon::Zone::CombatRegistry::SkillResultOperation::SkillResultOperand::s_skill_result_operation_config::pos_x, Horizon::Zone::CombatRegistry::SkillExecutionOperation::SkillExecutionOperand::s_skill_execution_operation_config::pos_y, Horizon::Zone::CombatRegistry::SkillResultOperation::SkillResultOperand::s_skill_result_operation_config::pos_y, Horizon::Zone::CombatRegistry::CombatStage::push_attribute_operation(), Horizon::Zone::CombatRegistry::CombatStage::push_melee_execution_operation(), Horizon::Zone::CombatRegistry::CombatStage::push_melee_result_damage_operation(), Horizon::Zone::CombatRegistry::CombatStage::push_melee_result_healing_operation(), Horizon::Zone::CombatRegistry::CombatStage::push_skill_execution_operation(), Horizon::Zone::CombatRegistry::CombatStage::push_skill_result_damage_operation(), Horizon::Zone::CombatRegistry::CombatStage::push_skill_result_healing_operation(), Horizon::Zone::CombatRegistry::CombatStage::push_status_add_operation(), Horizon::Zone::CombatRegistry::CombatStage::push_status_remove_operation(), Horizon::Zone::CombatRegistry::queue_combat_stage(), combat_damage::result, combat_damage::right_damage, Horizon::Zone::CombatRegistry::SkillExecutionOperation::SkillExecutionOperand::s_skill_execution_operation_config::skd, Horizon::Zone::CombatRegistry::SkillResultOperation::SkillResultOperand::s_skill_result_operation_config::skd, combat_structures::skill_cast_data, Horizon::Zone::CombatRegistry::SkillExecutionOperation::SkillExecutionOperand::s_skill_execution_operation_config::skill_cast_data, Horizon::Zone::CombatRegistry::SkillExecutionOperation::SkillExecutionOperand::s_skill_execution_operation_config::skill_execution, combat_structures::skill_id, Horizon::Zone::CombatRegistry::SkillExecutionOperation::SkillExecutionOperand::s_skill_execution_operation_config::skill_id, Horizon::Zone::CombatRegistry::SkillResultOperation::SkillResultOperand::s_skill_result_operation_config::skill_id, combat_structures::skill_lv, Horizon::Zone::CombatRegistry::SkillExecutionOperation::SkillExecutionOperand::s_skill_execution_operation_config::skill_lv, Horizon::Zone::CombatRegistry::SkillResultOperation::SkillResultOperand::s_skill_result_operation_config::skill_lv, combat_healing::success, Horizon::Zone::CombatRegistry::StatusOperation::StatusOperand::s_combat_status_operation_config::total_time, combat_damage::type, Horizon::Zone::CombatRegistry::StatusOperation::StatusOperand::s_combat_status_operation_config::type, Horizon::Zone::CombatRegistry::StatusOperation::StatusOperand::s_combat_status_operation_config::val1, Horizon::Zone::CombatRegistry::StatusOperation::StatusOperand::s_combat_status_operation_config::val2, Horizon::Zone::CombatRegistry::StatusOperation::StatusOperand::s_combat_status_operation_config::val3, and Horizon::Zone::CombatRegistry::StatusOperation::StatusOperand::s_combat_status_operation_config::val4.

+ Here is the call graph for this function:

◆ sync_definitions()

void CombatComponent::sync_definitions ( std::shared_ptr< sol::state >  state)
virtual

Implements Horizon::Zone::LUAComponent.

39{
40 sol::table tbl_1 = state->create_named_table("TargetCheckType");
41 tbl_1["Noone"] = (int)BTC_NONE;
42 tbl_1["Self"] = (int)BTC_SELF;
43 tbl_1["Enemy"] = (int)BTC_ENEMY;
44 tbl_1["Party"] = (int)BTC_PARTY;
45 tbl_1["AllianceOnly"] = (int)BTC_GUILD_ALLY;
46 tbl_1["Neutral"] = (int)BTC_NEUTRAL;
47 tbl_1["Guild"] = (int)BTC_GUILD;
48 tbl_1["GuildAndAlliance"] = (int)BTC_GUILD_AND_ALLY;
49 tbl_1["AllExceptGuild"] = (int)BTC_ALL_EXCEPT_GUILD;
50 tbl_1["AllExceptParty"] = (int)BTC_ALL_EXCEPT_PARTY;
51 tbl_1["AllExceptEnemy"] = (int)BTC_ALL_EXCEPT_ENEMY;
52 tbl_1["All"] = (int)BTC_ALL;
53
54
55 sol::table tbl_2 = state->create_named_table("AttackType");
56 tbl_2["None"] = (int)BAT_NONE;
57 tbl_2["Weapon"] = (int)BAT_WEAPON;
58 tbl_2["Magic"] = (int)BAT_MAGIC;
59 tbl_2["Misc"] = (int)BAT_MISC;
60
61 sol::table tbl_3 = state->create_named_table("DamageBehavior");
62 tbl_3["NoDamage"] = (int)DMG_BHVR_NONE;
63 tbl_3["NonOffensive"] = (int)DMG_BHVR_NON_OFFENSIVE;
64 tbl_3["SplashArea"] = (int)DMG_BHVR_SPLASH;
65 tbl_3["SplitBetweenTargets"] = (int)DMG_BHVR_SPLIT_BW_TARGETS;
66 tbl_3["IgnoreEquipATK"] = (int)DMG_BHVR_IGNORE_EQUIP_ATK;
67 tbl_3["IgnoreDefElement"] = (int)DMG_BHVR_IGNORE_DEF_ELE;
68 tbl_3["IgnoreSoftDef"] = (int)DMG_BHVR_IGNORE_SOFT_DEF;
69 tbl_3["IgnoreFLEE"] = (int)DMG_BHVR_IGNORE_FLEE;
70 tbl_3["IgnoreEquipDef"] = (int)DMG_BHVR_IGNORE_EQUIP_DEF;
71
72 sol::table tbl_4 = state->create_named_table("AttributeOperationType");
79
80 sol::table tbl_5 = state->create_named_table("StatusOperationType");
83
84 sol::table tbl_6 = state->create_named_table("SkillExecutionOperationType");
88
89 sol::table tbl_7 = state->create_named_table("SkillResultOperationType");
92
93 sol::table tbl_8 = state->create_named_table("MeleeExecutionOperationType");
95
96 sol::table tbl_9 = state->create_named_table("MeleeResultOperationType");
99
100 sol::table tbl_10 = state->create_named_table("CombatDamageHitType");
101 tbl_10["Normal"] = (int)combat_damage_hit_type::CBT_DMG_HIT_NORMAL;
102 tbl_10["Endure"] = (int)combat_damage_hit_type::CBT_DMG_HIT_ENDURE;
103 tbl_10["Splash"] = (int)combat_damage_hit_type::CBT_DMG_HIT_SPLASH;
104 tbl_10["Skill"] = (int)combat_damage_hit_type::CBT_DMG_HIT_SKILL;
105 tbl_10["MultiHit"] = (int)combat_damage_hit_type::CBT_DMG_HIT_MULTIHIT;
106 tbl_10["MultiEndure"] = (int)combat_damage_hit_type::CBT_DMG_HIT_MULTIENDURE;
107 tbl_10["Critical"] = (int)combat_damage_hit_type::CBT_DMG_HIT_CRIT;
108 tbl_10["PerfectDodge"] = (int)combat_damage_hit_type::CBT_DMG_HIT_PDODGE;
109}
@ BAT_WEAPON
Definition: BattleDefinitions.hpp:52
@ BAT_MAGIC
Definition: BattleDefinitions.hpp:53
@ BAT_MISC
Definition: BattleDefinitions.hpp:54
@ BAT_NONE
Definition: BattleDefinitions.hpp:51
@ DMG_BHVR_SPLASH
Definition: BattleDefinitions.hpp:68
@ DMG_BHVR_IGNORE_FLEE
Definition: BattleDefinitions.hpp:73
@ DMG_BHVR_SPLIT_BW_TARGETS
Definition: BattleDefinitions.hpp:69
@ DMG_BHVR_NONE
Definition: BattleDefinitions.hpp:66
@ DMG_BHVR_IGNORE_DEF_ELE
Definition: BattleDefinitions.hpp:71
@ DMG_BHVR_NON_OFFENSIVE
Definition: BattleDefinitions.hpp:67
@ DMG_BHVR_IGNORE_EQUIP_DEF
Definition: BattleDefinitions.hpp:74
@ DMG_BHVR_IGNORE_EQUIP_ATK
Definition: BattleDefinitions.hpp:70
@ DMG_BHVR_IGNORE_SOFT_DEF
Definition: BattleDefinitions.hpp:72
@ BTC_ALL_EXCEPT_ENEMY
This must be (~BCT_ENEMY&BCT_ALL)
Definition: BattleDefinitions.hpp:44
@ BTC_NONE
Definition: BattleDefinitions.hpp:34
@ BTC_ALL_EXCEPT_PARTY
This must be (~BCT_PARTY&BCT_ALL)
Definition: BattleDefinitions.hpp:43
@ BTC_GUILD_ALLY
Only allies, NOT guildmates.
Definition: BattleDefinitions.hpp:38
@ BTC_GUILD
No Guild Allies.
Definition: BattleDefinitions.hpp:40
@ BTC_ENEMY
Definition: BattleDefinitions.hpp:36
@ BTC_SELF
Definition: BattleDefinitions.hpp:35
@ BTC_GUILD_AND_ALLY
Guild AND allies (BCT_SAMEGUILD|BCT_GUILDALLY)
Definition: BattleDefinitions.hpp:41
@ BTC_ALL
Sum of BCT_NOONE to BCT_SAMEGUILD.
Definition: BattleDefinitions.hpp:46
@ BTC_NEUTRAL
Definition: BattleDefinitions.hpp:39
@ BTC_ALL_EXCEPT_GUILD
This must be (~BCT_GUILD&BCT_ALL)
Definition: BattleDefinitions.hpp:42
@ BTC_PARTY
Definition: BattleDefinitions.hpp:37
@ CBT_DMG_HIT_SKILL
Definition: CombatDefinitions.hpp:90
@ CBT_DMG_HIT_MULTIENDURE
Definition: CombatDefinitions.hpp:93
@ CBT_DMG_HIT_NORMAL
Definition: CombatDefinitions.hpp:84
@ CBT_DMG_HIT_SPLASH
Definition: CombatDefinitions.hpp:89
@ CBT_DMG_HIT_MULTIHIT
Definition: CombatDefinitions.hpp:92
@ CBT_DMG_HIT_CRIT
Definition: CombatDefinitions.hpp:94
@ CBT_DMG_HIT_PDODGE
Definition: CombatDefinitions.hpp:95
@ CBT_DMG_HIT_ENDURE
Definition: CombatDefinitions.hpp:88
@ ATTRIBUTE_OPERATION_ADD_TO_BASE
Definition: Combat.hpp:342
@ ATTRIBUTE_OPERATION_SUBTRACT_FROM_BASE
Definition: Combat.hpp:343
@ ATTRIBUTE_OPERATION_ADD_TO_STATUS
Definition: Combat.hpp:346
@ ATTRIBUTE_OPERATION_SUBTRACT_FROM_EQUIP
Definition: Combat.hpp:345
@ ATTRIBUTE_OPERATION_ADD_TO_EQUIP
Definition: Combat.hpp:344
@ ATTRIBUTE_OPERATION_SUBTRACT_FROM_STATUS
Definition: Combat.hpp:347
@ MELEE_EXECUTION_OPERATION_TARGET
Definition: Combat.hpp:532
@ MELEE_RESULT_OPERATION_HEALING
Definition: Combat.hpp:566
@ MELEE_RESULT_OPERATION_DAMAGE
Definition: Combat.hpp:565
@ SKILL_EXECUTION_OPERATION_TARGET
Definition: Combat.hpp:421
@ SKILL_EXECUTION_OPERATION_CAST
Definition: Combat.hpp:420
@ SKILL_EXECUTION_OPERATION_GROUND
Definition: Combat.hpp:422
@ SKILL_RESULT_OPERATION_DAMAGE
Definition: Combat.hpp:485
@ SKILL_RESULT_OPERATION_HEALING
Definition: Combat.hpp:486
@ STATUS_OPERATION_REMOVE
Definition: Combat.hpp:380
@ STATUS_OPERATION_ADD
Definition: Combat.hpp:379

References Horizon::Zone::CombatRegistry::AttributeOperation::ATTRIBUTE_OPERATION_ADD_TO_BASE, Horizon::Zone::CombatRegistry::AttributeOperation::ATTRIBUTE_OPERATION_ADD_TO_EQUIP, Horizon::Zone::CombatRegistry::AttributeOperation::ATTRIBUTE_OPERATION_ADD_TO_STATUS, Horizon::Zone::CombatRegistry::AttributeOperation::ATTRIBUTE_OPERATION_SUBTRACT_FROM_BASE, Horizon::Zone::CombatRegistry::AttributeOperation::ATTRIBUTE_OPERATION_SUBTRACT_FROM_EQUIP, Horizon::Zone::CombatRegistry::AttributeOperation::ATTRIBUTE_OPERATION_SUBTRACT_FROM_STATUS, BAT_MAGIC, BAT_MISC, BAT_NONE, BAT_WEAPON, BTC_ALL, BTC_ALL_EXCEPT_ENEMY, BTC_ALL_EXCEPT_GUILD, BTC_ALL_EXCEPT_PARTY, BTC_ENEMY, BTC_GUILD, BTC_GUILD_ALLY, BTC_GUILD_AND_ALLY, BTC_NEUTRAL, BTC_NONE, BTC_PARTY, BTC_SELF, CBT_DMG_HIT_CRIT, CBT_DMG_HIT_ENDURE, CBT_DMG_HIT_MULTIENDURE, CBT_DMG_HIT_MULTIHIT, CBT_DMG_HIT_NORMAL, CBT_DMG_HIT_PDODGE, CBT_DMG_HIT_SKILL, CBT_DMG_HIT_SPLASH, DMG_BHVR_IGNORE_DEF_ELE, DMG_BHVR_IGNORE_EQUIP_ATK, DMG_BHVR_IGNORE_EQUIP_DEF, DMG_BHVR_IGNORE_FLEE, DMG_BHVR_IGNORE_SOFT_DEF, DMG_BHVR_NON_OFFENSIVE, DMG_BHVR_NONE, DMG_BHVR_SPLASH, DMG_BHVR_SPLIT_BW_TARGETS, Horizon::Zone::CombatRegistry::MeleeExecutionOperation::MELEE_EXECUTION_OPERATION_TARGET, Horizon::Zone::CombatRegistry::MeleeResultOperation::MELEE_RESULT_OPERATION_DAMAGE, Horizon::Zone::CombatRegistry::MeleeResultOperation::MELEE_RESULT_OPERATION_HEALING, Horizon::Zone::CombatRegistry::SkillExecutionOperation::SKILL_EXECUTION_OPERATION_CAST, Horizon::Zone::CombatRegistry::SkillExecutionOperation::SKILL_EXECUTION_OPERATION_GROUND, Horizon::Zone::CombatRegistry::SkillExecutionOperation::SKILL_EXECUTION_OPERATION_TARGET, Horizon::Zone::CombatRegistry::SkillResultOperation::SKILL_RESULT_OPERATION_DAMAGE, Horizon::Zone::CombatRegistry::SkillResultOperation::SKILL_RESULT_OPERATION_HEALING, Horizon::Zone::CombatRegistry::StatusOperation::STATUS_OPERATION_ADD, and Horizon::Zone::CombatRegistry::StatusOperation::STATUS_OPERATION_REMOVE.

◆ sync_functions()

void CombatComponent::sync_functions ( std::shared_ptr< sol::state >  state)
virtual

Implements Horizon::Zone::LUAComponent.

298{
299}

The documentation for this class was generated from the following files: