liblcf
rpg_troopmember.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_TROOPMEMBER_H
13 #define LCF_RPG_TROOPMEMBER_H
14 
15 // Headers
16 #include <stdint.h>
17 
21 namespace RPG {
22  class TroopMember {
23  public:
24  int ID = 0;
25  int32_t enemy_id = 1;
26  int32_t x = 0;
27  int32_t y = 0;
28  bool invisible = false;
29  };
30 
31  inline bool operator==(const TroopMember& l, const TroopMember& r) {
32  return l.enemy_id == r.enemy_id
33  && l.x == r.x
34  && l.y == r.y
35  && l.invisible == r.invisible;
36  }
37 
38  inline bool operator!=(const TroopMember& l, const TroopMember& r) {
39  return !(l == r);
40  }
41 }
42 
43 #endif
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
Definition: rpg_actor.h:26
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98