Ogre::uint16 u16
Definition: TypeDefine.h:22
Ogre::uint32 u32
Definition: TypeDefine.h:23
Ogre::uint8 u8
Definition: TypeDefine.h:21
RestoreType
Determines what an attack (or item) restores.
Definition: GameData.h:253
@ NONE
The attack is not restorative.
Animation data related to the attack;.
Definition: Attack.h:208
int camera_single
Camera movement ID for single target.
Definition: Attack.h:243
int impact_effect
Impact effect.
Definition: Attack.h:222
int camera_multiple
Camera movement ID for multiple target.
Definition: Attack.h:251
int hurt_anim
Index of the animation played by the target when hit.
Definition: Attack.h:227
int effect
Atack effect ID.
Definition: Attack.h:215
int sound
Impact sound.
Definition: Attack.h:235
Attack parameters related to the damage done.
Definition: Attack.h:31
bool affected_by_darkness
Indicates if the accuracy is affected by darkness.
Definition: Attack.h:68
bool physical
Indicates physical damage.
Definition: Attack.h:43
int modifier
The damage modifier.
Definition: Attack.h:58
bool damage_mp
Indicates if the attack damages MP instead of HP.
Definition: Attack.h:78
bool ignore_status_defense
Indicates if the attack ignores status defense.
Definition: Attack.h:93
bool drain_hp
Indicates if the attack drains HP from the target.
Definition: Attack.h:83
bool drain_mp
Indicates if the attack drains MP from the target.
Definition: Attack.h:88
bool magical
Indicates magical damage.
Definition: Attack.h:48
u16 power
The attack power.
Definition: Attack.h:38
int formula
The damage formula.
Definition: Attack.h:53
float accuracy
Probability of the attack to land.
Definition: Attack.h:63
GameData::RestoreType restore
The restore type.
Definition: Attack.h:73
bool critical
If true, the attack will always be critical.
Definition: Attack.h:98
Status effect information.
Definition: Attack.h:105
float chance
Chance of inflicting.
Definition: Attack.h:115
unsigned int type
Inflict/cure/toggle mode.
Definition: Attack.h:120
u8 id
ID of the status effect.
Definition: Attack.h:110
Targeting parameters.
Definition: Attack.h:126
bool random
The target is random.
Definition: Attack.h:192
bool only_for_dead
If true, the attack will miss unless the target is dead.
Definition: Attack.h:197
bool fixed_row
The target group can be changed.
Definition: Attack.h:168
bool default_multiple
The default target is a group.
Definition: Attack.h:151
bool short_range
The command is short ranged.
Definition: Attack.h:177
bool selection_enabled
The target can be selected.
Definition: Attack.h:134
bool default_enemy
The default target is an enemy.
Definition: Attack.h:142
bool all_rows
Targets all, enemies and allies.
Definition: Attack.h:184
bool no_re_target
The attack can be re-targeted if the target is dead.
Definition: Attack.h:202
bool toggle_multiple
The selection can change between groups and individuals.
Definition: Attack.h:160
An attack structure.
Definition: Attack.h:26
bool reflectable
The attack can be reflected.
Definition: Attack.h:284
Target target
Targeting options.
Definition: Attack.h:279
Animation animation
Animation data.
Definition: Attack.h:299
std::vector< unsigned int > elements
Information about the item elements.
Definition: Attack.h:294
u32 id
Attack ID.
Definition: Attack.h:257
std::vector< StatusEffect > status_effects
Information about status change mode and chance.
Definition: Attack.h:289
Attack()
Constructor.
Definition: Attack.h:306
Damage damage
Damage parameters.
Definition: Attack.h:267
std::string name
Attack name.
Definition: Attack.h:262
u16 mp
MP cost.
Definition: Attack.h:274