liblcf
Loading...
Searching...
No Matches
rpg_troop.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_TROOP_H
13#define LCF_RPG_TROOP_H
14
15// Headers
16#include <string>
17#include <vector>
18#include "rpg_troopmember.h"
19#include "rpg_trooppage.h"
20
24namespace RPG {
25 class Troop {
26 public:
27 int ID = 0;
28 std::string name;
29 std::vector<TroopMember> members;
30 bool auto_alignment = false;
31 std::vector<bool> terrain_set;
32 bool appear_randomly = false;
33 std::vector<TroopPage> pages;
34 };
35
36 inline bool operator==(const Troop& l, const Troop& r) {
37 return l.name == r.name
38 && l.members == r.members
40 && l.terrain_set == r.terrain_set
42 && l.pages == r.pages;
43 }
44
45 inline bool operator!=(const Troop& l, const Troop& r) {
46 return !(l == r);
47 }
48}
49
50#endif
bool auto_alignment
Definition: rpg_troop.h:30
std::vector< bool > terrain_set
Definition: rpg_troop.h:31
bool appear_randomly
Definition: rpg_troop.h:32
std::string name
Definition: rpg_troop.h:28
std::vector< TroopPage > pages
Definition: rpg_troop.h:33
std::vector< TroopMember > members
Definition: rpg_troop.h:29
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