liblcf
|
#include <rpg_saveactor.h>
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 |
Definition at line 25 of file rpg_saveactor.h.
Enumerator | |
---|---|
RowType_front | |
RowType_back |
Definition at line 27 of file rpg_saveactor.h.
void RPG::SaveActor::Fixup | ( | int | actor_id | ) |
Definition at line 33 of file rpg_fixup.cpp.
References Data::actors, RPG::Actor::character_index, RPG::Actor::character_name, face_id, RPG::Actor::face_index, RPG::Actor::face_name, face_name, ID, RPG::Actor::name, name, sprite_id, sprite_name, Data::states, status, RPG::Actor::title, title, transparency, and RPG::Actor::transparent.
void RPG::SaveActor::Setup | ( | int | actor_id | ) |
Definition at line 21 of file rpg_setup.cpp.
References RPG::Equipment::accessory_id, Data::actors, agility_mod, RPG::Equipment::armor_id, attack_mod, RPG::Actor::auto_battle, auto_battle, battle_commands, changed_battle_commands, RPG::Actor::character_index, RPG::Actor::character_name, class_id, current_hp, current_sp, defense_mod, equipped, exp, face_id, RPG::Actor::face_index, RPG::Actor::face_name, face_name, RPG::Equipment::helmet_id, hp_mod, RPG::Actor::ID, ID, RPG::Actor::initial_equipment, RPG::Actor::initial_level, level, RPG::Actor::lock_equipment, lock_equipment, RPG::Actor::name, name, RPG::Equipment::shield_id, skills, skills_size, sp_mod, spirit_mod, sprite_id, sprite_name, Data::states, status, RPG::Actor::super_guard, super_guard, RPG::Actor::title, title, transparency, RPG::Actor::transparent, RPG::Actor::two_weapon, two_weapon, and RPG::Equipment::weapon_id.
void RPG::SaveActor::UnFixup | ( | ) |
Definition at line 59 of file rpg_fixup.cpp.
References Data::actors, RPG::Actor::character_index, RPG::Actor::character_name, RPG::Actor::face_index, RPG::Actor::face_name, RPG::Actor::name, RPG::Actor::title, and RPG::Actor::transparent.
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().
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().
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().
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().
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==().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
int RPG::SaveActor::ID = 0 |
Definition at line 39 of file rpg_saveactor.h.
|
staticconstexpr |
Definition at line 31 of file rpg_saveactor.h.
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().
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().
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().
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==().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().