liblcf
Loading...
Searching...
No Matches
rpg_savepartylocation.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_SAVEPARTYLOCATION_H
13#define LCF_RPG_SAVEPARTYLOCATION_H
14
15// Headers
17#include <stdint.h>
18#include "enum_tags.h"
19
23namespace RPG {
25 public:
26 // Equal to 9 tiles in 1/16th pixels
27 static constexpr int kPanXDefault = 9 * 256;
28 // Equal to 7 tiles in 1/16th pixels
29 static constexpr int kPanYDefault = 7 * 256;
30 // Frame speed in 1/16th pixels
31 static constexpr int kPanSpeedDefault = 2 << 3;
32
38 };
39 static constexpr auto kVehicleTypeTags = makeEnumTags<VehicleType>(
40 "none",
41 "skiff",
42 "ship",
43 "airship"
44 );
45 enum PanState {
48 };
49 static constexpr auto kPanStateTags = makeEnumTags<PanState>(
50 "fixed",
51 "follow"
52 );
53
54 bool boarding = false;
55 bool aboard = false;
56 int32_t vehicle = 0;
57 bool unboarding = false;
59 bool menu_calling = false;
60 int32_t pan_state = 1;
66 int32_t encounter_steps = 0;
67 bool encounter_calling = false;
68 int32_t map_save_count = 0;
70 };
71
72 inline bool operator==(const SavePartyLocation& l, const SavePartyLocation& r) {
73 return l.boarding == r.boarding
74 && l.aboard == r.aboard
75 && l.vehicle == r.vehicle
76 && l.unboarding == r.unboarding
79 && l.pan_state == r.pan_state
84 && l.pan_speed == r.pan_speed
89 }
90
91 inline bool operator!=(const SavePartyLocation& l, const SavePartyLocation& r) {
92 return !(l == r);
93 }
94}
95
96#endif
static constexpr auto kVehicleTypeTags
static constexpr int kPanYDefault
static constexpr auto kPanStateTags
static constexpr int kPanSpeedDefault
static constexpr int kPanXDefault
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