liblcf
rpg_system.h
Go to the documentation of this file.
1 /* !!!! GENERATED FILE - DO NOT EDIT !!!!
2  * --------------------------------------
3  *
4  * This file is part of liblcf. Copyright (c) 2020 liblcf authors.
5  * https://github.com/EasyRPG/liblcf - https://easyrpg.org
6  *
7  * liblcf is Free/Libre Open Source Software, released under the MIT License.
8  * For the full copyright and license information, please view the COPYING
9  * file that was distributed with this source code.
10  */
11 
12 #ifndef LCF_RPG_SYSTEM_H
13 #define LCF_RPG_SYSTEM_H
14 
15 // Headers
16 #include <stdint.h>
17 #include <string>
18 #include <vector>
19 #include "enum_tags.h"
20 #include "rpg_music.h"
21 #include "rpg_sound.h"
22 #include "rpg_testbattler.h"
23 
27 namespace RPG {
28  class System {
29  public:
30  enum FadeOut {
52  FadeOut_none = 21
53  };
54  static constexpr auto kFadeOutTags = makeEnumTags<FadeOut>(
55  "default",
56  "fade_out",
57  "remove_blocks",
58  "wipe_downward",
59  "wipe_upward",
60  "venetian_blinds",
61  "vertical_blinds",
62  "horizontal_blinds",
63  "receding_square",
64  "expanding_square",
65  "screen_moves_up",
66  "screen_moves_down",
67  "screen_moves_left",
68  "screen_moves_right",
69  "vertical_div",
70  "horizontal_div",
71  "quadrasection",
72  "zoom_in",
73  "mosaic",
74  "waver_screen",
75  "instantaneous",
76  "none"
77  );
78  enum FadeIn {
100  FadeIn_none = 21
101  };
102  static constexpr auto kFadeInTags = makeEnumTags<FadeIn>(
103  "default",
104  "fade_in",
105  "reconstitute_blocks",
106  "unwipe_downward",
107  "unwipe_upward",
108  "venetian_blinds",
109  "vertical_blinds",
110  "horizontal_blinds",
111  "receding_square",
112  "expanding_square",
113  "screen_moves_down",
114  "screen_moves_up",
115  "screen_moves_right",
116  "screen_moves_left",
117  "vertical_unify",
118  "horizontal_unify",
119  "unify_quadrants",
120  "zoom_out",
121  "mosaic",
122  "waver_screen",
123  "instantaneous",
124  "none"
125  );
126  enum Stretch {
128  Stretch_tiled = 1
129  };
130  static constexpr auto kStretchTags = makeEnumTags<Stretch>(
131  "stretch",
132  "tiled"
133  );
134  enum Font {
136  Font_mincho = 1
137  };
138  static constexpr auto kFontTags = makeEnumTags<Font>(
139  "gothic",
140  "mincho"
141  );
146  };
147  static constexpr auto kBattleFormationTags = makeEnumTags<BattleFormation>(
148  "terrain",
149  "loose",
150  "tight"
151  );
158  };
159  static constexpr auto kBattleConditionTags = makeEnumTags<BattleCondition>(
160  "none",
161  "initiative",
162  "back",
163  "surround",
164  "pincers"
165  );
169  };
170  static constexpr auto kEquipmentSettingTags = makeEnumTags<EquipmentSetting>(
171  "actor",
172  "class"
173  );
174 
175  System();
176  void Init();
177  int32_t ldb_id = 0;
178  std::string boat_name;
179  std::string ship_name;
180  std::string airship_name;
181  int32_t boat_index = 0;
182  int32_t ship_index = 0;
183  int32_t airship_index = 0;
184  std::string title_name;
185  std::string gameover_name;
186  std::string system_name;
187  std::string system2_name;
188  std::vector<int16_t> party;
189  std::vector<int16_t> menu_commands;
210  int32_t transition_out = 0;
211  int32_t transition_in = 0;
212  int32_t battle_start_fadeout = 0;
213  int32_t battle_start_fadein = 0;
214  int32_t battle_end_fadeout = 0;
215  int32_t battle_end_fadein = 0;
216  int32_t message_stretch = 0;
217  int32_t font_id = 0;
218  int32_t selected_condition = 0;
219  int32_t selected_hero = 0;
221  std::vector<TestBattler> battletest_data;
222  int32_t save_count = 0;
223  int32_t battletest_terrain = 0;
224  int32_t battletest_formation = 0;
225  int32_t battletest_condition = 0;
226  int32_t equipment_setting = 0;
228  bool show_frame = false;
229  std::string frame_name;
230  bool invert_animations = false;
231  bool show_title = true;
232  };
233 
234  inline bool operator==(const System& l, const System& r) {
235  return l.ldb_id == r.ldb_id
236  && l.boat_name == r.boat_name
237  && l.ship_name == r.ship_name
238  && l.airship_name == r.airship_name
239  && l.boat_index == r.boat_index
240  && l.ship_index == r.ship_index
241  && l.airship_index == r.airship_index
242  && l.title_name == r.title_name
243  && l.gameover_name == r.gameover_name
244  && l.system_name == r.system_name
245  && l.system2_name == r.system2_name
246  && l.party == r.party
247  && l.menu_commands == r.menu_commands
248  && l.title_music == r.title_music
249  && l.battle_music == r.battle_music
251  && l.inn_music == r.inn_music
252  && l.boat_music == r.boat_music
253  && l.ship_music == r.ship_music
254  && l.airship_music == r.airship_music
256  && l.cursor_se == r.cursor_se
257  && l.decision_se == r.decision_se
258  && l.cancel_se == r.cancel_se
259  && l.buzzer_se == r.buzzer_se
260  && l.battle_se == r.battle_se
261  && l.escape_se == r.escape_se
265  && l.dodge_se == r.dodge_se
267  && l.item_se == r.item_se
269  && l.transition_in == r.transition_in
275  && l.font_id == r.font_id
277  && l.selected_hero == r.selected_hero
280  && l.save_count == r.save_count
286  && l.show_frame == r.show_frame
287  && l.frame_name == r.frame_name
289  && l.show_title == r.show_title;
290  }
291 
292  inline bool operator!=(const System& l, const System& r) {
293  return !(l == r);
294  }
295 }
296 
297 #endif
RPG::System::FadeIn_horizontal_blinds
@ FadeIn_horizontal_blinds
Definition: rpg_system.h:86
RPG::System::airship_name
std::string airship_name
Definition: rpg_system.h:180
RPG::System::battletest_background
std::string battletest_background
Definition: rpg_system.h:220
RPG::System::boat_index
int32_t boat_index
Definition: rpg_system.h:181
RPG::System::BattleFormation
BattleFormation
Definition: rpg_system.h:142
RPG::System::FadeOut_venetian_blinds
@ FadeOut_venetian_blinds
Definition: rpg_system.h:36
RPG::System::Stretch_tiled
@ Stretch_tiled
Definition: rpg_system.h:128
RPG::System::FadeIn
FadeIn
Definition: rpg_system.h:78
RPG::System::cancel_se
Sound cancel_se
Definition: rpg_system.h:200
RPG::System::FadeIn_default
@ FadeIn_default
Definition: rpg_system.h:79
RPG::System::show_frame
bool show_frame
Definition: rpg_system.h:228
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
RPG::System::battle_end_fadein
int32_t battle_end_fadein
Definition: rpg_system.h:215
RPG::System::battletest_condition
int32_t battletest_condition
Definition: rpg_system.h:225
RPG::System::FadeOut_none
@ FadeOut_none
Definition: rpg_system.h:52
RPG::System::battle_end_music
Music battle_end_music
Definition: rpg_system.h:192
RPG::System::FadeIn_vertical_blinds
@ FadeIn_vertical_blinds
Definition: rpg_system.h:85
RPG::System::menu_commands
std::vector< int16_t > menu_commands
Definition: rpg_system.h:189
RPG::System::battle_start_fadeout
int32_t battle_start_fadeout
Definition: rpg_system.h:212
rpg_music.h
RPG::System::FadeOut_fade_out
@ FadeOut_fade_out
Definition: rpg_system.h:32
RPG::System::system_name
std::string system_name
Definition: rpg_system.h:186
RPG::System::FadeIn_screen_moves_right
@ FadeIn_screen_moves_right
Definition: rpg_system.h:91
RPG::System::transition_out
int32_t transition_out
Definition: rpg_system.h:210
RPG::System::kEquipmentSettingTags
static constexpr auto kEquipmentSettingTags
Definition: rpg_system.h:170
RPG::System::BattleCondition_initiative
@ BattleCondition_initiative
Definition: rpg_system.h:154
RPG::System::FadeIn_reconstitute_blocks
@ FadeIn_reconstitute_blocks
Definition: rpg_system.h:81
RPG::System::FadeIn_screen_moves_up
@ FadeIn_screen_moves_up
Definition: rpg_system.h:90
RPG::System::ship_music
Music ship_music
Definition: rpg_system.h:195
RPG::System::FadeIn_unify_quadrants
@ FadeIn_unify_quadrants
Definition: rpg_system.h:95
RPG::System::FadeIn_instantaneous
@ FadeIn_instantaneous
Definition: rpg_system.h:99
RPG::System::FadeIn_mosaic
@ FadeIn_mosaic
Definition: rpg_system.h:97
RPG::System::FadeOut_horizontal_blinds
@ FadeOut_horizontal_blinds
Definition: rpg_system.h:38
RPG::System::item_se
Sound item_se
Definition: rpg_system.h:209
RPG::System::Font_mincho
@ Font_mincho
Definition: rpg_system.h:136
RPG
Definition: rpg_actor.h:26
RPG::System::FadeIn_waver_screen
@ FadeIn_waver_screen
Definition: rpg_system.h:98
RPG::System::FadeOut_waver_screen
@ FadeOut_waver_screen
Definition: rpg_system.h:50
RPG::System::FadeOut_receding_square
@ FadeOut_receding_square
Definition: rpg_system.h:39
RPG::System::Stretch
Stretch
Definition: rpg_system.h:126
RPG::System::EquipmentSetting
EquipmentSetting
Definition: rpg_system.h:166
RPG::System::ship_index
int32_t ship_index
Definition: rpg_system.h:182
RPG::System::gameover_music
Music gameover_music
Definition: rpg_system.h:197
RPG::System::battletest_formation
int32_t battletest_formation
Definition: rpg_system.h:224
RPG::Sound
Definition: rpg_sound.h:23
RPG::System::FadeIn_receding_square
@ FadeIn_receding_square
Definition: rpg_system.h:87
RPG::System::BattleCondition_back
@ BattleCondition_back
Definition: rpg_system.h:155
RPG::System::save_count
int32_t save_count
Definition: rpg_system.h:222
RPG::System::Stretch_stretch
@ Stretch_stretch
Definition: rpg_system.h:127
RPG::System::frame_name
std::string frame_name
Definition: rpg_system.h:229
RPG::System::battletest_terrain
int32_t battletest_terrain
Definition: rpg_system.h:223
RPG::System::FadeOut_default
@ FadeOut_default
Definition: rpg_system.h:31
RPG::System::kBattleConditionTags
static constexpr auto kBattleConditionTags
Definition: rpg_system.h:159
RPG::System::FadeIn_unwipe_downward
@ FadeIn_unwipe_downward
Definition: rpg_system.h:82
RPG::System::system2_name
std::string system2_name
Definition: rpg_system.h:187
RPG::System::EquipmentSetting_actor
@ EquipmentSetting_actor
Definition: rpg_system.h:167
RPG::System::FadeIn_none
@ FadeIn_none
Definition: rpg_system.h:100
RPG::System::gameover_name
std::string gameover_name
Definition: rpg_system.h:185
RPG::System::FadeOut_screen_moves_down
@ FadeOut_screen_moves_down
Definition: rpg_system.h:42
RPG::System::FadeIn_vertical_unify
@ FadeIn_vertical_unify
Definition: rpg_system.h:93
RPG::System::show_title
bool show_title
Definition: rpg_system.h:231
RPG::System::selected_hero
int32_t selected_hero
Definition: rpg_system.h:219
RPG::System::FadeOut_mosaic
@ FadeOut_mosaic
Definition: rpg_system.h:49
RPG::System::FadeIn_zoom_out
@ FadeIn_zoom_out
Definition: rpg_system.h:96
RPG::System::kFadeOutTags
static constexpr auto kFadeOutTags
Definition: rpg_system.h:54
RPG::System::selected_condition
int32_t selected_condition
Definition: rpg_system.h:218
RPG::System::battletest_alt_terrain
int32_t battletest_alt_terrain
Definition: rpg_system.h:227
RPG::System::Init
void Init()
Definition: rpg_setup.cpp:181
RPG::System::battle_music
Music battle_music
Definition: rpg_system.h:191
RPG::Music
Definition: rpg_music.h:23
RPG::System::FadeOut
FadeOut
Definition: rpg_system.h:30
RPG::System::BattleCondition
BattleCondition
Definition: rpg_system.h:152
RPG::System::FadeIn_expanding_square
@ FadeIn_expanding_square
Definition: rpg_system.h:88
RPG::System::battle_start_fadein
int32_t battle_start_fadein
Definition: rpg_system.h:213
RPG::System::battle_end_fadeout
int32_t battle_end_fadeout
Definition: rpg_system.h:214
RPG::System::FadeOut_vertical_div
@ FadeOut_vertical_div
Definition: rpg_system.h:45
RPG::System::FadeOut_instantaneous
@ FadeOut_instantaneous
Definition: rpg_system.h:51
RPG::System::FadeOut_horizontal_div
@ FadeOut_horizontal_div
Definition: rpg_system.h:46
RPG::System::FadeOut_remove_blocks
@ FadeOut_remove_blocks
Definition: rpg_system.h:33
RPG::System::FadeOut_expanding_square
@ FadeOut_expanding_square
Definition: rpg_system.h:40
RPG::System::BattleCondition_surround
@ BattleCondition_surround
Definition: rpg_system.h:156
RPG::System::actor_damaged_se
Sound actor_damaged_se
Definition: rpg_system.h:206
RPG::System::boat_music
Music boat_music
Definition: rpg_system.h:194
RPG::System::FadeOut_quadrasection
@ FadeOut_quadrasection
Definition: rpg_system.h:47
RPG::System::enemy_damaged_se
Sound enemy_damaged_se
Definition: rpg_system.h:205
RPG::System::title_name
std::string title_name
Definition: rpg_system.h:184
RPG::System::transition_in
int32_t transition_in
Definition: rpg_system.h:211
RPG::System::FadeOut_screen_moves_left
@ FadeOut_screen_moves_left
Definition: rpg_system.h:43
RPG::System::EquipmentSetting_class
@ EquipmentSetting_class
Definition: rpg_system.h:168
rpg_sound.h
RPG::System::BattleFormation_loose
@ BattleFormation_loose
Definition: rpg_system.h:144
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98
RPG::System::Font_gothic
@ Font_gothic
Definition: rpg_system.h:135
RPG::System::kFontTags
static constexpr auto kFontTags
Definition: rpg_system.h:138
RPG::System::FadeIn_horizontal_unify
@ FadeIn_horizontal_unify
Definition: rpg_system.h:94
RPG::System::boat_name
std::string boat_name
Definition: rpg_system.h:178
RPG::System::FadeOut_zoom_in
@ FadeOut_zoom_in
Definition: rpg_system.h:48
RPG::System::invert_animations
bool invert_animations
Definition: rpg_system.h:230
RPG::System::Font
Font
Definition: rpg_system.h:134
RPG::System::enemy_death_se
Sound enemy_death_se
Definition: rpg_system.h:208
RPG::System::FadeOut_vertical_blinds
@ FadeOut_vertical_blinds
Definition: rpg_system.h:37
RPG::System
Definition: rpg_system.h:28
RPG::System::airship_index
int32_t airship_index
Definition: rpg_system.h:183
RPG::System::FadeOut_screen_moves_up
@ FadeOut_screen_moves_up
Definition: rpg_system.h:41
RPG::System::FadeOut_wipe_upward
@ FadeOut_wipe_upward
Definition: rpg_system.h:35
RPG::System::ship_name
std::string ship_name
Definition: rpg_system.h:179
RPG::System::FadeIn_fade_in
@ FadeIn_fade_in
Definition: rpg_system.h:80
RPG::System::System
System()
Definition: rpg_system.cpp:18
RPG::System::battle_se
Sound battle_se
Definition: rpg_system.h:202
RPG::System::ldb_id
int32_t ldb_id
Definition: rpg_system.h:177
RPG::System::BattleCondition_pincers
@ BattleCondition_pincers
Definition: rpg_system.h:157
RPG::System::buzzer_se
Sound buzzer_se
Definition: rpg_system.h:201
RPG::System::cursor_se
Sound cursor_se
Definition: rpg_system.h:198
RPG::System::FadeIn_screen_moves_left
@ FadeIn_screen_moves_left
Definition: rpg_system.h:92
RPG::System::FadeOut_wipe_downward
@ FadeOut_wipe_downward
Definition: rpg_system.h:34
RPG::System::escape_se
Sound escape_se
Definition: rpg_system.h:203
RPG::System::party
std::vector< int16_t > party
Definition: rpg_system.h:188
RPG::System::decision_se
Sound decision_se
Definition: rpg_system.h:199
RPG::System::FadeOut_screen_moves_right
@ FadeOut_screen_moves_right
Definition: rpg_system.h:44
RPG::System::kStretchTags
static constexpr auto kStretchTags
Definition: rpg_system.h:130
RPG::System::FadeIn_screen_moves_down
@ FadeIn_screen_moves_down
Definition: rpg_system.h:89
RPG::System::message_stretch
int32_t message_stretch
Definition: rpg_system.h:216
RPG::System::enemy_attack_se
Sound enemy_attack_se
Definition: rpg_system.h:204
RPG::System::dodge_se
Sound dodge_se
Definition: rpg_system.h:207
RPG::System::title_music
Music title_music
Definition: rpg_system.h:190
RPG::System::kFadeInTags
static constexpr auto kFadeInTags
Definition: rpg_system.h:102
RPG::System::FadeIn_venetian_blinds
@ FadeIn_venetian_blinds
Definition: rpg_system.h:84
rpg_testbattler.h
RPG::System::equipment_setting
int32_t equipment_setting
Definition: rpg_system.h:226
RPG::System::kBattleFormationTags
static constexpr auto kBattleFormationTags
Definition: rpg_system.h:147
RPG::System::BattleFormation_terrain
@ BattleFormation_terrain
Definition: rpg_system.h:143
RPG::System::inn_music
Music inn_music
Definition: rpg_system.h:193
RPG::System::font_id
int32_t font_id
Definition: rpg_system.h:217
RPG::System::battletest_data
std::vector< TestBattler > battletest_data
Definition: rpg_system.h:221
RPG::System::BattleCondition_none
@ BattleCondition_none
Definition: rpg_system.h:153
enum_tags.h
RPG::System::BattleFormation_tight
@ BattleFormation_tight
Definition: rpg_system.h:145
RPG::System::FadeIn_unwipe_upward
@ FadeIn_unwipe_upward
Definition: rpg_system.h:83
RPG::System::airship_music
Music airship_music
Definition: rpg_system.h:196