liblcf
rpg_battlecommands.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_BATTLECOMMANDS_H
13 #define LCF_RPG_BATTLECOMMANDS_H
14 
15 // Headers
16 #include <stdint.h>
17 #include <vector>
18 #include "enum_tags.h"
19 #include "rpg_battlecommand.h"
20 
24 namespace RPG {
26  public:
27  enum Placement {
30  };
31  static constexpr auto kPlacementTags = makeEnumTags<Placement>(
32  "manual",
33  "automatic"
34  );
35  enum RowShown {
37  RowShown_back = 1
38  };
39  static constexpr auto kRowShownTags = makeEnumTags<RowShown>(
40  "front",
41  "back"
42  );
43  enum BattleType {
47  };
48  static constexpr auto kBattleTypeTags = makeEnumTags<BattleType>(
49  "traditional",
50  "alternative",
51  "gauge"
52  );
53  enum WindowSize {
56  };
57  static constexpr auto kWindowSizeTags = makeEnumTags<WindowSize>(
58  "large",
59  "small"
60  );
61  enum Transparency {
64  };
65  static constexpr auto kTransparencyTags = makeEnumTags<Transparency>(
66  "opaque",
67  "transparent"
68  );
69  enum Facing {
71  Facing_up = 1,
74  Facing_left = 4
75  };
76  static constexpr auto kFacingTags = makeEnumTags<Facing>(
77  "retain",
78  "up",
79  "right",
80  "down",
81  "left"
82  );
83 
84  int32_t placement = 0;
86  int32_t row = 0;
87  int32_t battle_type = 0;
89  std::vector<BattleCommand> commands;
90  bool death_handler = 0;
91  int32_t death_event = 1;
92  int32_t window_size = 0;
93  int32_t transparency = 0;
94  bool death_teleport = false;
95  int32_t death_teleport_id = 1;
96  int32_t death_teleport_x = 0;
97  int32_t death_teleport_y = 0;
98  int32_t death_teleport_face = 0;
99  };
100 
101  inline bool operator==(const BattleCommands& l, const BattleCommands& r) {
102  return l.placement == r.placement
104  && l.row == r.row
105  && l.battle_type == r.battle_type
107  && l.commands == r.commands
108  && l.death_handler == r.death_handler
109  && l.death_event == r.death_event
110  && l.window_size == r.window_size
111  && l.transparency == r.transparency
117  }
118 
119  inline bool operator!=(const BattleCommands& l, const BattleCommands& r) {
120  return !(l == r);
121  }
122 }
123 
124 #endif
RPG::BattleCommands::unused_display_normal_parameters
bool unused_display_normal_parameters
Definition: rpg_battlecommands.h:88
RPG::BattleCommands::Transparency
Transparency
Definition: rpg_battlecommands.h:61
RPG::BattleCommands::Transparency_opaque
@ Transparency_opaque
Definition: rpg_battlecommands.h:62
RPG::BattleCommands::Facing_left
@ Facing_left
Definition: rpg_battlecommands.h:74
RPG::BattleCommands::battle_type
int32_t battle_type
Definition: rpg_battlecommands.h:87
RPG::BattleCommands::death_teleport_id
int32_t death_teleport_id
Definition: rpg_battlecommands.h:95
RPG::BattleCommands::WindowSize
WindowSize
Definition: rpg_battlecommands.h:53
RPG::BattleCommands::BattleType_alternative
@ BattleType_alternative
Definition: rpg_battlecommands.h:45
RPG::BattleCommands::death_handler
bool death_handler
Definition: rpg_battlecommands.h:90
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
RPG::BattleCommands::commands
std::vector< BattleCommand > commands
Definition: rpg_battlecommands.h:89
RPG::BattleCommands::Placement_manual
@ Placement_manual
Definition: rpg_battlecommands.h:28
RPG::BattleCommands::kFacingTags
static constexpr auto kFacingTags
Definition: rpg_battlecommands.h:76
RPG::BattleCommands::death_teleport_y
int32_t death_teleport_y
Definition: rpg_battlecommands.h:97
RPG::BattleCommands::WindowSize_small
@ WindowSize_small
Definition: rpg_battlecommands.h:55
RPG
Definition: rpg_actor.h:26
RPG::BattleCommands::kBattleTypeTags
static constexpr auto kBattleTypeTags
Definition: rpg_battlecommands.h:48
RPG::BattleCommands::RowShown_front
@ RowShown_front
Definition: rpg_battlecommands.h:36
RPG::BattleCommands::Transparency_transparent
@ Transparency_transparent
Definition: rpg_battlecommands.h:63
RPG::BattleCommands::Placement
Placement
Definition: rpg_battlecommands.h:27
RPG::BattleCommands::BattleType_gauge
@ BattleType_gauge
Definition: rpg_battlecommands.h:46
RPG::BattleCommands::RowShown_back
@ RowShown_back
Definition: rpg_battlecommands.h:37
RPG::BattleCommands::death_teleport_x
int32_t death_teleport_x
Definition: rpg_battlecommands.h:96
RPG::BattleCommands::placement
int32_t placement
Definition: rpg_battlecommands.h:84
RPG::BattleCommands::window_size
int32_t window_size
Definition: rpg_battlecommands.h:92
RPG::BattleCommands::Facing_down
@ Facing_down
Definition: rpg_battlecommands.h:73
RPG::BattleCommands::kRowShownTags
static constexpr auto kRowShownTags
Definition: rpg_battlecommands.h:39
RPG::BattleCommands::death_teleport_face
int32_t death_teleport_face
Definition: rpg_battlecommands.h:98
RPG::BattleCommands::transparency
int32_t transparency
Definition: rpg_battlecommands.h:93
RPG::BattleCommands::Facing_retain
@ Facing_retain
Definition: rpg_battlecommands.h:70
RPG::BattleCommands::death_teleport
bool death_teleport
Definition: rpg_battlecommands.h:94
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98
RPG::BattleCommands::RowShown
RowShown
Definition: rpg_battlecommands.h:35
RPG::BattleCommands::Facing
Facing
Definition: rpg_battlecommands.h:69
RPG::BattleCommands::BattleType_traditional
@ BattleType_traditional
Definition: rpg_battlecommands.h:44
RPG::BattleCommands::Facing_up
@ Facing_up
Definition: rpg_battlecommands.h:71
RPG::BattleCommands::row
int32_t row
Definition: rpg_battlecommands.h:86
RPG::BattleCommands::death_handler_unused
bool death_handler_unused
Definition: rpg_battlecommands.h:85
RPG::BattleCommands::BattleType
BattleType
Definition: rpg_battlecommands.h:43
RPG::BattleCommands::WindowSize_large
@ WindowSize_large
Definition: rpg_battlecommands.h:54
rpg_battlecommand.h
RPG::BattleCommands::kWindowSizeTags
static constexpr auto kWindowSizeTags
Definition: rpg_battlecommands.h:57
RPG::BattleCommands::kTransparencyTags
static constexpr auto kTransparencyTags
Definition: rpg_battlecommands.h:65
RPG::BattleCommands::Placement_automatic
@ Placement_automatic
Definition: rpg_battlecommands.h:29
RPG::BattleCommands
Definition: rpg_battlecommands.h:25
RPG::BattleCommands::death_event
int32_t death_event
Definition: rpg_battlecommands.h:91
RPG::BattleCommands::kPlacementTags
static constexpr auto kPlacementTags
Definition: rpg_battlecommands.h:31
RPG::BattleCommands::Facing_right
@ Facing_right
Definition: rpg_battlecommands.h:72
enum_tags.h