liblcf
RPG::State Class Reference

#include <rpg_state.h>

+ Collaboration diagram for RPG::State:

Public Types

enum  Persistence {
  Persistence_ends = 0,
  Persistence_persists = 1
}
 
enum  Restriction {
  Restriction_normal = 0,
  Restriction_do_nothing = 1,
  Restriction_attack_enemy = 2,
  Restriction_attack_ally = 3
}
 
enum  AffectType {
  AffectType_half = 0,
  AffectType_double = 1,
  AffectType_nothing = 2
}
 
enum  ChangeType {
  ChangeType_lose = 0,
  ChangeType_gain = 1,
  ChangeType_nothing = 2
}
 

Public Attributes

int ID = 0
 
std::string name
 
int32_t type = 0
 
int32_t color = 6
 
int32_t priority = 50
 
int32_t restriction = 0
 
int32_t a_rate = 100
 
int32_t b_rate = 80
 
int32_t c_rate = 60
 
int32_t d_rate = 30
 
int32_t e_rate = 0
 
int32_t hold_turn = 0
 
int32_t auto_release_prob = 0
 
int32_t release_by_damage = 0
 
int32_t affect_type = 0
 
bool affect_attack = false
 
bool affect_defense = false
 
bool affect_spirit = false
 
bool affect_agility = false
 
int32_t reduce_hit_ratio = 100
 
bool avoid_attacks = false
 
bool reflect_magic = false
 
bool cursed = false
 
int32_t battler_animation_id = 100
 
bool restrict_skill = false
 
int32_t restrict_skill_level = 0
 
bool restrict_magic = false
 
int32_t restrict_magic_level = 0
 
int32_t hp_change_type = 0
 
int32_t sp_change_type = 0
 
std::string message_actor
 
std::string message_enemy
 
std::string message_already
 
std::string message_affected
 
std::string message_recovery
 
int32_t hp_change_max = 0
 
int32_t hp_change_val = 0
 
int32_t hp_change_map_steps = 0
 
int32_t hp_change_map_val = 0
 
int32_t sp_change_max = 0
 
int32_t sp_change_val = 0
 
int32_t sp_change_map_steps = 0
 
int32_t sp_change_map_val = 0
 

Static Public Attributes

static constexpr int kDeathID = 1
 
static constexpr auto kPersistenceTags
 
static constexpr auto kRestrictionTags
 
static constexpr auto kAffectTypeTags
 
static constexpr auto kChangeTypeTags
 

Detailed Description

Definition at line 24 of file rpg_state.h.

Member Enumeration Documentation

◆ AffectType

Enumerator
AffectType_half 
AffectType_double 
AffectType_nothing 

Definition at line 49 of file rpg_state.h.

◆ ChangeType

Enumerator
ChangeType_lose 
ChangeType_gain 
ChangeType_nothing 

Definition at line 59 of file rpg_state.h.

◆ Persistence

Enumerator
Persistence_ends 
Persistence_persists 

Definition at line 29 of file rpg_state.h.

◆ Restriction

Enumerator
Restriction_normal 
Restriction_do_nothing 
Restriction_attack_enemy 
Restriction_attack_ally 

Definition at line 37 of file rpg_state.h.

Member Data Documentation

◆ a_rate

static TypedField< RPG::State, int32_t > static_a_rate & RPG::State::a_rate = 100

Definition at line 76 of file rpg_state.h.

Referenced by RPG::operator==().

◆ affect_agility

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

Definition at line 88 of file rpg_state.h.

Referenced by RPG::operator==().

◆ affect_attack

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

Definition at line 85 of file rpg_state.h.

Referenced by RPG::operator==().

◆ affect_defense

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

Definition at line 86 of file rpg_state.h.

Referenced by RPG::operator==().

◆ affect_spirit

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

Definition at line 87 of file rpg_state.h.

Referenced by RPG::operator==().

◆ affect_type

static TypedField< RPG::State, int32_t > static_affect_type & RPG::State::affect_type = 0

Definition at line 84 of file rpg_state.h.

Referenced by RPG::operator==().

◆ auto_release_prob

static TypedField< RPG::State, int32_t > static_auto_release_prob & RPG::State::auto_release_prob = 0

