liblcf
rpg_animation.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_ANIMATION_H
13
#define LCF_RPG_ANIMATION_H
14
15
// Headers
16
#include <string>
17
#include <vector>
18
#include "
enum_tags.h
"
19
#include "
rpg_animationframe.h
"
20
#include "
rpg_animationtiming.h
"
21
25
namespace
RPG
{
26
class
Animation
{
27
public
:
28
enum
Scope
{
29
Scope_target
= 0,
30
Scope_screen
= 1
31
};
32
static
constexpr
auto
kScopeTags
= makeEnumTags<Scope>(
33
"target"
,
34
"screen"
35
);
36
enum
Position
{
37
Position_up
= 0,
38
Position_middle
= 1,
39
Position_down
= 2
40
};
41
static
constexpr
auto
kPositionTags
= makeEnumTags<Position>(
42
"up"
,
43
"middle"
,
44
"down"
45
);
46
47
int
ID
= 0;
48
std::string
name
;
49
std::string
animation_name
;
50
bool
large
=
false
;
51
std::vector<AnimationTiming>
timings
;
52
int32_t
scope
= 0;
53
int32_t
position
= 2;
54
std::vector<AnimationFrame>
frames
;
55
};
56
57
inline
bool
operator==
(
const
Animation
& l,
const
Animation
& r) {
58
return
l.
name
== r.
name
59
&& l.
animation_name
== r.
animation_name
60
&& l.
large
== r.
large
61
&& l.
timings
== r.
timings
62
&& l.
scope
== r.
scope
63
&& l.
position
== r.
position
64
&& l.
frames
== r.
frames
;
65
}
66
67
inline
bool
operator!=
(
const
Animation
& l,
const
Animation
& r) {
68
return
!(l == r);
69
}
70
}
71
72
#endif
RPG::Animation::animation_name
std::string animation_name
Definition:
rpg_animation.h:49
RPG::Animation::Position
Position
Definition:
rpg_animation.h:36
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:64
rpg_animationframe.h
RPG::Animation::Position_middle
@ Position_middle
Definition:
rpg_animation.h:38
RPG::Animation::kPositionTags
static constexpr auto kPositionTags
Definition:
rpg_animation.h:41
RPG
Definition:
rpg_actor.h:26
RPG::Animation::position
int32_t position
Definition:
rpg_animation.h:53
RPG::Animation::Scope_screen
@ Scope_screen
Definition:
rpg_animation.h:30
RPG::Animation::frames
std::vector< AnimationFrame > frames
Definition:
rpg_animation.h:54
RPG::Animation::ID
int ID
Definition:
rpg_animation.h:47
RPG::Animation::Scope_target
@ Scope_target
Definition:
rpg_animation.h:29
RPG::Animation::Position_down
@ Position_down
Definition:
rpg_animation.h:39
RPG::Animation
Definition:
rpg_animation.h:26
RPG::Animation::kScopeTags
static constexpr auto kScopeTags
Definition:
rpg_animation.h:32
RPG::Animation::scope
int32_t scope
Definition:
rpg_animation.h:52
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:98
RPG::Animation::large
bool large
Definition:
rpg_animation.h:50
RPG::Animation::Position_up
@ Position_up
Definition:
rpg_animation.h:37
RPG::Animation::timings
std::vector< AnimationTiming > timings
Definition:
rpg_animation.h:51
rpg_animationtiming.h
RPG::Animation::name
std::string name
Definition:
rpg_animation.h:48
RPG::Animation::Scope
Scope
Definition:
rpg_animation.h:28
enum_tags.h
src
generated
rpg_animation.h
Generated on Sun Aug 2 2020 00:00:00 for liblcf by
1.8.18