liblcf
RPG::Skill Class Reference

#include <rpg_skill.h>

+ Collaboration diagram for RPG::Skill:

Public Types

enum  Type {
  Type_normal = 0 ,
  Type_teleport = 1 ,
  Type_escape = 2 ,
  Type_switch = 3 ,
  Type_subskill = 4
}
 
enum  SpType {
  SpType_cost = 0 ,
  SpType_percent = 1
}
 
enum  Scope {
  Scope_enemy = 0 ,
  Scope_enemies = 1 ,
  Scope_self = 2 ,
  Scope_ally = 3 ,
  Scope_party = 4
}
 

Public Attributes

int ID = 0
 
std::string name
 
std::string description
 
std::string using_message1
 
std::string using_message2
 
int32_t failure_message = 0
 
int32_t type = 0
 
int32_t sp_type = 0
 
int32_t sp_percent = 0
 
int32_t sp_cost = 0
 
int32_t scope = 0
 
int32_t switch_id = 1
 
int32_t animation_id = 1
 
Sound sound_effect
 
bool occasion_field = true
 
bool occasion_battle = false
 
bool reverse_state_effect = false
 
int32_t physical_rate = 0
 
int32_t magical_rate = 3
 
int32_t variance = 4
 
int32_t power = 0
 
int32_t hit = 100
 
bool affect_hp = false
 
bool affect_sp = false
 
bool affect_attack = false
 
bool affect_defense = false
 
bool affect_spirit = false
 
bool affect_agility = false
 
bool absorb_damage = false
 
bool ignore_defense = false
 
std::vector< bool > state_effects
 
std::vector< bool > attribute_effects
 
bool affect_attr_defence = false
 
int32_t battler_animation = -1
 
std::vector< BattlerAnimationDatabattler_animation_data
 

Static Public Attributes

static constexpr auto kTypeTags
 
static constexpr auto kSpTypeTags
 
static constexpr auto kScopeTags
 

Detailed Description

Definition at line 27 of file rpg_skill.h.

Member Enumeration Documentation

◆ Scope

Enumerator
Scope_enemy 
Scope_enemies 
Scope_self 
Scope_ally 
Scope_party 

Definition at line 51 of file rpg_skill.h.

◆ SpType

Enumerator
SpType_cost 
SpType_percent 

Definition at line 43 of file rpg_skill.h.

◆ Type

Enumerator
Type_normal 
Type_teleport 
Type_escape 
Type_switch 
Type_subskill 

Definition at line 29 of file rpg_skill.h.

Member Data Documentation

◆ absorb_damage

static TypedField< RPG::Skill, bool > static_absorb_damage & RPG::Skill::absorb_damage = false

Definition at line 94 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ affect_agility

static TypedField< RPG::Skill, bool > static_affect_agility & RPG::Skill::affect_agility = false

Definition at line 93 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ affect_attack

static TypedField< RPG::Skill, bool > static_affect_attack & RPG::Skill::affect_attack = false

Definition at line 90 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ affect_attr_defence

static TypedField< RPG::Skill, bool > static_affect_attr_defence & RPG::Skill::affect_attr_defence = false

Definition at line 98 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ affect_defense

static TypedField< RPG::Skill, bool > static_affect_defense & RPG::Skill::affect_defense = false

Definition at line 91 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ affect_hp

static TypedField< RPG::Skill, bool > static_affect_hp & RPG::Skill::affect_hp = false

Definition at line 88 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ affect_sp

static TypedField< RPG::Skill, bool > static_affect_sp & RPG::Skill::affect_sp = false

Definition at line 89 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ affect_spirit

static TypedField< RPG::Skill, bool > static_affect_spirit & RPG::Skill::affect_spirit = false

Definition at line 92 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ animation_id

static TypedField< RPG::Skill, int32_t > static_animation_id & RPG::Skill::animation_id = 1

Definition at line 78 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ attribute_effects

static TypedField< RPG::Skill, std::vector< bool > > static_attribute_effects & RPG::Skill::attribute_effects

Definition at line 97 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ battler_animation

static TypedField< RPG::Skill, int32_t > static_battler_animation & RPG::Skill::battler_animation = -1

Definition at line 99 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ battler_animation_data

