liblcf
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
16
#include "
rpg_savemapeventbase.h
"
17
#include <stdint.h>
18
#include "
enum_tags.h
"
19
23
namespace
RPG
{
24
class
SavePartyLocation
:
public
SaveMapEventBase
{
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
33
enum
VehicleType
{
34
VehicleType_none
= 0,
35
VehicleType_skiff
= 1,
36
VehicleType_ship
= 2,
37
VehicleType_airship
= 3
38
};
39
static
constexpr
auto
kVehicleTypeTags
= makeEnumTags<VehicleType>(
40
"none"
,
41
"skiff"
,
42
"ship"
,
43
"airship"
44
);
45
enum
PanState
{
46
PanState_fixed
= 0,
47
PanState_follow
= 1
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
;
58
int32_t
preboard_move_speed
= 4;
59
bool
menu_calling
=
false
;
60
int32_t
pan_state
= 1;
61
int32_t
pan_current_x
=
kPanXDefault
;
62
int32_t
pan_current_y
=
kPanYDefault
;
63
int32_t
pan_finish_x
=
kPanXDefault
;
64
int32_t
pan_finish_y
=
kPanYDefault
;
65
int32_t
pan_speed
=
kPanSpeedDefault
;
66
int32_t
encounter_steps
= 0;
67
bool
encounter_calling
=
false
;
68
int32_t
map_save_count
= 0;
69
int32_t
database_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
77
&& l.
preboard_move_speed
== r.
preboard_move_speed
78
&& l.
menu_calling
== r.
menu_calling
79
&& l.
pan_state
== r.
pan_state
80
&& l.
pan_current_x
== r.
pan_current_x
81
&& l.
pan_current_y
== r.
pan_current_y
82
&& l.
pan_finish_x
== r.
pan_finish_x
83
&& l.
pan_finish_y
== r.
pan_finish_y
84
&& l.
pan_speed
== r.
pan_speed
85
&& l.
encounter_steps
== r.
encounter_steps
86
&& l.
encounter_calling
== r.
encounter_calling
87
&& l.
map_save_count
== r.
map_save_count
88
&& l.
database_save_count
== r.
database_save_count
;
89
}
90
91
inline
bool
operator!=
(
const
SavePartyLocation
& l,
const
SavePartyLocation
& r) {
92
return
!(l == r);
93
}
94
}
95
96
#endif
rpg_savemapeventbase.h
RPG::SavePartyLocation::pan_speed
int32_t pan_speed
Definition:
rpg_savepartylocation.h:65
RPG::SavePartyLocation::pan_current_x
int32_t pan_current_x
Definition:
rpg_savepartylocation.h:61
RPG::SavePartyLocation::VehicleType
VehicleType
Definition:
rpg_savepartylocation.h:33
RPG::SavePartyLocation::VehicleType_skiff
@ VehicleType_skiff
Definition:
rpg_savepartylocation.h:35
RPG::SavePartyLocation::VehicleType_airship
@ VehicleType_airship
Definition:
rpg_savepartylocation.h:37
RPG::SavePartyLocation::PanState_fixed
@ PanState_fixed
Definition:
rpg_savepartylocation.h:46
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:64
RPG::SavePartyLocation::kVehicleTypeTags
static constexpr auto kVehicleTypeTags
Definition:
rpg_savepartylocation.h:39
RPG::SavePartyLocation::unboarding
bool unboarding
Definition:
rpg_savepartylocation.h:57
RPG::SavePartyLocation
Definition:
rpg_savepartylocation.h:24
RPG
Definition:
rpg_actor.h:26
RPG::SavePartyLocation::kPanSpeedDefault
static constexpr int kPanSpeedDefault
Definition:
rpg_savepartylocation.h:31
RPG::SavePartyLocation::vehicle
int32_t vehicle
Definition:
rpg_savepartylocation.h:56
RPG::SavePartyLocation::map_save_count
int32_t map_save_count
Definition:
rpg_savepartylocation.h:68
RPG::SavePartyLocation::aboard
bool aboard
Definition:
rpg_savepartylocation.h:55
RPG::SavePartyLocation::VehicleType_none
@ VehicleType_none
Definition:
rpg_savepartylocation.h:34
RPG::SavePartyLocation::kPanStateTags
static constexpr auto kPanStateTags
Definition:
rpg_savepartylocation.h:49
RPG::SavePartyLocation::VehicleType_ship
@ VehicleType_ship
Definition:
rpg_savepartylocation.h:36
RPG::SavePartyLocation::PanState_follow
@ PanState_follow
Definition:
rpg_savepartylocation.h:47
RPG::SavePartyLocation::boarding
bool boarding
Definition:
rpg_savepartylocation.h:54
RPG::SavePartyLocation::encounter_calling
bool encounter_calling
Definition:
rpg_savepartylocation.h:67
RPG::SavePartyLocation::database_save_count
int32_t database_save_count
Definition:
rpg_savepartylocation.h:69
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:98
RPG::SavePartyLocation::preboard_move_speed
int32_t preboard_move_speed
Definition:
rpg_savepartylocation.h:58
RPG::SavePartyLocation::kPanYDefault
static constexpr int kPanYDefault
Definition:
rpg_savepartylocation.h:29
RPG::SavePartyLocation::encounter_steps
int32_t encounter_steps
Definition:
rpg_savepartylocation.h:66
RPG::SavePartyLocation::pan_finish_x
int32_t pan_finish_x
Definition:
rpg_savepartylocation.h:63
RPG::SavePartyLocation::pan_finish_y
int32_t pan_finish_y
Definition:
rpg_savepartylocation.h:64
RPG::SavePartyLocation::pan_state
int32_t pan_state
Definition:
rpg_savepartylocation.h:60
RPG::SavePartyLocation::PanState
PanState
Definition:
rpg_savepartylocation.h:45
RPG::SavePartyLocation::menu_calling
bool menu_calling
Definition:
rpg_savepartylocation.h:59
RPG::SavePartyLocation::pan_current_y
int32_t pan_current_y
Definition:
rpg_savepartylocation.h:62
RPG::SavePartyLocation::kPanXDefault
static constexpr int kPanXDefault
Definition:
rpg_savepartylocation.h:27
RPG::SaveMapEventBase
Definition:
rpg_savemapeventbase.h:25
enum_tags.h
src
generated
rpg_savepartylocation.h
Generated on Sun Aug 2 2020 00:00:00 for liblcf by
1.8.18