-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathclass.h
More file actions
73 lines (66 loc) · 1.91 KB
/
Copy pathclass.h
File metadata and controls
73 lines (66 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* !!!! GENERATED FILE - DO NOT EDIT !!!!
* --------------------------------------
*
* This file is part of liblcf. Copyright (c) 2020 liblcf authors.
* https://github.com/EasyRPG/liblcf - https://easyrpg.org
*
* liblcf is Free/Libre Open Source Software, released under the MIT License.
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code.
*/
#ifndef LCF_RPG_CLASS_H
#define LCF_RPG_CLASS_H
// Headers
#include <stdint.h>
#include <vector>
#include "lcf/dbstring.h"
#include "lcf/rpg/learning.h"
#include "lcf/rpg/parameters.h"
#include <ostream>
#include <type_traits>
/**
* rpg::Class class.
*/
namespace lcf {
namespace rpg {
class Class {
public:
int ID = 0;
DBString name;
bool two_weapon = false;
bool lock_equipment = false;
bool auto_battle = false;
bool super_guard = false;
Parameters parameters;
int32_t exp_base = 300;
int32_t exp_inflation = 300;
int32_t exp_correction = 0;
int32_t battler_animation = 0;
std::vector<Learning> skills;
std::vector<uint8_t> state_ranks;
std::vector<uint8_t> attribute_ranks;
std::vector<int32_t> battle_commands;
};
inline bool operator==(const Class& l, const Class& r) {
return l.name == r.name
&& l.two_weapon == r.two_weapon
&& l.lock_equipment == r.lock_equipment
&& l.auto_battle == r.auto_battle
&& l.super_guard == r.super_guard
&& l.parameters == r.parameters
&& l.exp_base == r.exp_base
&& l.exp_inflation == r.exp_inflation
&& l.exp_correction == r.exp_correction
&& l.battler_animation == r.battler_animation
&& l.skills == r.skills
&& l.state_ranks == r.state_ranks
&& l.attribute_ranks == r.attribute_ranks
&& l.battle_commands == r.battle_commands;
}
inline bool operator!=(const Class& l, const Class& r) {
return !(l == r);
}
std::ostream& operator<<(std::ostream& os, const Class& obj);
} // namespace rpg
} // namespace lcf
#endif