liblcf
Loading...
Searching...
No Matches
rpg_parameters.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_PARAMETERS_H
13#define LCF_RPG_PARAMETERS_H
14
15// Headers
16#include <stdint.h>
17#include <vector>
18
22namespace RPG {
23 class Parameters {
24 public:
25 void Setup(int final_level);
26 std::vector<int16_t> maxhp;
27 std::vector<int16_t> maxsp;
28 std::vector<int16_t> attack;
29 std::vector<int16_t> defense;
30 std::vector<int16_t> spirit;
31 std::vector<int16_t> agility;
32 };
33
34 inline bool operator==(const Parameters& l, const Parameters& r) {
35 return l.maxhp == r.maxhp
36 && l.maxsp == r.maxsp
37 && l.attack == r.attack
38 && l.defense == r.defense
39 && l.spirit == r.spirit
40 && l.agility == r.agility;
41 }
42
43 inline bool operator!=(const Parameters& l, const Parameters& r) {
44 return !(l == r);
45 }
46}
47
48#endif
std::vector< int16_t > attack
std::vector< int16_t > agility
std::vector< int16_t > maxhp
std::vector< int16_t > maxsp
std::vector< int16_t > spirit
std::vector< int16_t > defense
void Setup(int final_level)
Definition: rpg_setup.cpp:186
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