liblcf
RPG::Attribute Class Reference

#include <rpg_attribute.h>

+ Collaboration diagram for RPG::Attribute:

Public Types

enum  Type {
  Type_physical = 0,
  Type_magical = 1
}
 

Public Attributes

int ID = 0
 
std::string name
 
int32_t type = 0
 
int32_t a_rate = 300
 
int32_t b_rate = 200
 
int32_t c_rate = 100
 
int32_t d_rate = 50
 
int32_t e_rate = 0
 

Static Public Attributes

static constexpr auto kTypeTags
 

Detailed Description

Definition at line 24 of file rpg_attribute.h.

Member Enumeration Documentation

◆ Type

Enumerator
Type_physical 
Type_magical 

Definition at line 26 of file rpg_attribute.h.

Member Data Documentation

◆ a_rate

static TypedField< RPG::Attribute, int32_t > static_a_rate & RPG::Attribute::a_rate = 300

Definition at line 38 of file rpg_attribute.h.

Referenced by RPG::operator==().

◆ b_rate

static TypedField< RPG::Attribute, int32_t > static_b_rate & RPG::Attribute::b_rate = 200

Definition at line 39 of file rpg_attribute.h.

Referenced by RPG::operator==().

◆ c_rate

static TypedField< RPG::Attribute, int32_t > static_c_rate & RPG::Attribute::c_rate = 100

Definition at line 40 of file rpg_attribute.h.

Referenced by RPG::operator==().

◆ d_rate

static TypedField< RPG::Attribute, int32_t > static_d_rate & RPG::Attribute::d_rate = 50

Definition at line 41 of file rpg_attribute.h.

Referenced by RPG::operator==().

◆ e_rate

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

Definition at line 42 of file rpg_attribute.h.

Referenced by RPG::operator==().

◆ ID

int RPG::Attribute::ID = 0

Definition at line 35 of file rpg_attribute.h.

◆ kTypeTags

constexpr auto RPG::Attribute::kTypeTags
static
Initial value:
= makeEnumTags<Type>(
"physical",
"magical"
)

Definition at line 30 of file rpg_attribute.h.

◆ name

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

Definition at line 36 of file rpg_attribute.h.

Referenced by RPG::operator==().

◆ type

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

Definition at line 37 of file rpg_attribute.h.

Referenced by RPG::operator==().


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