Definition at line 82 of file rpg_state.h.

Referenced by RPG::operator==().

◆ avoid_attacks

static TypedField< RPG::State, bool > static_avoid_attacks & RPG::State::avoid_attacks = false

Definition at line 90 of file rpg_state.h.

Referenced by RPG::operator==().

◆ b_rate

static TypedField< RPG::State, int32_t > static_b_rate & RPG::State::b_rate = 80

Definition at line 77 of file rpg_state.h.

Referenced by RPG::operator==().

◆ battler_animation_id

static TypedField< RPG::State, int32_t > static_battler_animation_id & RPG::State::battler_animation_id = 100

Definition at line 93 of file rpg_state.h.

Referenced by RPG::operator==().

◆ c_rate

static TypedField< RPG::State, int32_t > static_c_rate & RPG::State::c_rate = 60

Definition at line 78 of file rpg_state.h.

Referenced by RPG::operator==().

◆ color

static TypedField< RPG::State, int32_t > static_color & RPG::State::color = 6

Definition at line 73 of file rpg_state.h.

Referenced by RPG::operator==().

◆ cursed

static TypedField< RPG::State, bool > static_cursed & RPG::State::cursed = false

Definition at line 92 of file rpg_state.h.

Referenced by RPG::operator==().

◆ d_rate

static TypedField< RPG::State, int32_t > static_d_rate & RPG::State::d_rate = 30

Definition at line 79 of file rpg_state.h.

Referenced by RPG::operator==().

◆ e_rate

static TypedField< RPG::State, int32_t > static_e_rate & RPG::State::e_rate = 0

Definition at line 80 of file rpg_state.h.

Referenced by RPG::operator==().

◆ hold_turn

static TypedField< RPG::State, int32_t > static_hold_turn & RPG::State::hold_turn = 0

Definition at line 81 of file rpg_state.h.

Referenced by RPG::operator==().

◆ hp_change_map_steps

static TypedField< RPG::State, int32_t > static_hp_change_map_steps & RPG::State::hp_change_map_steps = 0

Definition at line 107 of file rpg_state.h.

Referenced by RPG::operator==().

◆ hp_change_map_val

static TypedField< RPG::State, int32_t > static_hp_change_map_val & RPG::State::hp_change_map_val = 0

Definition at line 108 of file rpg_state.h.

Referenced by RPG::operator==().

◆ hp_change_max

static TypedField< RPG::State, int32_t > static_hp_change_max & RPG::State::hp_change_max = 0

Definition at line 105 of file rpg_state.h.

Referenced by RPG::operator==().

◆ hp_change_type

static TypedField< RPG::State, int32_t > static_hp_change_type & RPG::State::hp_change_type = 0

Definition at line 98 of file rpg_state.h.

Referenced by RPG::operator==().

◆ hp_change_val

static TypedField< RPG::State, int32_t > static_hp_change_val & RPG::State::hp_change_val = 0

Definition at line 106 of file rpg_state.h.

Referenced by RPG::operator==().

◆ ID

int RPG::State::ID = 0

Definition at line 70 of file rpg_state.h.

◆ kAffectTypeTags

constexpr auto RPG::State::kAffectTypeTags
staticconstexpr
Initial value:
= makeEnumTags<AffectType>(
"half",
"double",
"nothing"
)

Definition at line 54 of file rpg_state.h.

◆ kChangeTypeTags

constexpr auto RPG::State::kChangeTypeTags
staticconstexpr
Initial value:
= makeEnumTags<ChangeType>(
"lose",
"gain",
"nothing"
)

Definition at line 64 of file rpg_state.h.

◆ kDeathID

constexpr int RPG::State::kDeathID = 1
staticconstexpr

Definition at line 27 of file rpg_state.h.

◆ kPersistenceTags

constexpr auto RPG::State::kPersistenceTags
staticconstexpr
Initial value:
= makeEnumTags<Persistence>(
"ends",
"persists"
)

Definition at line 33 of file rpg_state.h.

◆ kRestrictionTags

constexpr auto RPG::State::kRestrictionTags
staticconstexpr
Initial value:
= makeEnumTags<Restriction>(
"normal",
"do_nothing",
"attack_enemy",
"attack_ally"
)

