liblcf
RPG::System Class Reference

#include <rpg_system.h>

+ Collaboration diagram for RPG::System:

Public Types

enum  FadeOut {
  FadeOut_default = 0,
  FadeOut_fade_out = 1,
  FadeOut_remove_blocks = 2,
  FadeOut_wipe_downward = 3,
  FadeOut_wipe_upward = 4,
  FadeOut_venetian_blinds = 5,
  FadeOut_vertical_blinds = 6,
  FadeOut_horizontal_blinds = 7,
  FadeOut_receding_square = 8,
  FadeOut_expanding_square = 9,
  FadeOut_screen_moves_up = 10,
  FadeOut_screen_moves_down = 11,
  FadeOut_screen_moves_left = 12,
  FadeOut_screen_moves_right = 13,
  FadeOut_vertical_div = 14,
  FadeOut_horizontal_div = 15,
  FadeOut_quadrasection = 16,
  FadeOut_zoom_in = 17,
  FadeOut_mosaic = 18,
  FadeOut_waver_screen = 19,
  FadeOut_instantaneous = 20,
  FadeOut_none = 21
}
 
enum  FadeIn {
  FadeIn_default = 0,
  FadeIn_fade_in = 1,
  FadeIn_reconstitute_blocks = 2,
  FadeIn_unwipe_downward = 3,
  FadeIn_unwipe_upward = 4,
  FadeIn_venetian_blinds = 5,
  FadeIn_vertical_blinds = 6,
  FadeIn_horizontal_blinds = 7,
  FadeIn_receding_square = 8,
  FadeIn_expanding_square = 9,
  FadeIn_screen_moves_down = 10,
  FadeIn_screen_moves_up = 11,
  FadeIn_screen_moves_right = 12,
  FadeIn_screen_moves_left = 13,
  FadeIn_vertical_unify = 14,
  FadeIn_horizontal_unify = 15,
  FadeIn_unify_quadrants = 16,
  FadeIn_zoom_out = 17,
  FadeIn_mosaic = 18,
  FadeIn_waver_screen = 19,
  FadeIn_instantaneous = 20,
  FadeIn_none = 21
}
 
enum  Stretch {
  Stretch_stretch = 0,
  Stretch_tiled = 1
}
 
enum  Font {
  Font_gothic = 0,
  Font_mincho = 1
}
 
enum  BattleFormation {
  BattleFormation_terrain = 0,
  BattleFormation_loose = 1,
  BattleFormation_tight = 2
}
 
enum  BattleCondition {
  BattleCondition_none = 0,
  BattleCondition_initiative = 1,
  BattleCondition_back = 2,
  BattleCondition_surround = 3,
  BattleCondition_pincers = 4
}
 
enum  EquipmentSetting {
  EquipmentSetting_actor = 0,
  EquipmentSetting_class = 1
}
 

Public Member Functions

 System ()
 
void Init ()
 

Public Attributes

int32_t ldb_id = 0
 
std::string boat_name
 
std::string ship_name
 
std::string airship_name
 
int32_t boat_index = 0
 
int32_t ship_index = 0
 
int32_t airship_index = 0
 
std::string title_name
 
std::string gameover_name
 
std::string system_name
 
std::string system2_name
 
std::vector< int16_t > party
 
std::vector< int16_t > menu_commands
 
Music title_music
 
Music battle_music
 
Music battle_end_music
 
Music inn_music
 
Music boat_music
 
Music ship_music
 
Music airship_music
 
Music gameover_music
 
Sound cursor_se
 
Sound decision_se
 
Sound cancel_se
 
Sound buzzer_se
 
Sound battle_se
 
Sound escape_se
 
Sound enemy_attack_se
 
Sound enemy_damaged_se
 
Sound actor_damaged_se
 
Sound dodge_se
 
Sound enemy_death_se
 
Sound item_se
 
int32_t transition_out = 0
 
int32_t transition_in = 0
 
int32_t battle_start_fadeout = 0
 
int32_t battle_start_fadein = 0
 
int32_t battle_end_fadeout = 0
 
int32_t battle_end_fadein = 0
 
int32_t message_stretch = 0
 
