liblcf
Loading...
Searching...
No Matches
rpg_movecommand.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_MOVECOMMAND_H
13#define LCF_RPG_MOVECOMMAND_H
14
15// Headers
16#include <stdint.h>
17#include <string>
18#include "enum_tags.h"
19
23namespace RPG {
25 public:
26 struct Code {
27 enum Index {
40 face_up = 12,
51 wait = 23,
70 };
71 };
72 static constexpr auto kCodeTags = makeEnumTags<Code::Index>(
73 "move_up",
74 "move_right",
75 "move_down",
76 "move_left",
77 "move_upright",
78 "move_downright",
79 "move_downleft",
80 "move_upleft",
81 "move_random",
82 "move_towards_hero",
83 "move_away_from_hero",
84 "move_forward",
85 "face_up",
86 "face_right",
87 "face_down",
88 "face_left",
89 "turn_90_degree_right",
90 "turn_90_degree_left",
91 "turn_180_degree",
92 "turn_90_degree_random",
93 "face_random_direction",
94 "face_hero",
95 "face_away_from_hero",
96 "wait",
97 "begin_jump",
98 "end_jump",
99 "lock_facing",
100 "unlock_facing",
101 "increase_movement_speed",
102 "decrease_movement_speed",
103 "increase_movement_frequence",
104 "decrease_movement_frequence",
105 "switch_on",
106 "switch_off",
107 "change_graphic",
108 "play_sound_effect",
109 "walk_everywhere_on",
110 "walk_everywhere_off",
111 "stop_animation",
112 "start_animation",
113 "increase_transp",
114 "decrease_transp"
115 );
116
117 int32_t command_id = 0;
118 std::string parameter_string;
119 int32_t parameter_a = 0;
120 int32_t parameter_b = 0;
121 int32_t parameter_c = 0;
122 };
123
124 inline bool operator==(const MoveCommand& l, const MoveCommand& r) {
125 return l.command_id == r.command_id
127 && l.parameter_a == r.parameter_a
128 && l.parameter_b == r.parameter_b
129 && l.parameter_c == r.parameter_c;
130 }
131
132 inline bool operator!=(const MoveCommand& l, const MoveCommand& r) {
133 return !(l == r);
134 }
135}
136
137#endif
std::string parameter_string
static constexpr auto kCodeTags
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