liblcf
RPG::SaveActor Class Reference

#include <rpg_saveactor.h>

+ Collaboration diagram for RPG::SaveActor:

Public Types

enum  RowType {
  RowType_front = 0 ,
  RowType_back = 1
}
 

Public Member Functions

void Setup (int actor_id)
 
void Fixup (int actor_id)
 
void UnFixup ()
 

Public Attributes

int ID = 0
 
std::string name
 
std::string title
 
std::string sprite_name
 
int32_t sprite_id = 0
 
int32_t transparency = 0
 
std::string face_name
 
int32_t face_id = 0
 
int32_t level = -1
 
int32_t exp = -1
 
int32_t hp_mod = -1
 
int32_t sp_mod = -1
 
int32_t attack_mod = 0
 
int32_t defense_mod = 0
 
int32_t spirit_mod = 0
 
int32_t agility_mod = 0
 
int32_t skills_size = -1
 
std::vector< int16_t > skills
 
std::vector< int16_t > equipped
 
int32_t current_hp = -1
 
int32_t current_sp = -1
 
std::vector< int32_t > battle_commands
 
std::vector< int16_t > status
 
bool changed_battle_commands = false
 
int32_t class_id = -1
 
int32_t row = 0
 
bool two_weapon = false
 
bool lock_equipment = false
 
bool auto_battle = false
 
bool super_guard = false
 
int32_t battler_animation = 0
 

Static Public Attributes

static constexpr auto kRowTypeTags
 

Detailed Description

Definition at line 25 of file rpg_saveactor.h.

Member Enumeration Documentation

◆ RowType

Enumerator
RowType_front 
RowType_back 

Definition at line 27 of file rpg_saveactor.h.

Member Function Documentation

◆ Fixup()

◆ Setup()

◆ UnFixup()

Member Data Documentation

◆ agility_mod

static TypedField< RPG::SaveActor, int32_t > static_agility_mod & RPG::SaveActor::agility_mod = 0

Definition at line 54 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().

◆ attack_mod

static TypedField< RPG::SaveActor, int32_t > static_attack_mod & RPG::SaveActor::attack_mod = 0

Definition at line 51 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().

◆ auto_battle

static TypedField< RPG::SaveActor, bool > static_auto_battle & RPG::SaveActor::auto_battle = false

Definition at line 67 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().

◆ battle_commands

static TypedField< RPG::SaveActor, std::vector< int32_t > > static_battle_commands & RPG::SaveActor::battle_commands

Definition at line 60 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().

◆ battler_animation

static TypedField< RPG::SaveActor, int32_t > static_battler_animation & RPG::SaveActor::battler_animation = 0

Definition at line 69 of file rpg_saveactor.h.

Referenced by RPG::operator==().

◆ changed_battle_commands

static TypedField< RPG::SaveActor, bool > static_changed_battle_commands & RPG::SaveActor::changed_battle_commands = false

Definition at line 62 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().

◆ class_id

static TypedField< RPG::SaveActor, int32_t > static_class_id & RPG::SaveActor::class_id = -1

Definition at line 63 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().

◆ current_hp

static TypedField< RPG::SaveActor, int32_t > static_current_hp & RPG::SaveActor::current_hp = -1

Definition at line 58 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().

◆ current_sp

static TypedField< RPG::SaveActor, int32_t > static_current_sp & RPG::SaveActor::current_sp = -1

Definition at line 59 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().

◆ defense_mod

static TypedField< RPG::SaveActor, int32_t > static_defense_mod & RPG::SaveActor::defense_mod = 0

Definition at line 52 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().

◆ equipped

static TypedField< RPG::SaveActor, std::vector< int16_t > > static_equipped & RPG::SaveActor::equipped

Definition at line 57 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().

◆ exp

static TypedField< RPG::SaveActor, int32_t > static_exp & RPG::SaveActor::exp = -1

Definition at line 48 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().

◆ face_id

