liblcf
Loading...
Searching...
No Matches
rpg_testbattler.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_TESTBATTLER_H
13#define LCF_RPG_TESTBATTLER_H
14
15// Headers
16#include <stdint.h>
17
21namespace RPG {
23 public:
24 int ID = 0;
25 int32_t actor_id = 1;
26 int32_t level = 1;
27 int32_t weapon_id = 0;
28 int32_t shield_id = 0;
29 int32_t armor_id = 0;
30 int32_t helmet_id = 0;
31 int32_t accessory_id = 0;
32 };
33
34 inline bool operator==(const TestBattler& l, const TestBattler& r) {
35 return l.actor_id == r.actor_id
36 && l.level == r.level
37 && l.weapon_id == r.weapon_id
38 && l.shield_id == r.shield_id
39 && l.armor_id == r.armor_id
40 && l.helmet_id == r.helmet_id
41 && l.accessory_id == r.accessory_id;
42 }
43
44 inline bool operator!=(const TestBattler& l, const TestBattler& r) {
45 return !(l == r);
46 }
47}
48
49#endif
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