liblcf
Loading...
Searching...
No Matches
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
22namespace RPG {
24 public:
25 enum Movement {
30 };
31 static constexpr auto kMovementTags = makeEnumTags<Movement>(
32 "none",
33 "step",
34 "jump",
35 "move"
36 );
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
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
static constexpr auto kSpeedTags
static constexpr auto kAfterImageTags
static constexpr auto kMovementTags
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