liblcf
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 
25 namespace 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
rpg_parameters.h
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
RPG::Class::attribute_ranks
std::vector< uint8_t > attribute_ranks
Definition: rpg_class.h:41
RPG::Class
Definition: rpg_class.h:26
rpg_learning.h
RPG::Class::super_guard
bool super_guard
Definition: rpg_class.h:33
RPG
Definition: rpg_actor.h:26
RPG::Class::auto_battle
bool auto_battle
Definition: rpg_class.h:32
RPG::Class::battle_commands
std::vector< int32_t > battle_commands
Definition: rpg_class.h:42
RPG::Class::state_ranks
std::vector< uint8_t > state_ranks
Definition: rpg_class.h:40
RPG::Class::battler_animation
int32_t battler_animation
Definition: rpg_class.h:38
RPG::Class::exp_base
int32_t exp_base
Definition: rpg_class.h:35
RPG::Parameters
Definition: rpg_parameters.h:23
RPG::Class::two_weapon
bool two_weapon
Definition: rpg_class.h:30
RPG::Class::skills
std::vector< Learning > skills
Definition: rpg_class.h:39
RPG::Class::parameters
Parameters parameters
Definition: rpg_class.h:34
RPG::Class::lock_equipment
bool lock_equipment
Definition: rpg_class.h:31
RPG::Class::ID
int ID
Definition: rpg_class.h:28
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98
RPG::Class::name
std::string name
Definition: rpg_class.h:29
RPG::Class::exp_correction
int32_t exp_correction
Definition: rpg_class.h:37
RPG::Class::exp_inflation
int32_t exp_inflation
Definition: rpg_class.h:36