liblcf
Loading...
Searching...
No Matches
rpg_class.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_CLASS_H
13#define LCF_RPG_CLASS_H
14
15// Headers
16#include <stdint.h>
17#include <string>
18#include <vector>
19#include "rpg_learning.h"
20#include "rpg_parameters.h"
21
25namespace RPG {
26 class Class {
27 public:
28 int ID = 0;
29 std::string name;
30 bool two_weapon = false;
31 bool lock_equipment = false;
32 bool auto_battle = false;
33 bool super_guard = false;
35 int32_t exp_base = 300;
36 int32_t exp_inflation = 300;
37 int32_t exp_correction = 0;
38 int32_t battler_animation = 0;
39 std::vector<Learning> skills;
40 std::vector<uint8_t> state_ranks;
41 std::vector<uint8_t> attribute_ranks;
42 std::vector<int32_t> battle_commands;
43 };
44
45 inline bool operator==(const Class& l, const Class& r) {
46 return l.name == r.name
47 && l.two_weapon == r.two_weapon
49 && l.auto_battle == r.auto_battle
50 && l.super_guard == r.super_guard
51 && l.parameters == r.parameters
52 && l.exp_base == r.exp_base
56 && l.skills == r.skills
57 && l.state_ranks == r.state_ranks
60 }
61
62 inline bool operator!=(const Class& l, const Class& r) {
63 return !(l == r);
64 }
65}
66
67#endif
std::vector< uint8_t > state_ranks
Definition: rpg_class.h:40
std::vector< Learning > skills
Definition: rpg_class.h:39
int32_t exp_inflation
Definition: rpg_class.h:36
bool super_guard
Definition: rpg_class.h:33
Parameters parameters
Definition: rpg_class.h:34
std::string name
Definition: rpg_class.h:29
int32_t exp_correction
Definition: rpg_class.h:37
bool auto_battle
Definition: rpg_class.h:32
int32_t exp_base
Definition: rpg_class.h:35
int32_t battler_animation
Definition: rpg_class.h:38
std::vector< int32_t > battle_commands
Definition: rpg_class.h:42
bool lock_equipment
Definition: rpg_class.h:31
std::vector< uint8_t > attribute_ranks
Definition: rpg_class.h:41
bool two_weapon
Definition: rpg_class.h:30
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