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 {
25  public:
26  enum FlashScope {
30  };
31  static constexpr auto kFlashScopeTags = makeEnumTags<FlashScope>(
32  "nothing",
33  "target",
34  "screen"
35  );
36  enum ScreenShake {
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;
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
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
static constexpr auto kScreenShakeTags
Definition: rpg_actor.h:26
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98
static constexpr auto kFlashScopeTags