Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
57 lines
1.5 KiB
C++
57 lines
1.5 KiB
C++
#ifndef _RYL_GAME_LIBRARY_PARTY_MGR_H_
|
|
#define _RYL_GAME_LIBRARY_PARTY_MGR_H_
|
|
|
|
#include <Thread/Lock.h>
|
|
|
|
#include <map>
|
|
#include <boost/pool/pool_alloc.hpp>
|
|
|
|
#include "Party.h"
|
|
|
|
class CPartyMgr
|
|
{
|
|
public:
|
|
static CPartyMgr& GetInstance();
|
|
|
|
void DestoryPartyList();
|
|
|
|
bool RequestPartyInfoToDB(unsigned long dwLeaderCID, unsigned long dwPartyUID);
|
|
|
|
bool AddParty(CParty *pParty);
|
|
CParty* GetParty(unsigned long dwPartyUID);
|
|
bool DeleteParty(unsigned long dwPartyUID);
|
|
|
|
bool AddFindPartyList(unsigned long dwCID);
|
|
bool DeleteFindPartyList(unsigned long dwCID);
|
|
bool AddFindMemberList(unsigned long dwPartyUID);
|
|
bool DeleteFindMemberList(unsigned long dwPartyUID);
|
|
|
|
unsigned long GetTempUID(void) { m_tempUID++; return m_tempUID; }
|
|
|
|
void SendPartyFind(CCharacter* pCharacter);
|
|
|
|
void UpdatePartyData();
|
|
|
|
protected:
|
|
|
|
CPartyMgr();
|
|
~CPartyMgr();
|
|
|
|
typedef std::map<unsigned long, CParty*, std::less<unsigned long>,
|
|
boost::fast_pool_allocator<std::pair<unsigned long, CParty* > > > PartyMap;
|
|
|
|
typedef std::map<unsigned long, CCharacter*, std::less<unsigned long>,
|
|
boost::fast_pool_allocator<std::pair<unsigned long, CCharacter* > > > MemberFindPartyMap;
|
|
|
|
typedef std::map<unsigned long, CParty*, std::less<unsigned long>,
|
|
boost::fast_pool_allocator<std::pair<unsigned long, CParty* > > > PartyFindMemberMap;
|
|
|
|
PartyMap m_PartyMap;
|
|
MemberFindPartyMap m_MemberFindPartyMap;
|
|
PartyFindMemberMap m_PartyFindMemberMap;
|
|
|
|
unsigned long m_tempUID;
|
|
};
|
|
|
|
|
|
#endif |