int32_t font_id = 0
 
int32_t selected_condition = 0
 
int32_t selected_hero = 0
 
std::string battletest_background
 
std::vector< TestBattlerbattletest_data
 
int32_t save_count = 0
 
int32_t battletest_terrain = 0
 
int32_t battletest_formation = 0
 
int32_t battletest_condition = 0
 
int32_t equipment_setting = 0
 
int32_t battletest_alt_terrain = -1
 
bool show_frame = false
 
std::string frame_name
 
bool invert_animations = false
 
bool show_title = true
 

Static Public Attributes

static constexpr auto kFadeOutTags
 
static constexpr auto kFadeInTags
 
static constexpr auto kStretchTags
 
static constexpr auto kFontTags
 
static constexpr auto kBattleFormationTags
 
static constexpr auto kBattleConditionTags
 
static constexpr auto kEquipmentSettingTags
 

Detailed Description

Definition at line 28 of file rpg_system.h.

Member Enumeration Documentation

◆ BattleCondition

Enumerator
BattleCondition_none 
BattleCondition_initiative 
BattleCondition_back 
BattleCondition_surround 
BattleCondition_pincers 

Definition at line 152 of file rpg_system.h.

◆ BattleFormation

Enumerator
BattleFormation_terrain 
BattleFormation_loose 
BattleFormation_tight 

Definition at line 142 of file rpg_system.h.

◆ EquipmentSetting

Enumerator
EquipmentSetting_actor 
EquipmentSetting_class 

Definition at line 166 of file rpg_system.h.

◆ FadeIn

Enumerator
FadeIn_default 
FadeIn_fade_in 
FadeIn_reconstitute_blocks 
FadeIn_unwipe_downward 
FadeIn_unwipe_upward 
FadeIn_venetian_blinds 
FadeIn_vertical_blinds 
FadeIn_horizontal_blinds 
FadeIn_receding_square 
FadeIn_expanding_square 
FadeIn_screen_moves_down 
FadeIn_screen_moves_up 
FadeIn_screen_moves_right 
FadeIn_screen_moves_left 
FadeIn_vertical_unify 
FadeIn_horizontal_unify 
FadeIn_unify_quadrants 
FadeIn_zoom_out 
FadeIn_mosaic 
FadeIn_waver_screen 
FadeIn_instantaneous 
FadeIn_none 

Definition at line 78 of file rpg_system.h.

◆ FadeOut

Enumerator
FadeOut_default 
FadeOut_fade_out 
FadeOut_remove_blocks 
FadeOut_wipe_downward 
FadeOut_wipe_upward 
FadeOut_venetian_blinds 
FadeOut_vertical_blinds 
FadeOut_horizontal_blinds 
FadeOut_receding_square 
FadeOut_expanding_square 
FadeOut_screen_moves_up 
FadeOut_screen_moves_down 
FadeOut_screen_moves_left 
FadeOut_screen_moves_right 
FadeOut_vertical_div 
FadeOut_horizontal_div 
FadeOut_quadrasection 
FadeOut_zoom_in 
FadeOut_mosaic 
FadeOut_waver_screen 
FadeOut_instantaneous 
FadeOut_none 

Definition at line 30 of file rpg_system.h.

◆ Font

Enumerator
Font_gothic 
Font_mincho 

Definition at line 134 of file rpg_system.h.

◆ Stretch

Enumerator
Stretch_stretch 
Stretch_tiled 

Definition at line 126 of file rpg_system.h.

Constructor & Destructor Documentation

◆ System()

RPG::System::System ( )

Constructor.

Definition at line 18 of file rpg_system.cpp.

References Init().

+ Here is the call graph for this function:

Member Function Documentation

◆ Init()

void RPG::System::Init ( )

Definition at line 181 of file rpg_setup.cpp.

Referenced by System().

+ Here is the caller graph for this function:

Member Data Documentation

◆ actor_damaged_se

static TypedField< RPG::System, RPG::Sound > static_actor_damaged_se & RPG::System::actor_damaged_se

◆ airship_index

static TypedField< RPG::System, int32_t > static_airship_index & RPG::System::airship_index = 0

