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 {
30  };
31  static constexpr auto kMovementTags = makeEnumTags<Movement>(
32  "none",
33  "step",
34  "jump",
35  "move"
36  );
37  enum AfterImage {
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
static constexpr auto kAfterImageTags
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
Definition: rpg_actor.h:26
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98
static constexpr auto kMovementTags