1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-03 01:07:47 +00:00
sapphire/src/servers/sapphire_zone/Linkshell/Linkshell.h

68 lines
1.5 KiB
C
Raw Normal View History

2017-08-27 02:04:04 +02:00
#ifndef CORE_LINKSHELL_H
#define CORE_LINKSHELL_H
2018-03-06 22:22:19 +01:00
#include <Common.h>
2017-08-27 02:04:04 +02:00
#include <set>
namespace Core {
2017-08-27 02:04:04 +02:00
class Linkshell
{
private:
/*! unique ID of the linkshell */
uint64_t m_linkshellId;
/*! ID of the master character */
uint64_t m_masterCharacterId;
/*! ID list of all linkshell members */
std::set< uint64_t > m_memberIds;
/*! Name of the linkshell */
std::string m_name;
/*! List of member IDs with leader rank */
std::set< uint64_t > m_leaderIds;
/*! list of IDs of pending character invites */
std::set< uint64_t > m_inviteIds;
2017-08-27 02:04:04 +02:00
public:
Linkshell( uint64_t id,
const std::string& name,
uint64_t masterId,
const std::set< uint64_t >& members,
const std::set< uint64_t >& leaders,
const std::set< uint64_t >& invites );
uint64_t getId() const;
const std::string& getName() const;
uint64_t getMasterId() const;
const std::set< uint64_t >& getMemberIdList() const;
std::set< uint64_t >& getMemberIdList();
const std::set< uint64_t >& getLeaderIdList() const;
2017-08-27 02:04:04 +02:00
std::set< uint64_t >& getLeaderIdList();
2017-08-27 02:04:04 +02:00
const std::set< uint64_t >& getInviteIdList() const;
2017-08-27 02:04:04 +02:00
std::set< uint64_t >& getInviteIdList();
2017-08-27 02:04:04 +02:00
void addMember( uint64_t memberId );
2017-08-27 02:04:04 +02:00
void removeMember( uint64_t memberId );
2017-08-27 02:04:04 +02:00
void addLeader( uint64_t memberId );
2017-08-27 02:04:04 +02:00
void removeLeader( uint64_t memberId );
2017-08-27 02:04:04 +02:00
void addInvite( uint64_t memberId );
2017-08-27 02:04:04 +02:00
void removeInvite( uint64_t memberId );
2017-08-27 02:04:04 +02:00
};
}
#endif //SAPPHIRE_LINKSHELL_H