static TypedField< RPG::Skill, std::vector< RPG::BattlerAnimationData > > static_battler_animation_data & RPG::Skill::battler_animation_data

Definition at line 100 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ description

static TypedField< RPG::Skill, std::string > static_description & RPG::Skill::description

Definition at line 68 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ failure_message

static TypedField< RPG::Skill, int32_t > static_failure_message & RPG::Skill::failure_message = 0

Definition at line 71 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ hit

static TypedField< RPG::Skill, int32_t > static_hit & RPG::Skill::hit = 100

Definition at line 87 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ ID

int RPG::Skill::ID = 0

Definition at line 66 of file rpg_skill.h.

◆ ignore_defense

static TypedField< RPG::Skill, bool > static_ignore_defense & RPG::Skill::ignore_defense = false

Definition at line 95 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ kScopeTags

constexpr auto RPG::Skill::kScopeTags
staticconstexpr
Initial value:
= makeEnumTags<Scope>(
"enemy",
"enemies",
"self",
"ally",
"party"
)

Definition at line 58 of file rpg_skill.h.

◆ kSpTypeTags

constexpr auto RPG::Skill::kSpTypeTags
staticconstexpr
Initial value:
= makeEnumTags<SpType>(
"cost",
"percent"
)

Definition at line 47 of file rpg_skill.h.

◆ kTypeTags

constexpr auto RPG::Skill::kTypeTags
staticconstexpr
Initial value:
= makeEnumTags<Type>(
"normal",
"teleport",
"escape",
"switch",
"subskill"
)

Definition at line 36 of file rpg_skill.h.

◆ magical_rate

static TypedField< RPG::Skill, int32_t > static_magical_rate & RPG::Skill::magical_rate = 3

Definition at line 84 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ name

static TypedField< RPG::Skill, std::string > static_name & RPG::Skill::name

Definition at line 67 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ occasion_battle

static TypedField< RPG::Skill, bool > static_occasion_battle & RPG::Skill::occasion_battle = false

Definition at line 81 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ occasion_field

static TypedField< RPG::Skill, bool > static_occasion_field & RPG::Skill::occasion_field = true

Definition at line 80 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ physical_rate

static TypedField< RPG::Skill, int32_t > static_physical_rate & RPG::Skill::physical_rate = 0

Definition at line 83 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ power

static TypedField< RPG::Skill, int32_t > static_power & RPG::Skill::power = 0

Definition at line 86 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ reverse_state_effect

static TypedField< RPG::Skill, bool > static_reverse_state_effect & RPG::Skill::reverse_state_effect = false

Definition at line 82 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ scope

static TypedField< RPG::Skill, int32_t > static_scope & RPG::Skill::scope = 0

Definition at line 76 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ sound_effect

static TypedField< RPG::Skill, RPG::Sound > static_sound_effect & RPG::Skill::sound_effect

Definition at line 79 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ sp_cost

static TypedField< RPG::Skill, int32_t > static_sp_cost & RPG::Skill::sp_cost = 0

Definition at line 75 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ sp_percent

static TypedField< RPG::Skill, int32_t > static_sp_percent & RPG::Skill::sp_percent = 0

Definition at line 74 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ sp_type

static TypedField< RPG::Skill, int32_t > static_sp_type & RPG::Skill::sp_type = 0

Definition at line 73 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ state_effects

static TypedField< RPG::Skill, std::vector< bool > > static_state_effects & RPG::Skill::state_effects

Definition at line 96 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ switch_id

static TypedField< RPG::Skill, int32_t > static_switch_id & RPG::Skill::switch_id = 1

Definition at line 77 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ type

static TypedField< RPG::Skill, int32_t > static_type & RPG::Skill::type = 0

Definition at line 72 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ using_message1

static TypedField< RPG::Skill, std::string > static_using_message1 & RPG::Skill::using_message1

Definition at line 69 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ using_message2

static TypedField< RPG::Skill, std::string > static_using_message2 & RPG::Skill::using_message2

Definition at line 70 of file rpg_skill.h.

Referenced by RPG::operator==().

◆ variance

static TypedField< RPG::Skill, int32_t > static_variance & RPG::Skill::variance = 4

Definition at line 85 of file rpg_skill.h.

Referenced by RPG::operator==().


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