Definition at line 183 of file rpg_system.h.

Referenced by RPG::operator==().

◆ airship_music

static TypedField< RPG::System, RPG::Music > static_airship_music & RPG::System::airship_music

◆ airship_name

static TypedField< RPG::System, std::string > static_airship_name & RPG::System::airship_name

Definition at line 180 of file rpg_system.h.

Referenced by ReaderUtil::DetectEncodings(), and RPG::operator==().

◆ battle_end_fadein

static TypedField< RPG::System, int32_t > static_battle_end_fadein & RPG::System::battle_end_fadein = 0

Definition at line 215 of file rpg_system.h.

Referenced by RPG::operator==().

◆ battle_end_fadeout

static TypedField< RPG::System, int32_t > static_battle_end_fadeout & RPG::System::battle_end_fadeout = 0

Definition at line 214 of file rpg_system.h.

Referenced by RPG::operator==().

◆ battle_end_music

static TypedField< RPG::System, RPG::Music > static_battle_end_music & RPG::System::battle_end_music

◆ battle_music

static TypedField< RPG::System, RPG::Music > static_battle_music & RPG::System::battle_music

◆ battle_se

static TypedField< RPG::System, RPG::Sound > static_battle_se & RPG::System::battle_se

◆ battle_start_fadein

static TypedField< RPG::System, int32_t > static_battle_start_fadein & RPG::System::battle_start_fadein = 0

Definition at line 213 of file rpg_system.h.

Referenced by RPG::operator==().

◆ battle_start_fadeout

static TypedField< RPG::System, int32_t > static_battle_start_fadeout & RPG::System::battle_start_fadeout = 0

Definition at line 212 of file rpg_system.h.

Referenced by RPG::operator==().

◆ battletest_alt_terrain

static TypedField< RPG::System, int32_t > static_battletest_alt_terrain & RPG::System::battletest_alt_terrain = -1

Definition at line 227 of file rpg_system.h.

Referenced by RPG::operator==().

◆ battletest_background

static TypedField< RPG::System, std::string > static_battletest_background & RPG::System::battletest_background

Definition at line 220 of file rpg_system.h.

Referenced by ReaderUtil::DetectEncodings(), and RPG::operator==().

◆ battletest_condition

static TypedField< RPG::System, int32_t > static_battletest_condition & RPG::System::battletest_condition = 0

Definition at line 225 of file rpg_system.h.

Referenced by RPG::operator==().

◆ battletest_data

static TypedField< RPG::System, std::vector< RPG::TestBattler > > static_battletest_data & RPG::System::battletest_data

Definition at line 221 of file rpg_system.h.

Referenced by RPG::operator==().

◆ battletest_formation

static TypedField< RPG::System, int32_t > static_battletest_formation & RPG::System::battletest_formation = 0

Definition at line 224 of file rpg_system.h.

Referenced by RPG::operator==().

◆ battletest_terrain

static TypedField< RPG::System, int32_t > static_battletest_terrain & RPG::System::battletest_terrain = 0

Definition at line 223 of file rpg_system.h.

Referenced by RPG::operator==().

◆ boat_index

static TypedField< RPG::System, int32_t > static_boat_index & RPG::System::boat_index = 0

Definition at line 181 of file rpg_system.h.

Referenced by RPG::operator==().

◆ boat_music

static TypedField< RPG::System, RPG::Music > static_boat_music & RPG::System::boat_music

◆ boat_name

static TypedField< RPG::System, std::string > static_boat_name & RPG::System::boat_name

Definition at line 178 of file rpg_system.h.

Referenced by ReaderUtil::DetectEncodings(), and RPG::operator==().

◆ buzzer_se

static TypedField< RPG::System, RPG::Sound > static_buzzer_se & RPG::System::buzzer_se

◆ cancel_se

static TypedField< RPG::System, RPG::Sound > static_cancel_se & RPG::System::cancel_se

◆ cursor_se

static TypedField< RPG::System, RPG::Sound > static_cursor_se & RPG::System::cursor_se

◆ decision_se

static TypedField< RPG::System, RPG::Sound > static_decision_se & RPG::System::decision_se

