liblcf
rpg_itemanimation.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_ITEMANIMATION_H
13 #define LCF_RPG_ITEMANIMATION_H
14 
15 // Headers
16 #include <stdint.h>
17 #include "enum_tags.h"
18 
22 namespace RPG {
23  class ItemAnimation {
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  enum Speed {
48  Speed_slow = 2
49  };
50  static constexpr auto kSpeedTags = makeEnumTags<Speed>(
51  "fast",
52  "medium",
53  "slow"
54  );
55 
56  int ID = 0;
57  int32_t type = 0;
58  int32_t weapon_anim = 0;
59  int32_t movement = 0;
60  int32_t after_image = 0;
61  int32_t attacks = 0;
62  bool ranged = false;
63  int32_t ranged_anim = 0;
64  int32_t ranged_speed = 0;
65  int32_t battle_anim = 0;
66  };
67 
68  inline bool operator==(const ItemAnimation& l, const ItemAnimation& r) {
69  return l.type == r.type
70  && l.weapon_anim == r.weapon_anim
71  && l.movement == r.movement
72  && l.after_image == r.after_image
73  && l.attacks == r.attacks
74  && l.ranged == r.ranged
75  && l.ranged_anim == r.ranged_anim
76  && l.ranged_speed == r.ranged_speed
77  && l.battle_anim == r.battle_anim;
78  }
79 
80  inline bool operator!=(const ItemAnimation& l, const ItemAnimation& r) {
81  return !(l == r);
82  }
83 }
84 
85 #endif
RPG::ItemAnimation::type
int32_t type
Definition: rpg_itemanimation.h:57
RPG::ItemAnimation::AfterImage
AfterImage
Definition: rpg_itemanimation.h:37
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
RPG::ItemAnimation::Movement_none
@ Movement_none
Definition: rpg_itemanimation.h:26
RPG::ItemAnimation::Movement_step
@ Movement_step
Definition: rpg_itemanimation.h:27
RPG::ItemAnimation
Definition: rpg_itemanimation.h:23
RPG::ItemAnimation::attacks
int32_t attacks
Definition: rpg_itemanimation.h:61
RPG
Definition: rpg_actor.h:26
RPG::ItemAnimation::ranged_speed
int32_t ranged_speed
Definition: rpg_itemanimation.h:64
RPG::ItemAnimation::Speed_fast
@ Speed_fast
Definition: rpg_itemanimation.h:46
RPG::ItemAnimation::Speed
Speed
Definition: rpg_itemanimation.h:45
RPG::ItemAnimation::ranged_anim
int32_t ranged_anim
Definition: rpg_itemanimation.h:63
RPG::ItemAnimation::movement
int32_t movement
Definition: rpg_itemanimation.h:59
RPG::ItemAnimation::Movement_move
@ Movement_move
Definition: rpg_itemanimation.h:29
RPG::ItemAnimation::AfterImage_add
@ AfterImage_add
Definition: rpg_itemanimation.h:39
RPG::ItemAnimation::Speed_slow
@ Speed_slow
Definition: rpg_itemanimation.h:48
RPG::ItemAnimation::ranged
bool ranged
Definition: rpg_itemanimation.h:62
RPG::ItemAnimation::kSpeedTags
static constexpr auto kSpeedTags
Definition: rpg_itemanimation.h:50
RPG::ItemAnimation::Movement_jump
@ Movement_jump
Definition: rpg_itemanimation.h:28
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98
RPG::ItemAnimation::Speed_medium
@ Speed_medium
Definition: rpg_itemanimation.h:47
RPG::ItemAnimation::ID
int ID
Definition: rpg_itemanimation.h:56
RPG::ItemAnimation::battle_anim
int32_t battle_anim
Definition: rpg_itemanimation.h:65
RPG::ItemAnimation::kAfterImageTags
static constexpr auto kAfterImageTags
Definition: rpg_itemanimation.h:41
RPG::ItemAnimation::after_image
int32_t after_image
Definition: rpg_itemanimation.h:60
RPG::ItemAnimation::AfterImage_none
@ AfterImage_none
Definition: rpg_itemanimation.h:38
RPG::ItemAnimation::kMovementTags
static constexpr auto kMovementTags
Definition: rpg_itemanimation.h:31
RPG::ItemAnimation::weapon_anim
int32_t weapon_anim
Definition: rpg_itemanimation.h:58
enum_tags.h
RPG::ItemAnimation::Movement
Movement
Definition: rpg_itemanimation.h:25