liblcf
Loading...
Searching...
No Matches
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
24namespace RPG {
26 public:
27 enum Placement {
30 };
31 static constexpr auto kPlacementTags = makeEnumTags<Placement>(
32 "manual",
33 "automatic"
34 );
35 enum RowShown {
38 };
39 static constexpr auto kRowShownTags = makeEnumTags<RowShown>(
40 "front",
41 "back"
42 );
47 };
48 static constexpr auto kBattleTypeTags = makeEnumTags<BattleType>(
49 "traditional",
50 "alternative",
51 "gauge"
52 );
56 };
57 static constexpr auto kWindowSizeTags = makeEnumTags<WindowSize>(
58 "large",
59 "small"
60 );
64 };
65 static constexpr auto kTransparencyTags = makeEnumTags<Transparency>(
66 "opaque",
67 "transparent"
68 );
69 enum Facing {
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;
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
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
static constexpr auto kRowShownTags
static constexpr auto kTransparencyTags
static constexpr auto kBattleTypeTags
static constexpr auto kPlacementTags
static constexpr auto kFacingTags
std::vector< BattleCommand > commands
static constexpr auto kWindowSizeTags
Definition: rpg_actor.h:26
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98