liblcf
Loading...
Searching...
No Matches
rpg_battlecommand.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_BATTLECOMMAND_H
13#define LCF_RPG_BATTLECOMMAND_H
14
15// Headers
16#include <string>
17#include "enum_tags.h"
18
22namespace RPG {
24 public:
25 enum Type {
32 Type_special = 6
33 };
34 static constexpr auto kTypeTags = makeEnumTags<Type>(
35 "attack",
36 "skill",
37 "subskill",
38 "defense",
39 "item",
40 "escape",
41 "special"
42 );
43
44 int ID = 0;
45 std::string name;
46 int32_t type = 0;
47 };
48
49 inline bool operator==(const BattleCommand& l, const BattleCommand& r) {
50 return l.name == r.name
51 && l.type == r.type;
52 }
53
54 inline bool operator!=(const BattleCommand& l, const BattleCommand& r) {
55 return !(l == r);
56 }
57}
58
59#endif
static constexpr auto kTypeTags
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