◆ dodge_se

static TypedField< RPG::System, RPG::Sound > static_dodge_se & RPG::System::dodge_se

◆ enemy_attack_se

static TypedField< RPG::System, RPG::Sound > static_enemy_attack_se & RPG::System::enemy_attack_se

◆ enemy_damaged_se

static TypedField< RPG::System, RPG::Sound > static_enemy_damaged_se & RPG::System::enemy_damaged_se

◆ enemy_death_se

static TypedField< RPG::System, RPG::Sound > static_enemy_death_se & RPG::System::enemy_death_se

◆ equipment_setting

static TypedField< RPG::System, int32_t > static_equipment_setting & RPG::System::equipment_setting = 0

Definition at line 226 of file rpg_system.h.

Referenced by RPG::operator==().

◆ escape_se

static TypedField< RPG::System, RPG::Sound > static_escape_se & RPG::System::escape_se

◆ font_id

static TypedField< RPG::System, int32_t > static_font_id & RPG::System::font_id = 0

Definition at line 217 of file rpg_system.h.

Referenced by RPG::operator==().

◆ frame_name

static TypedField< RPG::System, std::string > static_frame_name & RPG::System::frame_name

Definition at line 229 of file rpg_system.h.

Referenced by ReaderUtil::DetectEncodings(), and RPG::operator==().

◆ gameover_music

static TypedField< RPG::System, RPG::Music > static_gameover_music & RPG::System::gameover_music

◆ gameover_name

static TypedField< RPG::System, std::string > static_gameover_name & RPG::System::gameover_name

Definition at line 185 of file rpg_system.h.

Referenced by ReaderUtil::DetectEncodings(), and RPG::operator==().

◆ inn_music

static TypedField< RPG::System, RPG::Music > static_inn_music & RPG::System::inn_music

◆ invert_animations

static TypedField< RPG::System, bool > static_invert_animations & RPG::System::invert_animations = false

Definition at line 230 of file rpg_system.h.

Referenced by RPG::operator==().

◆ item_se

static TypedField< RPG::System, RPG::Sound > static_item_se & RPG::System::item_se

◆ kBattleConditionTags

constexpr auto RPG::System::kBattleConditionTags
staticconstexpr
Initial value:
= makeEnumTags<BattleCondition>(
"none",
"initiative",
"back",
"surround",
"pincers"
)

Definition at line 159 of file rpg_system.h.

◆ kBattleFormationTags

constexpr auto RPG::System::kBattleFormationTags
staticconstexpr
Initial value:
= makeEnumTags<BattleFormation>(
"terrain",
"loose",
"tight"
)

Definition at line 147 of file rpg_system.h.

◆ kEquipmentSettingTags

constexpr auto RPG::System::kEquipmentSettingTags
staticconstexpr
Initial value:
= makeEnumTags<EquipmentSetting>(
"actor",
"class"
)

Definition at line 170 of file rpg_system.h.

◆ kFadeInTags

constexpr auto RPG::System::kFadeInTags
staticconstexpr
Initial value:
= makeEnumTags<FadeIn>(
"default",
"fade_in",
"reconstitute_blocks",
"unwipe_downward",
"unwipe_upward",
"venetian_blinds",
"vertical_blinds",
"horizontal_blinds",
"receding_square",
"expanding_square",
"screen_moves_down",
"screen_moves_up",
"screen_moves_right",
"screen_moves_left",
"vertical_unify",
"horizontal_unify",
"unify_quadrants",
"zoom_out",
"mosaic",
"waver_screen",
"instantaneous",
"none"
)

Definition at line 102 of file rpg_system.h.

◆ kFadeOutTags

constexpr auto RPG::System::kFadeOutTags
staticconstexpr
Initial value:
= makeEnumTags<FadeOut>(
"default",
"fade_out",
"remove_blocks",
"wipe_downward",
"wipe_upward",
"venetian_blinds",
"vertical_blinds",
"horizontal_blinds",
"receding_square",
"expanding_square",
"screen_moves_up",
"screen_moves_down",
"screen_moves_left",
"screen_moves_right",
"vertical_div",
"horizontal_div",
"quadrasection",
"zoom_in",
"mosaic",
"waver_screen",
"instantaneous",
"none"
)

