Horizon Official Technical Documentation
Member.hpp
Go to the documentation of this file.
1/***************************************************
2 * _ _ _ *
3 * | | | | (_) *
4 * | |_| | ___ _ __ _ _______ _ __ *
5 * | _ |/ _ \| '__| |_ / _ \| '_ \ *
6 * | | | | (_) | | | |/ / (_) | | | | *
7 * \_| |_/\___/|_| |_/___\___/|_| |_| *
8 ***************************************************
9 * This file is part of Horizon (c).
10 *
11 * Copyright (c) 2019 Sagun K. (sagunxp@gmail.com).
12 * Copyright (c) 2019 Horizon Dev Team.
13 *
14 * Base Author - Sagun K. (sagunxp@gmail.com)
15 *
16 * This library is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation, either version 3 of the License, or
19 * (at your option) any later version.
20 *
21 * This library is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 * You should have received a copy of the GNU General Public License
27 * along with this library. If not, see <http://www.gnu.org/licenses/>.
28 **************************************************/
29
30#ifndef HORIZON_MODELS_GUILD_MEMBERS_HPP
31#define HORIZON_MODELS_GUILD_MEMBERS_HPP
32
33namespace Horizon
34{
35namespace Models
36{
37namespace Guild
38{
39class Member
40{
41public:
42 Member() { }
43 ~Member() { }
44
45 /* Guild ID */
46 uint32_t get_guild_id() { return _guild_id; }
47 void set_guild_id(uint32_t guild_id) { _guild_id = guild_id; }
48 /* Character ID */
49 uint32_t get_character_id() { return _character_id; }
50 void set_character_id(uint32_t char_id) { _character_id = char_id; }
51 /* Experience Paid */
52 uint64_t getExperiencePaid() { return _experience_paid; }
53 void setExperiencePaid(uint32_t exp) { _experience_paid = exp; }
54 /* Tax Percent */
55 uint8_t getTaxPercent() { return _tax_percent; }
56 void setTaxPercent(uint8_t percent) { _tax_percent = percent; }
57 /* Position ID */
58 uint8_t getPositionID() { return _position_id; }
59 void setPositionID(uint8_t pos) { _position_id = pos; }
60
61private:
62 uint32_t _guild_id;
63 uint32_t _character_id;
65 uint8_t _tax_percent;
66 uint8_t _position_id;
67}
68}
69}
70}
71
72#endif /* HORIZON_MODELS_GUILD_MEMBERS_HPP */
Definition: Member.hpp:40
uint32_t _guild_id
Definition: Member.hpp:62
void set_character_id(uint32_t char_id)
Definition: Member.hpp:50
uint8_t getTaxPercent()
Definition: Member.hpp:55
Member()
Definition: Member.hpp:42
uint8_t getPositionID()
Definition: Member.hpp:58
~Member()
Definition: Member.hpp:43
void setExperiencePaid(uint32_t exp)
Definition: Member.hpp:53
void set_guild_id(uint32_t guild_id)
Definition: Member.hpp:47
uint64_t getExperiencePaid()
Definition: Member.hpp:52
uint32_t get_guild_id()
Definition: Member.hpp:46
uint8_t _position_id
Definition: Member.hpp:66
uint64_t _experience_paid
Definition: Member.hpp:64
uint32_t _character_id
Definition: Member.hpp:63
uint8_t _tax_percent
Definition: Member.hpp:65
void setTaxPercent(uint8_t percent)
Definition: Member.hpp:56
uint32_t get_character_id()
Definition: Member.hpp:49
void setPositionID(uint8_t pos)
Definition: Member.hpp:59
Definition: Element.hpp:7