Horizon Official Technical Documentation
BattleDefinitions.hpp
Go to the documentation of this file.
1/***************************************************
2 * _ _ _ *
3 * | | | | (_) *
4 * | |_| | ___ _ __ _ _______ _ __ *
5 * | _ |/ _ \| '__| |_ / _ \| '_ \ *
6 * | | | | (_) | | | |/ / (_) | | | | *
7 * \_| |_/\___/|_| |_/___\___/|_| |_| *
8 ***************************************************
9 * This file is part of Horizon (c).
10 * Copyright (c) 2019 Sagun K. (sagunxp@gmail.com).
11 * Copyright (c) 2019 Horizon Dev Team.
12 *
13 * Base Author - Sagun K. (sagunxp@gmail.com)
14 *
15 * This library is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation, either version 3 of the License, or
18 * (at your option) any later version.
19 *
20 * This library is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with this library. If not, see <http://www.gnu.org/licenses/>.
27 **************************************************/
28
29#ifndef HORIZON_ZONE_BATTLE_DEFINITIONS_HPP
30#define HORIZON_ZONE_BATTLE_DEFINITIONS_HPP
31
33{
34 BTC_NONE = 0x000000,
35 BTC_SELF = 0x010000,
36 BTC_ENEMY = 0x020000,
37 BTC_PARTY = 0x040000,
38 BTC_GUILD_ALLY = 0x080000,
39 BTC_NEUTRAL = 0x100000,
40 BTC_GUILD = 0x200000,
41 BTC_GUILD_AND_ALLY = 0x280000,
45
46 BTC_ALL = 0x3F0000,
47};
48
50{
51 BAT_NONE = 0x0000,
52 BAT_WEAPON = 0x0001,
53 BAT_MAGIC = 0x0002,
54 BAT_MISC = 0x0004,
55 BAT_SHORT = 0x0010,
56 BAT_LONG = 0x0040,
57 BAT_SKILL = 0x0100,
58 BAT_NORMAL = 0x0200,
60 BAT_RANGEMASK = 0x00f0,
61 BAT_SKILLMASK = 0x0f00,
62};
63
65{
67 DMG_BHVR_NON_OFFENSIVE = 0x01, //< This skill will not cause any damage.
68 DMG_BHVR_SPLASH = 0x02, //< Has splash area (requires source modification)
69 DMG_BHVR_SPLIT_BW_TARGETS = 0x04, //< Damage should be split among targets (requires 'SplashArea' in order to work)
70 DMG_BHVR_IGNORE_EQUIP_ATK = 0x08, //< Skill ignores caster's % damage cards (misc type always ignores)
71 DMG_BHVR_IGNORE_DEF_ELE = 0x10, //< Skill ignores elemental adjustments
72 DMG_BHVR_IGNORE_SOFT_DEF = 0x20, //< Skill ignores target's defense (misc type always ignores)
73 DMG_BHVR_IGNORE_FLEE = 0x40, //< Skill ignores target's flee (magic type always ignores)
74 DMG_BHVR_IGNORE_EQUIP_DEF = 0x80, //< Skill ignores target's def cards
75};
76
78 BDT_NORMAL = 0, // Normal attack
79 //BDT_PICKUP = 1, // Pick up item
80 BDT_SITDOWN = 2, // Sit down
81 BDT_STANDUP = 3, // Stand up
82 BDT_ENDURE = 4, // Damage (endure)
83 BDT_SPLASH = 5, // Splash
84 BDT_SKILL = 6, // Skill
85 //BDT_REPEAT = 7, // (repeat damage?)
86 BDT_MULTIHIT = 8, // Multi-hit damage
87 BDT_MULTIENDURE = 9, // Multi-hit damage (endure)
88 BDT_CRIT = 10, // Critical hit
89 BDT_PDODGE = 11, // Lucky dodge
90 //BDT_TOUCH = 12, // (touch skill?)
91};
92
93#endif /* HORIZON_ZONE_BATTLE_DEFINITIONS_HPP */
battle_attack_type
Definition: BattleDefinitions.hpp:50
@ BAT_LONG
Definition: BattleDefinitions.hpp:56
@ BAT_WEAPON
Definition: BattleDefinitions.hpp:52
@ BAT_SKILL
Definition: BattleDefinitions.hpp:57
@ BAT_NORMAL
Definition: BattleDefinitions.hpp:58
@ BAT_RANGEMASK
Definition: BattleDefinitions.hpp:60
@ BAT_MAGIC
Definition: BattleDefinitions.hpp:53
@ BAT_MISC
Definition: BattleDefinitions.hpp:54
@ BAT_NONE
Definition: BattleDefinitions.hpp:51
@ BAT_SHORT
Definition: BattleDefinitions.hpp:55
@ BAT_SKILLMASK
Definition: BattleDefinitions.hpp:61
@ BAT_WEAPONMASK
Definition: BattleDefinitions.hpp:59
damage_behavior_type
Definition: BattleDefinitions.hpp:65
@ 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
battle_target_check_type
Definition: BattleDefinitions.hpp:33
@ 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
battle_damage_type
Definition: BattleDefinitions.hpp:77
@ BDT_SKILL
Definition: BattleDefinitions.hpp:84
@ BDT_NORMAL
Definition: BattleDefinitions.hpp:78
@ BDT_PDODGE
Definition: BattleDefinitions.hpp:89
@ BDT_MULTIHIT
Definition: BattleDefinitions.hpp:86
@ BDT_ENDURE
Definition: BattleDefinitions.hpp:82
@ BDT_SITDOWN
Definition: BattleDefinitions.hpp:80
@ BDT_CRIT
Definition: BattleDefinitions.hpp:88
@ BDT_STANDUP
Definition: BattleDefinitions.hpp:81
@ BDT_MULTIENDURE
Definition: BattleDefinitions.hpp:87
@ BDT_SPLASH
Definition: BattleDefinitions.hpp:83