Horizon Official Technical Documentation
Position.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_POSITION_HPP
31#define HORIZON_MODELS_GUILD_POSITION_HPP
32
33namespace Horizon
34{
35namespace Models
36{
37namespace Guild
38{
40{
44};
46{
47public:
50
51 /* Guild ID */
52 uint32_t get_guild_id() { return _guild_id; }
53 void set_guild_id(uint32_t guild_id) { _guild_id = guild_id; }
54 /* Position ID */
55 uint8_t get_id() { return _character_id; }
56 void set_id(uint8_t char_id) { _character_id = char_id; }
57 /* Position Name */
58 std::string &get_name() { return _name; }
59 void set_name(std::string const &name) { _name = name; }
60 /* Permission Mask */
61 uint32_t getPermissionsMask() { return _permission_mask; }
62 void setPermissionsMask(uint32_t permissions) { _permission_mask = permissions; }
63 /* Tax Percent */
64 uint8_t getTaxPercent() { return _tax_percent; }
65 void setTaxPercent(uint8_t percent) { _tax_percent = percent; }
66
67private:
68 uint32_t _guild_id;
69 uint8_t _position_id;
70 std::string _name;
72 uint8_t _tax_percent;
73}
74}
75}
76}
77
78#endif /* HORIZON_MODELS_GUILD_POSITION_HPP */
uint32_t _character_id
4
Definition: Client.hpp:0
Definition: Position.hpp:46
permission_mask_type _permission_mask
Definition: Position.hpp:71
uint8_t getTaxPercent()
Definition: Position.hpp:64
Position()
Definition: Position.hpp:48
uint8_t get_id()
Definition: Position.hpp:55
uint32_t _guild_id
Definition: Position.hpp:68
std::string _name
Definition: Position.hpp:70
uint32_t getPermissionsMask()
Definition: Position.hpp:61
uint8_t _tax_percent
Definition: Position.hpp:72
uint32_t get_guild_id()
Definition: Position.hpp:52
void setTaxPercent(uint8_t percent)
Definition: Position.hpp:65
void set_name(std::string const &name)
Definition: Position.hpp:59
std::string & get_name()
Definition: Position.hpp:58
void set_guild_id(uint32_t guild_id)
Definition: Position.hpp:53
void setPermissionsMask(uint32_t permissions)
Definition: Position.hpp:62
void set_id(uint8_t char_id)
Definition: Position.hpp:56
~Position()
Definition: Position.hpp:49
uint8_t _position_id
Definition: Position.hpp:69
permission_mask_type
Definition: Position.hpp:40
@ GPERM_ALL
Definition: Position.hpp:43
@ GPERM_INVITE
Definition: Position.hpp:41
@ GPERM_EXPEL
Definition: Position.hpp:42
Definition: Element.hpp:7