liblcf
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
22
namespace
RPG
{
23
class
BattleCommand
{
24
public
:
25
enum
Type
{
26
Type_attack
= 0,
27
Type_skill
= 1,
28
Type_subskill
= 2,
29
Type_defense
= 3,
30
Type_item
= 4,
31
Type_escape
= 5,
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
RPG::BattleCommand
Definition:
rpg_battlecommand.h:23
RPG::BattleCommand::kTypeTags
static constexpr auto kTypeTags
Definition:
rpg_battlecommand.h:34
RPG::BattleCommand::name
std::string name
Definition:
rpg_battlecommand.h:45
RPG::BattleCommand::ID
int ID
Definition:
rpg_battlecommand.h:44
RPG::BattleCommand::Type
Type
Definition:
rpg_battlecommand.h:25
RPG::BattleCommand::Type_skill
@ Type_skill
Definition:
rpg_battlecommand.h:27
RPG::BattleCommand::Type_escape
@ Type_escape
Definition:
rpg_battlecommand.h:31
RPG::BattleCommand::Type_special
@ Type_special
Definition:
rpg_battlecommand.h:32
RPG::BattleCommand::Type_item
@ Type_item
Definition:
rpg_battlecommand.h:30
RPG::BattleCommand::Type_defense
@ Type_defense
Definition:
rpg_battlecommand.h:29
RPG::BattleCommand::Type_subskill
@ Type_subskill
Definition:
rpg_battlecommand.h:28
RPG::BattleCommand::Type_attack
@ Type_attack
Definition:
rpg_battlecommand.h:26
RPG::BattleCommand::type
int32_t type
Definition:
rpg_battlecommand.h:46
enum_tags.h
RPG
Definition:
rpg_actor.h:26
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:64
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:98
src
generated
rpg_battlecommand.h
Generated on Thu Jul 29 2021 00:00:00 for liblcf by
1.9.1