Definition at line 43 of file rpg_state.h.

◆ message_actor

static TypedField< RPG::State, std::string > static_message_actor & RPG::State::message_actor

Definition at line 100 of file rpg_state.h.

Referenced by RPG::operator==().

◆ message_affected

static TypedField< RPG::State, std::string > static_message_affected & RPG::State::message_affected

Definition at line 103 of file rpg_state.h.

Referenced by RPG::operator==().

◆ message_already

static TypedField< RPG::State, std::string > static_message_already & RPG::State::message_already

Definition at line 102 of file rpg_state.h.

Referenced by RPG::operator==().

◆ message_enemy

static TypedField< RPG::State, std::string > static_message_enemy & RPG::State::message_enemy

Definition at line 101 of file rpg_state.h.

Referenced by RPG::operator==().

◆ message_recovery

static TypedField< RPG::State, std::string > static_message_recovery & RPG::State::message_recovery

Definition at line 104 of file rpg_state.h.

Referenced by RPG::operator==().

◆ name

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

Definition at line 71 of file rpg_state.h.

Referenced by RPG::operator==().

◆ priority

static TypedField< RPG::State, int32_t > static_priority & RPG::State::priority = 50

Definition at line 74 of file rpg_state.h.

Referenced by RPG::operator==().

◆ reduce_hit_ratio

static TypedField< RPG::State, int32_t > static_reduce_hit_ratio & RPG::State::reduce_hit_ratio = 100

Definition at line 89 of file rpg_state.h.

Referenced by RPG::operator==().

◆ reflect_magic

static TypedField< RPG::State, bool > static_reflect_magic & RPG::State::reflect_magic = false

Definition at line 91 of file rpg_state.h.

Referenced by RPG::operator==().

◆ release_by_damage

static TypedField< RPG::State, int32_t > static_release_by_damage & RPG::State::release_by_damage = 0

Definition at line 83 of file rpg_state.h.

Referenced by RPG::operator==().

◆ restrict_magic

static TypedField< RPG::State, bool > static_restrict_magic & RPG::State::restrict_magic = false

Definition at line 96 of file rpg_state.h.

Referenced by RPG::operator==().

◆ restrict_magic_level

static TypedField< RPG::State, int32_t > static_restrict_magic_level & RPG::State::restrict_magic_level = 0

Definition at line 97 of file rpg_state.h.

Referenced by RPG::operator==().

◆ restrict_skill

static TypedField< RPG::State, bool > static_restrict_skill & RPG::State::restrict_skill = false

Definition at line 94 of file rpg_state.h.

Referenced by RPG::operator==().

◆ restrict_skill_level

static TypedField< RPG::State, int32_t > static_restrict_skill_level & RPG::State::restrict_skill_level = 0

Definition at line 95 of file rpg_state.h.

Referenced by RPG::operator==().

◆ restriction

static TypedField< RPG::State, int32_t > static_restriction & RPG::State::restriction = 0

Definition at line 75 of file rpg_state.h.

Referenced by RPG::operator==().

◆ sp_change_map_steps

static TypedField< RPG::State, int32_t > static_sp_change_map_steps & RPG::State::sp_change_map_steps = 0

Definition at line 111 of file rpg_state.h.

Referenced by RPG::operator==().

◆ sp_change_map_val

static TypedField< RPG::State, int32_t > static_sp_change_map_val & RPG::State::sp_change_map_val = 0

Definition at line 112 of file rpg_state.h.

Referenced by RPG::operator==().

◆ sp_change_max

static TypedField< RPG::State, int32_t > static_sp_change_max & RPG::State::sp_change_max = 0

Definition at line 109 of file rpg_state.h.

Referenced by RPG::operator==().

◆ sp_change_type

static TypedField< RPG::State, int32_t > static_sp_change_type & RPG::State::sp_change_type = 0

Definition at line 99 of file rpg_state.h.

Referenced by RPG::operator==().

◆ sp_change_val

static TypedField< RPG::State, int32_t > static_sp_change_val & RPG::State::sp_change_val = 0

Definition at line 110 of file rpg_state.h.

Referenced by RPG::operator==().

◆ type

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

Definition at line 72 of file rpg_state.h.

Referenced by RPG::operator==().


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