liblcf
rpg_animationtiming.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_ANIMATIONTIMING_H
13
#define LCF_RPG_ANIMATIONTIMING_H
14
15
// Headers
16
#include <stdint.h>
17
#include "
enum_tags.h
"
18
#include "
rpg_sound.h
"
19
23
namespace
RPG
{
24
class
AnimationTiming
{
25
public
:
26
enum
FlashScope
{
27
FlashScope_nothing
= 0,
28
FlashScope_target
= 1,
29
FlashScope_screen
= 2
30
};
31
static
constexpr
auto
kFlashScopeTags
= makeEnumTags<FlashScope>(
32
"nothing"
,
33
"target"
,
34
"screen"
35
);
36
enum
ScreenShake
{
37
ScreenShake_nothing
= 0,
38
ScreenShake_target
= 1,
39
ScreenShake_screen
= 2
40
};
41
static
constexpr
auto
kScreenShakeTags
= makeEnumTags<ScreenShake>(
42
"nothing"
,
43
"target"
,
44
"screen"
45
);
46
47
int
ID
= 0;
48
int32_t
frame
= 0;
49
Sound
se
;
50
int32_t
flash_scope
= 0;
51
int32_t
flash_red
= 31;
52
int32_t
flash_green
= 31;
53
int32_t
flash_blue
= 31;
54
int32_t
flash_power
= 31;
55
int32_t
screen_shake
= 0;
56
};
57
58
inline
bool
operator==
(
const
AnimationTiming
& l,
const
AnimationTiming
& r) {
59
return
l.
frame
== r.
frame
60
&& l.
se
== r.
se
61
&& l.
flash_scope
== r.
flash_scope
62
&& l.
flash_red
== r.
flash_red
63
&& l.
flash_green
== r.
flash_green
64
&& l.
flash_blue
== r.
flash_blue
65
&& l.
flash_power
== r.
flash_power
66
&& l.
screen_shake
== r.
screen_shake
;
67
}
68
69
inline
bool
operator!=
(
const
AnimationTiming
& l,
const
AnimationTiming
& r) {
70
return
!(l == r);
71
}
72
}
73
74
#endif
RPG::AnimationTiming
Definition:
rpg_animationtiming.h:24
RPG::AnimationTiming::FlashScope
FlashScope
Definition:
rpg_animationtiming.h:26
RPG::AnimationTiming::FlashScope_nothing
@ FlashScope_nothing
Definition:
rpg_animationtiming.h:27
RPG::AnimationTiming::FlashScope_screen
@ FlashScope_screen
Definition:
rpg_animationtiming.h:29
RPG::AnimationTiming::FlashScope_target
@ FlashScope_target
Definition:
rpg_animationtiming.h:28
RPG::AnimationTiming::flash_red
int32_t flash_red
Definition:
rpg_animationtiming.h:51
RPG::AnimationTiming::flash_green
int32_t flash_green
Definition:
rpg_animationtiming.h:52
RPG::AnimationTiming::flash_scope
int32_t flash_scope
Definition:
rpg_animationtiming.h:50
RPG::AnimationTiming::kScreenShakeTags
static constexpr auto kScreenShakeTags
Definition:
rpg_animationtiming.h:41
RPG::AnimationTiming::ScreenShake
ScreenShake
Definition:
rpg_animationtiming.h:36
RPG::AnimationTiming::ScreenShake_screen
@ ScreenShake_screen
Definition:
rpg_animationtiming.h:39
RPG::AnimationTiming::ScreenShake_target
@ ScreenShake_target
Definition:
rpg_animationtiming.h:38
RPG::AnimationTiming::ScreenShake_nothing
@ ScreenShake_nothing
Definition:
rpg_animationtiming.h:37
RPG::AnimationTiming::screen_shake
int32_t screen_shake
Definition:
rpg_animationtiming.h:55
RPG::AnimationTiming::kFlashScopeTags
static constexpr auto kFlashScopeTags
Definition:
rpg_animationtiming.h:31
RPG::AnimationTiming::se
Sound se
Definition:
rpg_animationtiming.h:49
RPG::AnimationTiming::ID
int ID
Definition:
rpg_animationtiming.h:47
RPG::AnimationTiming::frame
int32_t frame
Definition:
rpg_animationtiming.h:48
RPG::AnimationTiming::flash_blue
int32_t flash_blue
Definition:
rpg_animationtiming.h:53
RPG::AnimationTiming::flash_power
int32_t flash_power
Definition:
rpg_animationtiming.h:54
RPG::Sound
Definition:
rpg_sound.h:23
enum_tags.h
RPG
Definition:
rpg_actor.h:26
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:64
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:98
rpg_sound.h
src
generated
rpg_animationtiming.h
Generated on Tue Jan 26 2021 00:00:00 for liblcf by
1.9.1