Definition at line 54 of file rpg_system.h.

◆ kFontTags

constexpr auto RPG::System::kFontTags
staticconstexpr
Initial value:
= makeEnumTags<Font>(
"gothic",
"mincho"
)

Definition at line 138 of file rpg_system.h.

◆ kStretchTags

constexpr auto RPG::System::kStretchTags
staticconstexpr
Initial value:
= makeEnumTags<Stretch>(
"stretch",
"tiled"
)

Definition at line 130 of file rpg_system.h.

◆ ldb_id

static TypedField< RPG::System, int32_t > static_ldb_id & RPG::System::ldb_id = 0

◆ menu_commands

static TypedField< RPG::System, std::vector< int16_t > > static_menu_commands & RPG::System::menu_commands

Definition at line 189 of file rpg_system.h.

Referenced by RPG::operator==().

◆ message_stretch

static TypedField< RPG::System, int32_t > static_message_stretch & RPG::System::message_stretch = 0

Definition at line 216 of file rpg_system.h.

Referenced by RPG::operator==().

◆ party

static TypedField< RPG::System, std::vector< int16_t > > static_party & RPG::System::party

Definition at line 188 of file rpg_system.h.

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

◆ save_count

static TypedField< RPG::System, int32_t > static_save_count & RPG::System::save_count = 0

Definition at line 222 of file rpg_system.h.

Referenced by RPG::operator==(), and LDB_Reader::PrepareSave().

◆ selected_condition

static TypedField< RPG::System, int32_t > static_selected_condition & RPG::System::selected_condition = 0

Definition at line 218 of file rpg_system.h.

Referenced by RPG::operator==().

◆ selected_hero

static TypedField< RPG::System, int32_t > static_selected_hero & RPG::System::selected_hero = 0

Definition at line 219 of file rpg_system.h.

Referenced by RPG::operator==().

◆ ship_index

static TypedField< RPG::System, int32_t > static_ship_index & RPG::System::ship_index = 0

Definition at line 182 of file rpg_system.h.

Referenced by RPG::operator==().

◆ ship_music

static TypedField< RPG::System, RPG::Music > static_ship_music & RPG::System::ship_music

◆ ship_name

static TypedField< RPG::System, std::string > static_ship_name & RPG::System::ship_name

Definition at line 179 of file rpg_system.h.

Referenced by ReaderUtil::DetectEncodings(), and RPG::operator==().

◆ show_frame

static TypedField< RPG::System, bool > static_show_frame & RPG::System::show_frame = false

Definition at line 228 of file rpg_system.h.

Referenced by RPG::operator==().

◆ show_title

static TypedField< RPG::System, bool > static_show_title & RPG::System::show_title = true

Definition at line 231 of file rpg_system.h.

Referenced by RPG::operator==().

◆ system2_name

static TypedField< RPG::System, std::string > static_system2_name & RPG::System::system2_name

Definition at line 187 of file rpg_system.h.

Referenced by ReaderUtil::DetectEncodings(), and RPG::operator==().

◆ system_name

static TypedField< RPG::System, std::string > static_system_name & RPG::System::system_name

Definition at line 186 of file rpg_system.h.

Referenced by ReaderUtil::DetectEncodings(), and RPG::operator==().

◆ title_music

static TypedField< RPG::System, RPG::Music > static_title_music & RPG::System::title_music

◆ title_name

static TypedField< RPG::System, std::string > static_title_name & RPG::System::title_name

Definition at line 184 of file rpg_system.h.

Referenced by ReaderUtil::DetectEncodings(), and RPG::operator==().

◆ transition_in

static TypedField< RPG::System, int32_t > static_transition_in & RPG::System::transition_in = 0

Definition at line 211 of file rpg_system.h.

Referenced by RPG::operator==().

◆ transition_out

static TypedField< RPG::System, int32_t > static_transition_out & RPG::System::transition_out = 0

Definition at line 210 of file rpg_system.h.

Referenced by RPG::operator==().


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