static TypedField< RPG::SaveActor, int32_t > static_face_id & RPG::SaveActor::face_id = 0

Definition at line 46 of file rpg_saveactor.h.

Referenced by Fixup(), RPG::operator==(), and Setup().

◆ face_name

static TypedField< RPG::SaveActor, std::string > static_face_name & RPG::SaveActor::face_name

Definition at line 45 of file rpg_saveactor.h.

Referenced by Fixup(), RPG::operator==(), and Setup().

◆ hp_mod

static TypedField< RPG::SaveActor, int32_t > static_hp_mod & RPG::SaveActor::hp_mod = -1

Definition at line 49 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().

◆ ID

int RPG::SaveActor::ID = 0

Definition at line 39 of file rpg_saveactor.h.

Referenced by Fixup(), and Setup().

◆ kRowTypeTags

constexpr auto RPG::SaveActor::kRowTypeTags
staticconstexpr
Initial value:
= makeEnumTags<RowType>(
"front",
"back"
)

Definition at line 31 of file rpg_saveactor.h.

◆ level

static TypedField< RPG::SaveActor, int32_t > static_level & RPG::SaveActor::level = -1

Definition at line 47 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().

◆ lock_equipment

static TypedField< RPG::SaveActor, bool > static_lock_equipment & RPG::SaveActor::lock_equipment = false

Definition at line 66 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().

◆ name

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

Definition at line 40 of file rpg_saveactor.h.

Referenced by Fixup(), RPG::operator==(), and Setup().

◆ row

static TypedField< RPG::SaveActor, int32_t > static_row & RPG::SaveActor::row = 0

Definition at line 64 of file rpg_saveactor.h.

Referenced by RPG::operator==().

◆ skills

static TypedField< RPG::SaveActor, std::vector< int16_t > > static_skills & RPG::SaveActor::skills

Definition at line 56 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().

◆ skills_size

static TypedField< RPG::SaveActor, int32_t > static_skills_size & RPG::SaveActor::skills_size = -1

Definition at line 55 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().

◆ sp_mod

static TypedField< RPG::SaveActor, int32_t > static_sp_mod & RPG::SaveActor::sp_mod = -1

Definition at line 50 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().

◆ spirit_mod

static TypedField< RPG::SaveActor, int32_t > static_spirit_mod & RPG::SaveActor::spirit_mod = 0

Definition at line 53 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().

◆ sprite_id

static TypedField< RPG::SaveActor, int32_t > static_sprite_id & RPG::SaveActor::sprite_id = 0

Definition at line 43 of file rpg_saveactor.h.

Referenced by Fixup(), RPG::operator==(), and Setup().

◆ sprite_name

static TypedField< RPG::SaveActor, std::string > static_sprite_name & RPG::SaveActor::sprite_name

Definition at line 42 of file rpg_saveactor.h.

Referenced by Fixup(), RPG::operator==(), and Setup().

◆ status

static TypedField< RPG::SaveActor, std::vector< int16_t > > static_status & RPG::SaveActor::status

Definition at line 61 of file rpg_saveactor.h.

Referenced by Fixup(), RPG::operator==(), and Setup().

◆ super_guard

static TypedField< RPG::SaveActor, bool > static_super_guard & RPG::SaveActor::super_guard = false

Definition at line 68 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().

◆ title

static TypedField< RPG::SaveActor, std::string > static_title & RPG::SaveActor::title

Definition at line 41 of file rpg_saveactor.h.

Referenced by Fixup(), RPG::operator==(), and Setup().

◆ transparency

static TypedField< RPG::SaveActor, int32_t > static_transparency & RPG::SaveActor::transparency = 0

Definition at line 44 of file rpg_saveactor.h.

Referenced by Fixup(), RPG::operator==(), and Setup().

◆ two_weapon

static TypedField< RPG::SaveActor, bool > static_two_weapon & RPG::SaveActor::two_weapon = false

Definition at line 65 of file rpg_saveactor.h.

Referenced by RPG::operator==(), and Setup().


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