liblcf
rpg_battleranimationdata.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_BATTLERANIMATIONDATA_H
13 #define LCF_RPG_BATTLERANIMATIONDATA_H
14 
15 // Headers
16 #include <stdint.h>
17 #include "enum_tags.h"
18 
22 namespace RPG {
24  public:
25  enum Movement {
29  Movement_move = 3
30  };
31  static constexpr auto kMovementTags = makeEnumTags<Movement>(
32  "none",
33  "step",
34  "jump",
35  "move"
36  );
37  enum AfterImage {
39  AfterImage_add = 1
40  };
41  static constexpr auto kAfterImageTags = makeEnumTags<AfterImage>(
42  "none",
43  "add"
44  );
45 
46  int ID = 0;
47  int32_t move = 0;
48  int32_t after_image = 0;
49  int32_t pose = -1;
50  };
51 
52  inline bool operator==(const BattlerAnimationData& l, const BattlerAnimationData& r) {
53  return l.move == r.move
54  && l.after_image == r.after_image
55  && l.pose == r.pose;
56  }
57 
58  inline bool operator!=(const BattlerAnimationData& l, const BattlerAnimationData& r) {
59  return !(l == r);
60  }
61 }
62 
63 #endif
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
RPG::BattlerAnimationData::AfterImage
AfterImage
Definition: rpg_battleranimationdata.h:37
RPG
Definition: rpg_actor.h:26
RPG::BattlerAnimationData::Movement_step
@ Movement_step
Definition: rpg_battleranimationdata.h:27
RPG::BattlerAnimationData::Movement_move
@ Movement_move
Definition: rpg_battleranimationdata.h:29
RPG::BattlerAnimationData::after_image
int32_t after_image
Definition: rpg_battleranimationdata.h:48
RPG::BattlerAnimationData::Movement_jump
@ Movement_jump
Definition: rpg_battleranimationdata.h:28
RPG::BattlerAnimationData::kMovementTags
static constexpr auto kMovementTags
Definition: rpg_battleranimationdata.h:31
RPG::BattlerAnimationData::kAfterImageTags
static constexpr auto kAfterImageTags
Definition: rpg_battleranimationdata.h:41
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98
RPG::BattlerAnimationData::Movement
Movement
Definition: rpg_battleranimationdata.h:25
RPG::BattlerAnimationData::ID
int ID
Definition: rpg_battleranimationdata.h:46
RPG::BattlerAnimationData::move
int32_t move
Definition: rpg_battleranimationdata.h:47
RPG::BattlerAnimationData::pose
int32_t pose
Definition: rpg_battleranimationdata.h:49
RPG::BattlerAnimationData
Definition: rpg_battleranimationdata.h:23
RPG::BattlerAnimationData::Movement_none
@ Movement_none
Definition: rpg_battleranimationdata.h:26
RPG::BattlerAnimationData::AfterImage_none
@ AfterImage_none
Definition: rpg_battleranimationdata.h:38
enum_tags.h
RPG::BattlerAnimationData::AfterImage_add
@ AfterImage_add
Definition: rpg_battleranimationdata.h:39