liblcf
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
24
namespace
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
39
&& l.
auto_alignment
== r.
auto_alignment
40
&& l.
terrain_set
== r.
terrain_set
41
&& l.
appear_randomly
== r.
appear_randomly
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
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:64
RPG::Troop::appear_randomly
bool appear_randomly
Definition:
rpg_troop.h:32
RPG
Definition:
rpg_actor.h:26
RPG::Troop::auto_alignment
bool auto_alignment
Definition:
rpg_troop.h:30
RPG::Troop::terrain_set
std::vector< bool > terrain_set
Definition:
rpg_troop.h:31
RPG::Troop::ID
int ID
Definition:
rpg_troop.h:27
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:98
rpg_troopmember.h
RPG::Troop::members
std::vector< TroopMember > members
Definition:
rpg_troop.h:29
RPG::Troop::name
std::string name
Definition:
rpg_troop.h:28
rpg_trooppage.h
RPG::Troop::pages
std::vector< TroopPage > pages
Definition:
rpg_troop.h:33
RPG::Troop
Definition:
rpg_troop.h:25
src
generated
rpg_troop.h
Generated on Sun Aug 2 2020 00:00:00 for liblcf by
1.8.18